Public Access
feat: initialize database and authentication routes in backend
This commit is contained in:
1 parent
be69db04a5
commit
eb013d4978
22 files changed
+1808
-8
No files matched your search
@@ -1024,4 +1024,260 @@ input, textarea, select { font-family: inherit; font-size: inherit; color: inher
|
||||
.landing-grid { grid-template-columns: 1fr; }
|
||||
.score-grid { grid-template-columns: 1fr; }
|
||||
.score-cell { border-right: none; border-bottom: 1px solid var(--line); }
|
||||
.auth-modal { width: 95vw; min-width: 0; }
|
||||
}
|
||||
|
||||
/* ---------- Auth Modal ---------- */
|
||||
.auth-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 200;
|
||||
background: oklch(0 0 0 / 0.45);
|
||||
backdrop-filter: blur(6px);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
animation: auth-fade-in 200ms ease;
|
||||
}
|
||||
@keyframes auth-fade-in {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
.auth-modal {
|
||||
position: relative;
|
||||
width: 400px;
|
||||
max-height: 90vh;
|
||||
overflow-y: auto;
|
||||
background: var(--paper);
|
||||
border: 1px solid var(--line-2);
|
||||
border-radius: var(--r-lg);
|
||||
box-shadow: 0 8px 40px oklch(0 0 0 / 0.12), 0 2px 8px oklch(0 0 0 / 0.06);
|
||||
padding: 36px 32px 32px;
|
||||
animation: auth-slide-up 250ms ease;
|
||||
}
|
||||
@keyframes auth-slide-up {
|
||||
from { opacity: 0; transform: translateY(16px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
.auth-close {
|
||||
position: absolute;
|
||||
top: 12px; right: 14px;
|
||||
background: none; border: none;
|
||||
font-size: 22px; color: var(--ink-3);
|
||||
cursor: pointer;
|
||||
width: 32px; height: 32px;
|
||||
display: grid; place-items: center;
|
||||
border-radius: var(--r-sm);
|
||||
transition: background 120ms ease, color 120ms ease;
|
||||
}
|
||||
.auth-close:hover { background: var(--paper-2); color: var(--ink); }
|
||||
.auth-header {
|
||||
text-align: center;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.auth-header .brand-mark {
|
||||
margin: 0 auto 16px;
|
||||
}
|
||||
.auth-title {
|
||||
font-family: var(--font-serif);
|
||||
font-size: 28px;
|
||||
font-weight: 400;
|
||||
letter-spacing: -0.02em;
|
||||
line-height: 1.1;
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
.auth-subtitle {
|
||||
font-size: 14px;
|
||||
color: var(--ink-3);
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.auth-tabs {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
background: var(--paper-2);
|
||||
padding: 3px;
|
||||
border-radius: var(--r-sm);
|
||||
border: 1px solid var(--line);
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.auth-tab {
|
||||
flex: 1;
|
||||
padding: 8px 14px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
color: var(--ink-3);
|
||||
text-align: center;
|
||||
transition: all 150ms ease;
|
||||
}
|
||||
.auth-tab.active {
|
||||
background: var(--paper);
|
||||
color: var(--ink);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
.auth-tab:hover:not(.active) { color: var(--ink-2); }
|
||||
.auth-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
.auth-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
.auth-label {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
color: var(--ink-3);
|
||||
font-weight: 500;
|
||||
}
|
||||
.auth-submit {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
padding: 11px 14px;
|
||||
font-size: 14px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.auth-forgot {
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 13px;
|
||||
color: var(--accent);
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
padding: 4px;
|
||||
transition: color 120ms ease;
|
||||
}
|
||||
.auth-forgot:hover { color: var(--accent-ink); text-decoration: underline; }
|
||||
.auth-error {
|
||||
padding: 10px 14px;
|
||||
border: 1px solid var(--wrong);
|
||||
border-radius: var(--r-sm);
|
||||
background: var(--wrong-weak);
|
||||
color: var(--wrong);
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.auth-success {
|
||||
padding: 10px 14px;
|
||||
border: 1px solid var(--correct);
|
||||
border-radius: var(--r-sm);
|
||||
background: var(--correct-weak);
|
||||
color: var(--correct);
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* ---------- User Menu ---------- */
|
||||
.user-menu-wrap {
|
||||
position: relative;
|
||||
}
|
||||
.user-avatar {
|
||||
width: 32px; height: 32px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
border: none;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
font-family: var(--font-sans);
|
||||
cursor: pointer;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
transition: opacity 150ms ease, box-shadow 150ms ease;
|
||||
}
|
||||
.user-avatar:hover {
|
||||
opacity: 0.85;
|
||||
box-shadow: 0 0 0 3px var(--accent-weak);
|
||||
}
|
||||
.user-menu {
|
||||
position: absolute;
|
||||
top: calc(100% + 8px);
|
||||
right: 0;
|
||||
width: 220px;
|
||||
background: var(--paper);
|
||||
border: 1px solid var(--line-2);
|
||||
border-radius: var(--r-md);
|
||||
box-shadow: var(--shadow-md);
|
||||
z-index: 50;
|
||||
overflow: hidden;
|
||||
animation: auth-slide-up 150ms ease;
|
||||
}
|
||||
.user-menu-header {
|
||||
padding: 14px 16px;
|
||||
}
|
||||
.user-menu-name {
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.user-menu-email {
|
||||
font-size: 12px;
|
||||
color: var(--ink-3);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.user-menu-divider {
|
||||
height: 1px;
|
||||
background: var(--line);
|
||||
}
|
||||
.user-menu-item {
|
||||
width: 100%;
|
||||
padding: 10px 16px;
|
||||
border: none;
|
||||
background: none;
|
||||
text-align: left;
|
||||
font-size: 13.5px;
|
||||
color: var(--ink-2);
|
||||
cursor: pointer;
|
||||
transition: background 100ms ease;
|
||||
}
|
||||
.user-menu-item:hover {
|
||||
background: var(--paper-2);
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
/* ---------- Verify / Reset Pages ---------- */
|
||||
.verify-page {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
min-height: calc(100vh - 57px);
|
||||
padding: 32px;
|
||||
}
|
||||
.verify-card {
|
||||
text-align: center;
|
||||
max-width: 480px;
|
||||
padding: 48px 40px;
|
||||
background: var(--paper);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--r-lg);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
.verify-icon {
|
||||
font-size: 48px;
|
||||
margin-bottom: 20px;
|
||||
line-height: 1;
|
||||
}
|
||||
.verify-icon.success { color: var(--correct); }
|
||||
.verify-icon.error { color: var(--wrong); }
|
||||
.verify-title {
|
||||
font-family: var(--font-serif);
|
||||
font-size: 28px;
|
||||
font-weight: 400;
|
||||
letter-spacing: -0.02em;
|
||||
margin: 0 0 12px;
|
||||
}
|
||||
.verify-message {
|
||||
font-size: 14.5px;
|
||||
color: var(--ink-2);
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user