Add basic FastAPI auth and React login gate
CI / basic-check (push) Has been cancelled

This commit is contained in:
Perplexity Bot
2026-08-04 20:21:34 +00:00
parent 998c5246dd
commit 8aae681706
9 changed files with 139 additions and 456 deletions
+39 -207
View File
@@ -1,207 +1,39 @@
:root {
color-scheme: dark;
font-family: Inter, system-ui, sans-serif;
background: #0b1020;
}
body {
margin: 0;
background: linear-gradient(180deg, #0b1020 0%, #111827 100%);
color: #e5e7eb;
}
#root {
min-height: 100vh;
}
.app-shell {
display: grid;
grid-template-columns: 280px minmax(0, 1fr);
min-height: 100vh;
}
.app-sidebar {
border-right: 1px solid rgba(255,255,255,0.08);
background: rgba(2, 6, 23, 0.75);
backdrop-filter: blur(14px);
padding: 20px;
display: flex;
flex-direction: column;
gap: 20px;
}
.app-brand {
display: flex;
align-items: center;
gap: 12px;
}
.app-brand-mark {
width: 42px;
height: 42px;
border-radius: 12px;
display: grid;
place-items: center;
background: linear-gradient(135deg, #1d4ed8, #2563eb);
color: white;
font-weight: 700;
}
.app-brand h1,
.app-header h2,
.shell-card h3 {
margin: 0;
}
.app-brand p,
.app-header p {
margin: 4px 0 0;
color: #94a3b8;
}
.app-nav {
display: flex;
flex-direction: column;
gap: 10px;
}
.app-nav-item {
border: 1px solid rgba(255,255,255,0.08);
background: rgba(255,255,255,0.03);
border-radius: 12px;
padding: 12px 14px;
color: #e5e7eb;
text-align: left;
cursor: pointer;
display: flex;
flex-direction: column;
gap: 4px;
}
.app-nav-item.active {
background: rgba(37, 99, 235, 0.16);
border-color: rgba(96, 165, 250, 0.35);
}
.app-nav-item small {
color: #94a3b8;
}
.app-sidebar-footer,
.app-header-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.app-main {
padding: 20px;
}
.app-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 16px;
margin-bottom: 20px;
}
.shell-pill {
display: inline-flex;
align-items: center;
padding: 6px 10px;
border-radius: 999px;
background: rgba(255,255,255,0.08);
color: #cbd5e1;
font-size: 12px;
}
.shell-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
}
.shell-grid.two-columns {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.shell-stack {
display: grid;
gap: 16px;
}
.shell-card {
background: rgba(17, 24, 39, 0.88);
border: 1px solid rgba(255,255,255,0.08);
border-radius: 16px;
padding: 16px;
}
.shell-card.accent {
border-color: rgba(96, 165, 250, 0.35);
}
.shell-card.warning {
border-color: rgba(251, 191, 36, 0.35);
}
.shell-card-body {
margin-top: 12px;
}
.shell-list {
margin: 0;
padding-left: 18px;
display: grid;
gap: 8px;
color: #cbd5e1;
}
.options-roadmap {
display: grid;
gap: 12px;
}
.options-roadmap-item {
display: grid;
grid-template-columns: 40px minmax(0, 1fr);
gap: 12px;
align-items: start;
padding: 12px;
border-radius: 12px;
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.06);
}
.options-roadmap-item p {
margin: 6px 0 0;
color: #94a3b8;
}
.options-step {
width: 32px;
height: 32px;
border-radius: 999px;
display: grid;
place-items: center;
background: rgba(37, 99, 235, 0.18);
color: #bfdbfe;
font-weight: 700;
}
@media (max-width: 1100px) {
.app-shell {
grid-template-columns: 1fr;
}
.app-sidebar {
border-right: 0;
border-bottom: 1px solid rgba(255,255,255,0.08);
}
.shell-grid,
.shell-grid.two-columns {
grid-template-columns: 1fr;
}
}
:root { color-scheme: dark; font-family: Inter, system-ui, sans-serif; background: #0b1020; }
body { margin: 0; background: linear-gradient(180deg, #0b1020 0%, #111827 100%); color: #e5e7eb; }
#root { min-height: 100vh; }
.logout-button { position: fixed; top: 16px; right: 16px; z-index: 50; border: 1px solid rgba(255,255,255,0.08); background: rgba(17,24,39,0.88); color: #e5e7eb; border-radius: 999px; padding: 10px 14px; }
.app-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.app-sidebar { border-right: 1px solid rgba(255,255,255,0.08); background: rgba(2, 6, 23, 0.75); backdrop-filter: blur(14px); padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.app-brand { display: flex; align-items: center; gap: 12px; }
.app-brand-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #1d4ed8, #2563eb); color: white; font-weight: 700; }
.app-brand h1, .app-header h2, .shell-card h3 { margin: 0; }
.app-brand p, .app-header p { margin: 4px 0 0; color: #94a3b8; }
.app-nav { display: flex; flex-direction: column; gap: 10px; }
.app-nav-item { border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); border-radius: 12px; padding: 12px 14px; color: #e5e7eb; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.app-nav-item.active { background: rgba(37, 99, 235, 0.16); border-color: rgba(96, 165, 250, 0.35); }
.app-nav-item small { color: #94a3b8; }
.app-sidebar-footer, .app-header-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.app-main { padding: 20px; }
.app-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.shell-pill { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); color: #cbd5e1; font-size: 12px; }
.shell-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shell-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shell-stack { display: grid; gap: 16px; }
.shell-card { background: rgba(17, 24, 39, 0.88); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 16px; }
.shell-card.accent { border-color: rgba(96, 165, 250, 0.35); }
.shell-card.warning { border-color: rgba(251, 191, 36, 0.35); }
.shell-card-body { margin-top: 12px; }
.shell-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: #cbd5e1; }
.options-roadmap { display: grid; gap: 12px; }
.options-roadmap-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.options-roadmap-item p { margin: 6px 0 0; color: #94a3b8; }
.options-step { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: rgba(37, 99, 235, 0.18); color: #bfdbfe; font-weight: 700; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 420px); background: rgba(17,24,39,0.92); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 24px; }
.login-eyebrow { color: #93c5fd; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; }
.login-copy, .login-error { color: #94a3b8; }
.login-form { display: grid; gap: 12px; margin-top: 16px; }
.login-form label { display: grid; gap: 6px; }
.login-form input { border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); border-radius: 12px; padding: 12px 14px; }
.login-form button { border: 0; border-radius: 12px; padding: 12px 14px; background: #2563eb; color: white; font-weight: 600; }
@media (max-width: 1100px) { .app-shell { grid-template-columns: 1fr; } .app-sidebar { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); } .shell-grid, .shell-grid.two-columns { grid-template-columns: 1fr; } }