T6-T8: web dashboard spec-list (§V10, I.web, I.db)
- dashboard.py: Flask read-only, paged 50/page, ORDER BY staked DESC - templates/index.html + static/style.css: DESIGN.md Bugatti austere tokens - test_dashboard.py: oracle (ordering, paging, read-only) - DESIGN.md style guide (was untracked)
This commit is contained in:
1 parent
c5e30a4785
commit
0b3a86aad2
8 files changed
+944
-4
No files matched your search
@@ -0,0 +1,234 @@
|
||||
/* DESIGN.md — Bugatti austere system, mapped 1:1 */
|
||||
:root {
|
||||
/* colors */
|
||||
--ink: #ffffff;
|
||||
--body: #cccccc;
|
||||
--body-strong: #e6e6e6;
|
||||
--muted: #999999;
|
||||
--muted-soft: #666666;
|
||||
--hairline: #262626;
|
||||
--hairline-strong: #3a3a3a;
|
||||
--canvas: #000000;
|
||||
--surface-soft: #0d0d0d;
|
||||
--surface-card: #141414;
|
||||
--on-dark: #ffffff;
|
||||
--link: #c3d9f3;
|
||||
|
||||
/* typography — DESIGN.md substitutes: Saira Condensed (Display),
|
||||
EB Garamond (Text Regular), JetBrains Mono (Monospace) */
|
||||
--font-display: 'Saira Condensed', 'Arial Narrow', -apple-system, sans-serif;
|
||||
--font-text: 'EB Garamond', Garamond, 'Times New Roman', serif;
|
||||
--font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', monospace;
|
||||
|
||||
/* spacing */
|
||||
--sp-xxs: 4px; --sp-xs: 8px; --sp-sm: 12px; --sp-md: 16px;
|
||||
--sp-lg: 24px; --sp-xl: 40px; --sp-xxl: 64px; --sp-section: 120px;
|
||||
|
||||
/* layout */
|
||||
--max-content: 1280px;
|
||||
}
|
||||
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
html { background: var(--canvas); }
|
||||
|
||||
body {
|
||||
background: var(--canvas);
|
||||
color: var(--on-dark);
|
||||
font-family: var(--font-text);
|
||||
font-weight: 400;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* ————— top nav ————— */
|
||||
.top-nav {
|
||||
height: 56px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 var(--sp-lg);
|
||||
max-width: var(--max-content);
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.nav-label {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 12px;
|
||||
letter-spacing: 2px;
|
||||
text-transform: uppercase;
|
||||
color: var(--on-dark);
|
||||
}
|
||||
.wordmark {
|
||||
font-family: var(--font-display);
|
||||
font-size: 14px;
|
||||
letter-spacing: 6px;
|
||||
text-transform: uppercase;
|
||||
color: var(--on-dark);
|
||||
}
|
||||
|
||||
/* ————— page / hero ————— */
|
||||
.page { width: 100%; max-width: var(--max-content); margin: 0 auto; flex: 1; }
|
||||
|
||||
.hero { padding: var(--sp-xxl) var(--sp-lg) var(--sp-lg); }
|
||||
.display-xl {
|
||||
font-family: var(--font-display);
|
||||
font-size: clamp(40px, 6vw, 64px);
|
||||
font-weight: 400;
|
||||
line-height: 1.1;
|
||||
letter-spacing: 4px;
|
||||
text-transform: uppercase;
|
||||
color: var(--on-dark);
|
||||
}
|
||||
.caption {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
letter-spacing: 2px;
|
||||
text-transform: uppercase;
|
||||
color: var(--muted);
|
||||
margin-top: var(--sp-md);
|
||||
}
|
||||
|
||||
/* ————— stats band ————— */
|
||||
.stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
border-top: 1px solid var(--hairline);
|
||||
border-bottom: 1px solid var(--hairline);
|
||||
margin: 0 var(--sp-lg) var(--sp-xl);
|
||||
}
|
||||
.spec-cell {
|
||||
padding: var(--sp-lg) var(--sp-md);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--sp-xs);
|
||||
}
|
||||
.spec-cell + .spec-cell { border-left: 1px solid var(--hairline); }
|
||||
.cell-value {
|
||||
font-family: var(--font-display);
|
||||
font-size: 20px;
|
||||
letter-spacing: 1px;
|
||||
text-transform: uppercase;
|
||||
color: var(--on-dark);
|
||||
}
|
||||
.cell-label {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
letter-spacing: 2px;
|
||||
text-transform: uppercase;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
/* ————— spec-list ————— */
|
||||
.spec-list { margin: 0 var(--sp-lg); border-top: 1px solid var(--hairline-strong); }
|
||||
.list-header,
|
||||
.list-row {
|
||||
display: grid;
|
||||
grid-template-columns: 72px 1fr 200px 1fr;
|
||||
gap: var(--sp-lg);
|
||||
align-items: baseline;
|
||||
padding: var(--sp-lg) var(--sp-sm);
|
||||
border-bottom: 1px solid var(--hairline);
|
||||
}
|
||||
.list-header {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
letter-spacing: 2px;
|
||||
text-transform: uppercase;
|
||||
color: var(--muted);
|
||||
padding-top: var(--sp-md);
|
||||
}
|
||||
.list-row:nth-child(odd) { background: var(--surface-soft); }
|
||||
.rank,
|
||||
.weight {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
letter-spacing: 1.5px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.owner {
|
||||
font-family: var(--font-display);
|
||||
font-size: 20px;
|
||||
letter-spacing: 1px;
|
||||
color: var(--on-dark);
|
||||
}
|
||||
.stake {
|
||||
font-family: var(--font-display);
|
||||
font-size: 20px;
|
||||
letter-spacing: 1px;
|
||||
text-align: right;
|
||||
color: var(--on-dark);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.empty {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 12px;
|
||||
letter-spacing: 2px;
|
||||
text-transform: uppercase;
|
||||
color: var(--muted);
|
||||
padding: var(--sp-xxl) var(--sp-sm);
|
||||
}
|
||||
|
||||
/* ————— pager ————— */
|
||||
.pager {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--sp-lg);
|
||||
padding: var(--sp-xxl) var(--sp-lg);
|
||||
}
|
||||
.pill {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 14px;
|
||||
letter-spacing: 2.5px;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
color: var(--on-dark);
|
||||
border: 1px solid var(--on-dark);
|
||||
border-radius: 9999px;
|
||||
padding: 14px 32px;
|
||||
height: 44px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
.pill-disabled {
|
||||
opacity: 0.25;
|
||||
pointer-events: none;
|
||||
border-color: var(--muted-soft);
|
||||
}
|
||||
.page-count {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 12px;
|
||||
letter-spacing: 2px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
/* ————— footer ————— */
|
||||
.footer {
|
||||
padding: var(--sp-xxl) var(--sp-lg);
|
||||
margin-top: var(--sp-section);
|
||||
border-top: 1px solid var(--hairline);
|
||||
text-align: center;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
letter-spacing: 2px;
|
||||
text-transform: uppercase;
|
||||
color: var(--muted-soft);
|
||||
}
|
||||
|
||||
/* ————— responsive ————— */
|
||||
@media (max-width: 768px) {
|
||||
.stats { grid-template-columns: 1fr; }
|
||||
.spec-cell + .spec-cell { border-left: none; border-top: 1px solid var(--hairline); }
|
||||
.list-header,
|
||||
.list-row { grid-template-columns: 48px 1fr; gap: var(--sp-sm); }
|
||||
.list-header span:nth-child(3),
|
||||
.list-header span:nth-child(4),
|
||||
.list-row .stake,
|
||||
.list-row .weight { grid-column: 2; }
|
||||
.list-header span:nth-child(3) { display: none; }
|
||||
.list-header span:nth-child(4) { display: none; }
|
||||
.pager { flex-wrap: wrap; }
|
||||
}
|
||||
Reference in new issue
Block a user