Initial commit

This commit is contained in:
2026-05-25 13:00:20 -04:00
commit e14e43da42
49 changed files with 26892 additions and 0 deletions

71
css/base.css Normal file
View File

@@ -0,0 +1,71 @@
/* ============================================================
Base — Reset + Typography
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
font-size: 14px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
body {
font-family: var(--font-body);
color: var(--fg);
background: var(--bg);
line-height: 1.6;
overflow: hidden;
height: 100vh;
}
#root { height: 100vh; display: flex; }
a { color: var(--cyan); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-display);
color: var(--fg-bright);
line-height: 1.25;
letter-spacing: -0.01em;
}
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: var(--sp-4); }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: var(--sp-3); }
h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: var(--sp-2); }
p { margin-bottom: var(--sp-4); }
code {
font-family: var(--font-mono);
font-size: 0.9em;
background: var(--surface-raised);
padding: 2px 6px;
border-radius: var(--radius-sm);
color: var(--accent);
}
pre {
font-family: var(--font-mono);
font-size: 0.85rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: var(--sp-4);
overflow-x: auto;
line-height: 1.5;
margin-bottom: var(--sp-4);
}
ul, ol { padding-left: var(--sp-6); margin-bottom: var(--sp-4); }
li { margin-bottom: var(--sp-1); }
::selection { background: var(--accent); color: var(--bg); }
* { scrollbar-width: thin; scrollbar-color: var(--border-light) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

272
css/components.css Normal file
View File

@@ -0,0 +1,272 @@
/* ============================================================
Components — Shared UI elements
============================================================ */
/* ---------- Card ---------- */
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: var(--sp-6);
margin-bottom: var(--sp-6);
}
.card-accent {
border-left: 3px solid var(--accent);
}
/* ---------- Pill / Badge ---------- */
.pill {
font-family: var(--font-mono);
font-size: 0.7rem;
padding: 2px 10px;
border-radius: var(--radius-pill);
display: inline-flex;
align-items: center;
gap: var(--sp-1);
white-space: nowrap;
}
.pill-amber { background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent-border); }
.pill-cyan { background: var(--cyan-bg); color: var(--cyan); border: 1px solid rgba(34,211,238,0.25); }
.pill-green { background: var(--green-bg); color: var(--green); border: 1px solid rgba(34,197,94,0.25); }
.pill-red { background: var(--red-bg); color: var(--red); border: 1px solid rgba(239,68,68,0.25); }
.pill-purple { background: var(--purple-bg); color: var(--purple); border: 1px solid rgba(167,139,250,0.25); }
/* ---------- Data Table ---------- */
.data-table {
width: 100%;
border-collapse: collapse;
font-size: 0.85rem;
}
.data-table th {
font-family: var(--font-mono);
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--muted);
text-align: left;
padding: var(--sp-3) var(--sp-4);
border-bottom: 1px solid var(--border);
white-space: nowrap;
}
.data-table td {
padding: var(--sp-3) var(--sp-4);
border-bottom: 1px solid var(--border);
color: var(--fg);
font-family: var(--font-mono);
font-size: 0.8rem;
}
.data-table tr:hover td { background: var(--surface-raised); }
.data-table .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
/* ---------- Code Block ---------- */
.code-block {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: var(--sp-4) var(--sp-5);
overflow-x: auto;
margin-bottom: var(--sp-5);
}
.code-block code {
font-family: var(--font-mono);
font-size: 0.82rem;
line-height: 1.6;
color: var(--fg-dim);
background: none;
padding: 0;
}
.code-block .kw { color: var(--purple); }
.code-block .str { color: var(--green); }
.code-block .cm { color: var(--muted); font-style: italic; }
.code-block .type { color: var(--cyan); }
.code-block .fn { color: var(--accent); }
/* ---------- Stat Grid ---------- */
.stat-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: var(--sp-4);
margin-bottom: var(--sp-6);
}
.stat-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: var(--sp-5);
}
.stat-value {
font-family: var(--font-mono);
font-size: 1.6rem;
font-weight: 700;
color: var(--fg-bright);
font-variant-numeric: tabular-nums;
}
.stat-label {
font-size: 0.75rem;
color: var(--muted);
margin-top: var(--sp-1);
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* ---------- Section Header ---------- */
.section-header {
display: flex;
align-items: center;
gap: var(--sp-3);
margin-bottom: var(--sp-5);
padding-bottom: var(--sp-3);
border-bottom: 1px solid var(--border);
}
.section-header .section-num {
font-family: var(--font-mono);
font-size: 0.7rem;
color: var(--accent);
background: var(--accent-bg);
padding: 2px 8px;
border-radius: var(--radius-pill);
}
/* ---------- Roadmap Phase ---------- */
.phase-item {
display: flex;
gap: var(--sp-4);
margin-bottom: var(--sp-5);
}
.phase-marker {
display: flex;
flex-direction: column;
align-items: center;
min-width: 40px;
}
.phase-dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 8px rgba(240, 160, 48, 0.3);
}
.phase-dot.future { background: var(--border-light); box-shadow: none; }
.phase-line {
flex: 1;
width: 2px;
background: var(--border);
margin-top: var(--sp-1);
}
.phase-content { flex: 1; }
/* ---------- Demo Container ---------- */
.demo-container {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
overflow: hidden;
margin-bottom: var(--sp-6);
}
/* Inner panels inside demos that need independent scrolling */
.demo-scroll-panel {
overflow-y: auto;
overscroll-behavior: contain;
flex-shrink: 0;
}
.demo-toolbar {
display: flex;
align-items: center;
gap: var(--sp-3);
padding: var(--sp-3) var(--sp-4);
background: var(--surface-raised);
border-bottom: 1px solid var(--border);
font-size: 0.8rem;
}
.demo-toolbar .demo-title {
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--accent);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.demo-canvas-wrap {
position: relative;
background: var(--bg);
min-height: 400px;
}
.demo-canvas-wrap canvas {
display: block;
width: 100%;
height: 100%;
}
.demo-sidebar {
width: 280px;
background: var(--surface);
border-left: 1px solid var(--border);
padding: var(--sp-4);
overflow-y: auto;
font-size: 0.8rem;
}
/* ---------- Button ---------- */
.btn {
font-family: var(--font-body);
font-size: 0.8rem;
font-weight: 500;
padding: var(--sp-2) var(--sp-4);
border-radius: var(--radius-md);
border: 1px solid var(--border);
background: var(--surface-raised);
color: var(--fg);
cursor: pointer;
transition: all var(--transition-fast);
display: inline-flex;
align-items: center;
gap: var(--sp-2);
}
.btn:hover { border-color: var(--border-light); background: var(--surface-hover); }
.btn-primary {
background: var(--accent);
color: var(--bg);
border-color: var(--accent);
font-weight: 600;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-sm { padding: var(--sp-1) var(--sp-3); font-size: 0.75rem; }
.btn-danger { border-color: var(--red-dim); color: var(--red); }
.btn-danger:hover { background: var(--red-bg); }
/* ---------- Tags / Keywords ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
/* ---------- Alert / Callout ---------- */
.callout {
padding: var(--sp-4) var(--sp-5);
border-radius: var(--radius-md);
margin-bottom: var(--sp-5);
font-size: 0.85rem;
line-height: 1.5;
}
.callout-info { background: var(--cyan-bg); border: 1px solid rgba(34,211,238,0.2); color: var(--cyan); }
.callout-warn { background: var(--accent-bg); border: 1px solid var(--accent-border); color: var(--accent); }
.callout-danger { background: var(--red-bg); border: 1px solid rgba(239,68,68,0.2); color: var(--red); }
/* ---------- Grid Layouts ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--sp-5); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
/* ---------- Animations ---------- */
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.4; }
}
/* ---------- Progress Bar ---------- */
.progress-bar {
height: 4px;
background: var(--border);
border-radius: var(--radius-pill);
overflow: hidden;
}
.progress-bar .fill {
height: 100%;
border-radius: var(--radius-pill);
transition: width var(--transition-base);
}

224
css/layout.css Normal file
View File

@@ -0,0 +1,224 @@
/* ============================================================
Layout — App Shell
============================================================ */
.app-shell {
display: flex;
width: 100%;
height: 100vh;
overflow: hidden;
}
/* ---------- Sidebar ---------- */
.sidebar {
width: var(--sidebar-width);
min-width: var(--sidebar-width);
height: 100vh;
background: var(--surface);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
overflow: hidden;
transition: width var(--transition-base), min-width var(--transition-base);
z-index: 10;
}
.sidebar.collapsed {
width: var(--sidebar-collapsed);
min-width: var(--sidebar-collapsed);
}
.sidebar-header {
padding: var(--sp-4) var(--sp-5);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
gap: var(--sp-3);
min-height: var(--topbar-height);
}
.sidebar.collapsed .sidebar-header { padding: var(--sp-4); justify-content: center; }
.sidebar-logo {
font-family: var(--font-mono);
font-size: 0.8rem;
font-weight: 700;
color: var(--accent);
letter-spacing: 0.05em;
text-transform: uppercase;
white-space: nowrap;
overflow: hidden;
}
.sidebar.collapsed .sidebar-logo { font-size: 0; }
.sidebar-logo .logo-dot { color: var(--cyan); }
.sidebar-nav {
flex: 1;
overflow-y: auto;
padding: var(--sp-3) var(--sp-3);
}
.sidebar.collapsed .sidebar-nav { padding: var(--sp-2) var(--sp-2); }
.nav-section-title {
font-family: var(--font-mono);
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--muted);
padding: var(--sp-4) var(--sp-3) var(--sp-2);
white-space: nowrap;
overflow: hidden;
}
.sidebar.collapsed .nav-section-title { font-size: 0; padding: var(--sp-2); height: 8px; }
.nav-item {
display: flex;
align-items: center;
gap: var(--sp-3);
padding: var(--sp-2) var(--sp-3);
border-radius: var(--radius-md);
color: var(--fg-dim);
font-size: 0.85rem;
cursor: pointer;
transition: all var(--transition-fast);
white-space: nowrap;
overflow: hidden;
user-select: none;
margin-bottom: 2px;
text-decoration: none;
}
.nav-item:hover {
background: var(--surface-raised);
color: var(--fg-bright);
}
.nav-item.active {
background: var(--accent-bg);
color: var(--accent);
border: 1px solid var(--accent-border);
}
.nav-item .nav-icon {
font-size: 1rem;
min-width: 20px;
text-align: center;
}
.sidebar.collapsed .nav-item { padding: var(--sp-3); justify-content: center; }
.sidebar.collapsed .nav-item .nav-label { display: none; }
.nav-badge {
font-family: var(--font-mono);
font-size: 0.65rem;
background: var(--accent-bg);
color: var(--accent);
padding: 1px 6px;
border-radius: var(--radius-pill);
margin-left: auto;
}
.sidebar.collapsed .nav-badge { display: none; }
/* ---------- Main Area ---------- */
.main-area {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
min-width: 0;
}
/* ---------- Top Bar ---------- */
.topbar {
height: var(--topbar-height);
min-height: var(--topbar-height);
background: var(--surface);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
padding: 0 var(--sp-5);
gap: var(--sp-4);
font-size: 0.8rem;
}
.topbar-toggle {
background: none;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--muted);
cursor: pointer;
padding: var(--sp-1) var(--sp-2);
font-size: 1rem;
transition: all var(--transition-fast);
display: flex;
align-items: center;
}
.topbar-toggle:hover { color: var(--fg); border-color: var(--border-light); }
.topbar-breadcrumb {
font-family: var(--font-mono);
color: var(--muted);
font-size: 0.75rem;
display: flex;
align-items: center;
gap: var(--sp-2);
}
.topbar-breadcrumb .bc-sep { color: var(--border-light); }
.topbar-breadcrumb .bc-current { color: var(--fg-bright); }
.topbar-status {
margin-left: auto;
display: flex;
align-items: center;
gap: var(--sp-4);
font-family: var(--font-mono);
font-size: 0.7rem;
color: var(--muted);
}
.status-dot {
width: 6px;
height: 6px;
border-radius: 50%;
display: inline-block;
margin-right: var(--sp-1);
}
.status-dot.online { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.offline { background: var(--red); }
/* ---------- Content ---------- */
.content {
flex: 1;
overflow-y: auto;
min-height: 0; /* allow flex child to shrink and scroll */
padding: var(--sp-8) var(--sp-10);
background: var(--bg);
overscroll-behavior: contain;
}
.content-inner {
max-width: var(--content-max-width);
margin: 0 auto;
}
/* ---------- Fullscreen Demo ---------- */
.app-shell.fullscreen-demo {
background: #000;
}
.app-shell.fullscreen-demo .main-area {
flex: 1;
overflow: hidden; /* main-area contains the scroll child */
}
.app-shell.fullscreen-demo .content--flush {
padding: 0;
overflow-y: auto;
flex: 1;
min-height: 0; /* allow flex child to shrink and scroll */
overscroll-behavior: contain;
}
/* ---------- Responsive ---------- */
@media (max-width: 768px) {
.sidebar {
position: fixed;
left: 0;
top: 0;
transform: translateX(-100%);
z-index: 100;
}
.sidebar.open { transform: translateX(0); }
.content { padding: var(--sp-4) var(--sp-5); }
}

80
css/tokens.css Normal file
View File

@@ -0,0 +1,80 @@
/* ============================================================
Star Trek LCARS × Modern Minimal — Design Tokens
============================================================ */
:root {
/* Core palette */
--bg: #080c14;
--bg-subtle: #0b1120;
--surface: #0f1623;
--surface-raised: #162032;
--surface-hover: #1c2d45;
--fg: #d4dce8;
--fg-bright: #f1f5f9;
--fg-dim: #94a3b8;
--muted: #5a6b82;
--border: #1c2a3f;
--border-light: #253550;
/* Accent — LCARS amber/gold */
--accent: #f0a030;
--accent-hover: #fbbf24;
--accent-dim: #b47818;
--accent-bg: rgba(240, 160, 48, 0.08);
--accent-border: rgba(240, 160, 48, 0.25);
/* Secondary accents */
--cyan: #22d3ee;
--cyan-dim: #0891b2;
--cyan-bg: rgba(34, 211, 238, 0.08);
--red: #ef4444;
--red-dim: #dc2626;
--red-bg: rgba(239, 68, 68, 0.08);
--green: #22c55e;
--green-dim: #16a34a;
--green-bg: rgba(34, 197, 94, 0.08);
--purple: #a78bfa;
--purple-dim: #8b5cf6;
--purple-bg: rgba(167, 139, 250, 0.08);
/* Typography */
--font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
--font-body: 'SF Pro Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
--font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, Menlo, monospace;
/* Spacing */
--sp-1: 4px;
--sp-2: 8px;
--sp-3: 12px;
--sp-4: 16px;
--sp-5: 20px;
--sp-6: 24px;
--sp-8: 32px;
--sp-10: 40px;
--sp-12: 48px;
--sp-16: 64px;
/* Radii — LCARS inspired (pill shapes) */
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 20px;
--radius-pill: 9999px;
/* Shadows */
--shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
--shadow-md: 0 4px 12px rgba(0,0,0,0.4);
--shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
--shadow-glow-accent: 0 0 20px rgba(240, 160, 48, 0.15);
--shadow-glow-cyan: 0 0 20px rgba(34, 211, 238, 0.15);
/* Transitions */
--transition-fast: 150ms ease;
--transition-base: 250ms ease;
--transition-slow: 400ms ease;
/* Layout */
--sidebar-width: 260px;
--sidebar-collapsed: 60px;
--topbar-height: 48px;
--content-max-width: 1100px;
}