mirror of
https://github.com/Nezumi-2711/uptime-monitoring.git
synced 2026-09-22 13:48:31 +00:00
feat: add sign in feature
This commit is contained in:
@@ -45,6 +45,13 @@ button:focus-visible, a:focus-visible { outline: 2px solid var(--primary-deep);
|
||||
.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;
|
||||
@@ -175,6 +182,57 @@ h1 { max-width: 590px; margin: 0; font-size: clamp(48px, 4.65vw, 68px); font-wei
|
||||
.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); } }
|
||||
@@ -192,6 +250,8 @@ h1 { max-width: 590px; margin: 0; font-size: clamp(48px, 4.65vw, 68px); font-wei
|
||||
.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; }
|
||||
@@ -208,6 +268,12 @@ h1 { max-width: 590px; margin: 0; font-size: clamp(48px, 4.65vw, 68px); font-wei
|
||||
.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; }
|
||||
|
||||
Reference in New Issue
Block a user