Files
uptime-monitoring/src/client/styles.css
T
2026-08-27 20:29:23 +07:00

290 lines
18 KiB
CSS

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");
@import "tailwindcss";
:root {
font-family: "DM Sans", "Helvetica Neue", sans-serif;
color: #171717;
background: #ffffff;
font-synthesis: none;
text-rendering: optimizeLegibility;
--primary: #3ecf8e;
--primary-deep: #24b47e;
--ink: #171717;
--muted: #707070;
--faint: #9a9a9a;
--hairline: #dfdfdf;
--soft: #fafafa;
--night: #1c1c1c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #fff; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--primary-deep); outline-offset: 3px; }
.site-shell { min-height: 100vh; overflow: hidden; }
.site-header {
position: relative;
z-index: 20;
border-bottom: 1px solid #ededed;
background: rgb(255 255 255 / 0.92);
backdrop-filter: blur(14px);
}
.nav-container {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
width: min(1280px, calc(100% - 48px));
height: 68px;
margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.6px; }
.brand-mark { width: 26px; height: 26px; color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14px; color: #4d4d4d; }
.nav-links a, .text-link { transition: color 160ms ease; }
.nav-links a:hover, .text-link:hover { color: var(--primary-deep); }
.nav-actions { display: flex; align-items: center; justify-self: end; gap: 16px; }
.nav-auth {
padding: 0; border: 0; font-size: 13px; font-weight: 500; color: #525252; background: transparent;
cursor: pointer; transition: color 160ms ease;
}
.nav-auth:hover:not(:disabled) { color: var(--primary-deep); }
.nav-auth:disabled { cursor: wait; opacity: 0.55; }
.nav-cta {
display: inline-flex; align-items: center; justify-self: end; gap: 8px; min-height: 36px; padding: 0 14px;
border: 1px solid #cfcfcf; border-radius: 6px; font-size: 13px; font-weight: 500; background: #fff;
box-shadow: 0 1px 2px rgb(0 0 0 / 0.04); transition: border-color 160ms ease, background 160ms ease;
}
.nav-cta:hover { border-color: #a8a8a8; background: var(--soft); }
.nav-cta svg, .primary-button svg, .announcement svg, .dashboard-footer svg { width: 16px; height: 16px; }
.hero {
display: grid;
grid-template-columns: minmax(390px, 0.8fr) minmax(580px, 1.2fr);
align-items: center;
gap: clamp(56px, 7vw, 112px);
width: min(1280px, calc(100% - 48px));
min-height: calc(100vh - 137px);
margin: 0 auto;
padding: 88px 0 96px;
}
.hero-copy { position: relative; z-index: 2; animation: enter-copy 700ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.announcement { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 28px; font-size: 13px; color: var(--muted); }
.announcement > span { padding: 3px 8px; border-radius: 999px; color: var(--ink); background: #def7eb; }
.announcement svg { color: #999; }
h1 { max-width: 590px; margin: 0; font-size: clamp(48px, 4.65vw, 68px); font-weight: 500; line-height: 1.06; letter-spacing: -3.2px; }
.hero-lead { max-width: 540px; margin: 28px 0 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.primary-button {
display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 18px;
border: 1px solid #35c586; border-radius: 6px; font-size: 14px; font-weight: 500; background: var(--primary);
box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), inset 0 1px rgb(255 255 255 / 0.2); transition: background 160ms ease, transform 160ms ease;
}
.primary-button:hover { background: #36c487; transform: translateY(-1px); }
.text-link { font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #cfcfcf; }
.trust-note { display: flex; align-items: center; gap: 16px; margin-top: 58px; padding-top: 24px; border-top: 1px solid #ededed; }
.trust-note p { margin: 0; font-size: 12px; line-height: 1.55; color: var(--faint); }
.trust-note strong { font-weight: 500; color: #5f5f5f; }
.trust-avatars { display: flex; padding-left: 10px; }
.trust-avatars i {
display: grid; place-items: center; width: 32px; height: 32px; margin-left: -10px; border: 2px solid #fff; border-radius: 50%;
font: 500 9px/1 "IBM Plex Mono", monospace; font-style: normal; color: #444; background: #f0f0f0;
}
.trust-avatars i:nth-child(2) { background: #e2f8ed; }
.trust-avatars i:nth-child(3) { color: #fff; background: var(--night); }
.product-stage { position: relative; min-width: 0; perspective: 1200px; animation: enter-stage 900ms 100ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.product-stage::before {
position: absolute; z-index: -1; inset: -42px -120px -54px -48px; border: 1px solid #f1f1f1; border-radius: 24px;
background-image: radial-gradient(#dedede 0.7px, transparent 0.7px); background-size: 14px 14px;
mask-image: linear-gradient(120deg, transparent 2%, black 36%, black 75%, transparent 98%); content: "";
}
.dashboard-window {
position: relative; width: 100%; border: 1px solid #d8d8d8; border-radius: 12px; overflow: hidden; background: #fff;
box-shadow: 0 24px 70px rgb(0 0 0 / 0.13), 0 3px 10px rgb(0 0 0 / 0.06);
}
.window-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 54px; padding: 0 14px 0 18px; border-bottom: 1px solid #e8e8e8; background: #fcfcfc; }
.window-brand, .window-project { display: flex; align-items: center; }
.window-brand { gap: 6px; font-size: 12px; font-weight: 600; }
.window-brand svg { width: 16px; height: 16px; color: var(--primary); }
.window-project { gap: 7px; font-size: 11px; color: #555; }
.project-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px rgb(62 207 142 / 0.12); }
.chevron { margin-left: 3px; color: #999; }
.icon-button {
display: grid; place-items: center; justify-self: end; width: 30px; height: 30px; padding: 0; border: 1px solid #dedede;
border-radius: 6px; color: #777; background: #fff; cursor: pointer;
}
.icon-button:hover:not(:disabled) { color: #222; border-color: #bdbdbd; }
.icon-button:disabled, .dashboard-footer button:disabled { cursor: wait; opacity: 0.6; }
.icon-button svg { width: 14px; height: 14px; }
.is-spinning { animation: spin 900ms linear infinite; }
.dashboard-layout { display: grid; grid-template-columns: 54px 1fr; min-height: 520px; }
.dashboard-sidebar { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 20px; border-right: 1px solid #ebebeb; background: #fbfbfb; }
.sidebar-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 5px; color: #999; }
.sidebar-icon.active { color: #333; background: #ebebeb; }
.sidebar-icon svg { width: 16px; height: 16px; }
.grid-icon { width: 13px; height: 13px; background: linear-gradient(90deg, currentColor 4px, transparent 4px 8px, currentColor 8px), linear-gradient(currentColor 4px, transparent 4px 8px, currentColor 8px); opacity: 0.8; }
.pulse-icon { width: 14px; height: 9px; border-bottom: 1.5px solid currentColor; transform: skewY(-28deg); }
.dashboard-content { min-width: 0; padding: 30px 30px 20px; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.overline { margin: 0 0 5px; font: 500 9px/1.4 "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #999; }
.dashboard-heading h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.6px; }
.health-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid; border-radius: 999px; font-size: 10px; font-weight: 500; }
.health-badge span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.health-badge.healthy { border-color: #b9ead3; color: #16885b; background: #edfbf4; }
.health-badge.pending { border-color: #e4dfc0; color: #8b7722; background: #fffced; }
.health-badge.unhealthy { border-color: #efc4c4; color: #ae3d3d; background: #fff3f3; }
.metric-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; margin-top: 25px; }
.metric-card { position: relative; min-height: 116px; padding: 15px 16px; border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden; background: #fff; }
.metric-card p { margin: 0 0 12px; font-size: 10px; color: #777; }
.metric-card strong { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.6px; }
.metric-card > span { display: block; margin-top: 4px; font-size: 9px; color: #aaa; }
.chart-card { padding-right: 48%; }
.chart-card strong { font-size: 17px; }
.mini-bars { position: absolute; right: 14px; bottom: 17px; display: flex; align-items: flex-end; gap: 4px; width: 42%; height: 55px; padding-bottom: 1px; border-bottom: 1px solid #eee; }
.mini-bars i { flex: 1; min-width: 2px; border-radius: 1px 1px 0 0; background: var(--primary); opacity: 0.72; }
.services-panel { margin-top: 14px; border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden; }
.services-title, .service-row { display: grid; grid-template-columns: 1.6fr 0.75fr 0.65fr; align-items: center; column-gap: 16px; }
.services-title { height: 36px; padding: 0 16px; border-bottom: 1px solid #e8e8e8; font-size: 9px; color: #999; background: #fafafa; }
.service-row { min-height: 67px; padding: 0 16px; }
.service-row + .service-row { border-top: 1px solid #ededed; }
.service-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.service-icon { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid #e2e2e2; border-radius: 6px; color: #606060; background: #fafafa; }
.service-icon svg { width: 15px; height: 15px; }
.service-name strong, .service-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-name strong { font-size: 11px; font-weight: 500; }
.service-name small { margin-top: 3px; font: 400 8px/1.3 "IBM Plex Mono", monospace; color: #aaa; }
.service-row code { font: 400 9px/1.4 "IBM Plex Mono", monospace; color: #777; }
.row-status { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; color: #777; }
.row-status i, .footer-dot { width: 6px; height: 6px; border-radius: 50%; background: #d05a5a; }
.row-status.online i, .footer-dot.healthy { background: var(--primary); box-shadow: 0 0 0 3px rgb(62 207 142 / 0.12); }
.row-status.checking i { background: #d7bd53; animation: blink 1.1s ease-in-out infinite; }
.dashboard-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 46px; font-size: 9px; color: #aaa; }
.dashboard-footer > span { max-width: 72%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-footer button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; font-size: 9px; color: #555; background: transparent; cursor: pointer; }
.dashboard-footer svg { width: 12px; height: 12px; }
.floating-log {
position: absolute; right: -38px; bottom: -34px; width: 260px; padding: 14px 16px; border: 1px solid #353535;
border-radius: 8px; color: #e7e7e7; background: var(--night); box-shadow: 0 16px 40px rgb(0 0 0 / 0.24);
}
.floating-log > div { display: flex; align-items: center; gap: 7px; font-size: 10px; }
.floating-log small { margin-left: auto; font-size: 8px; color: #777; }
.log-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.floating-log code { display: block; margin-top: 12px; padding-top: 11px; border-top: 1px solid #303030; font: 400 9px/1.4 "IBM Plex Mono", monospace; color: #aaa; }
.floating-log em { margin-right: 7px; font-style: normal; color: var(--primary); }
.floating-log strong { float: right; font-weight: 500; color: #fff; }
.site-footer { display: flex; align-items: center; justify-content: space-between; width: min(1280px, calc(100% - 48px)); min-height: 68px; margin: 0 auto; border-top: 1px solid #ededed; font-size: 11px; color: #999; }
.site-footer p { margin: 0; }
.site-footer > div, .site-footer > div span { display: flex; align-items: center; }
.site-footer > div { gap: 28px; }
.site-footer > div span { gap: 7px; }
.auth-page {
display: grid;
grid-template-rows: auto 1fr auto;
justify-items: center;
min-height: 100dvh;
padding: 32px 24px 24px;
background:
radial-gradient(circle at 50% 38%, rgb(62 207 142 / 0.08), transparent 34%),
linear-gradient(#fff, #fcfcfc);
}
.auth-page::before {
position: fixed; inset: 0; z-index: 0; pointer-events: none;
background-image: radial-gradient(#dcdcdc 0.65px, transparent 0.65px);
background-size: 16px 16px; mask-image: linear-gradient(to bottom, transparent, black 24%, transparent 76%); content: "";
}
.auth-brand {
position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
font-size: 20px; font-weight: 600; letter-spacing: -0.6px;
}
.auth-brand-mark { display: grid; place-items: center; width: 26px; height: 26px; color: var(--primary-deep); font-size: 23px; }
.auth-card {
position: relative; z-index: 1; align-self: center; width: min(100%, 420px); padding: 36px;
border: 1px solid var(--hairline); border-radius: 12px; background: rgb(255 255 255 / 0.96);
box-shadow: 0 18px 55px rgb(24 74 52 / 0.08), 0 2px 8px rgb(0 0 0 / 0.04);
animation: enter-copy 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.auth-heading p { margin: 0 0 12px; font: 500 10px/1.4 "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #55816e; }
.auth-heading h1 { margin: 0; font-size: 30px; line-height: 1.16; letter-spacing: -1.2px; }
.auth-heading > span { display: block; margin-top: 12px; font-size: 14px; line-height: 1.55; color: #626262; }
.auth-form { display: grid; gap: 20px; margin-top: 30px; }
.auth-field { display: grid; gap: 8px; }
.auth-field label { font-size: 13px; font-weight: 500; color: #353535; }
.auth-field input {
width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #cfcfcf; border-radius: 6px;
font: inherit; font-size: 14px; color: var(--ink); background: #fff;
box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.025); transition: border-color 160ms ease, box-shadow 160ms ease;
}
.auth-field input:hover { border-color: #a9a9a9; }
.auth-field input:focus { border-color: var(--primary-deep); outline: 0; box-shadow: 0 0 0 3px rgb(36 180 126 / 0.14); }
.auth-error { margin: -4px 0 0; padding: 10px 12px; border: 1px solid #efcaca; border-radius: 6px; font-size: 12px; line-height: 1.45; color: #9f2f2f; background: #fff6f6; }
.auth-submit {
display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; padding: 8px 16px;
border: 1px solid #35c586; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--primary);
box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), inset 0 1px rgb(255 255 255 / 0.2); cursor: pointer;
transition: background 160ms ease, transform 160ms ease;
}
.auth-submit:hover:not(:disabled) { background: #36c487; transform: translateY(-1px); }
.auth-submit:active:not(:disabled) { background: var(--primary-deep); transform: translateY(1px); }
.auth-submit:disabled { cursor: wait; opacity: 0.62; }
.auth-footnote { position: relative; z-index: 1; margin: 0; font-size: 11px; color: #858585; }
@keyframes enter-copy { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes enter-stage { from { opacity: 0; transform: translateY(24px) rotateY(-2deg); } to { opacity: 1; transform: translateY(0) rotateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0.35; } }
@media (max-width: 1100px) {
.hero { grid-template-columns: 1fr; gap: 72px; padding-top: 72px; }
.hero-copy { max-width: 720px; }
h1 { max-width: 680px; }
.product-stage { width: min(800px, calc(100% - 24px)); margin: 0 auto; }
.site-footer { margin-top: 56px; }
}
@media (max-width: 760px) {
.nav-container, .hero, .site-footer { width: min(100% - 32px, 1280px); }
.nav-container { grid-template-columns: 1fr auto; height: 62px; }
.nav-links { display: none; }
.nav-actions { gap: 10px; }
.nav-cta { display: none; }
.hero { min-height: auto; padding: 58px 0 70px; }
h1 { font-size: clamp(40px, 12vw, 56px); line-height: 1.04; letter-spacing: -2.25px; }
.hero-lead { font-size: 16px; }
.trust-note { margin-top: 44px; }
.product-stage { width: 100%; }
.dashboard-layout { grid-template-columns: 42px 1fr; min-height: 480px; }
.dashboard-content { padding: 23px 16px 14px; }
.metric-grid { grid-template-columns: 1fr; }
.chart-card { display: none; }
.services-title, .service-row { grid-template-columns: 1fr auto; }
.services-title span:nth-child(2), .service-row > code { display: none; }
.services-title span:last-child { text-align: right; }
.floating-log { right: 12px; bottom: -38px; width: 230px; }
.site-footer { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 0; }
}
@media (max-width: 520px) {
.auth-page { padding: 24px 16px; }
.auth-card { padding: 28px 22px; }
.auth-heading h1 { font-size: 27px; }
}
@media (max-width: 430px) {
.announcement { font-size: 11px; }
.hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
.window-project { display: none; }
.window-bar { grid-template-columns: 1fr auto; }
.dashboard-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
.dashboard-footer > span { display: none; }
.dashboard-footer { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}