Init Main project
This commit is contained in:
commit
9e581ae67f
220 changed files with 253987 additions and 0 deletions
220
public/css/screens.css
Normal file
220
public/css/screens.css
Normal file
|
|
@ -0,0 +1,220 @@
|
|||
/* Screen-specific layouts for menu, auth, onboarding, dashboard, builder, config, map, launch, and debrief. Not much to say about this one I suppose :( #whatthehellisexpress.js */
|
||||
.menu-root {
|
||||
position: absolute; inset: 0; z-index: 2;
|
||||
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
||||
pointer-events: none; padding: 24px;
|
||||
}
|
||||
.menu-root .btn, .menu-root .menu-card { pointer-events: auto; }
|
||||
|
||||
.menu-brand-pill {
|
||||
font-family: var(--mono); font-size: 10px; letter-spacing: 0.25em;
|
||||
text-transform: uppercase; color: var(--brand-blue);
|
||||
border: 1px solid var(--sim-accent-dim); background: rgba(11, 14, 20, 0.75);
|
||||
padding: 5px 14px; margin-bottom: 18px; clip-path: var(--chamfer-sm);
|
||||
}
|
||||
.menu-title {
|
||||
font-family: var(--mono);
|
||||
font-size: clamp(32px, 5.5vw, 66px);
|
||||
font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
|
||||
text-align: center; color: #f8fafc;
|
||||
text-shadow: 0 0 36px var(--sim-glow), 0 0 12px rgba(52, 152, 219, 0.35);
|
||||
}
|
||||
.menu-title::after {
|
||||
content: ''; display: block; height: 2px; margin: 12px auto 0; width: 72%;
|
||||
background: linear-gradient(90deg, transparent, var(--brand-blue), transparent);
|
||||
}
|
||||
.menu-subtitle {
|
||||
color: var(--text-dim); letter-spacing: 0.42em; text-transform: uppercase;
|
||||
font-size: 11px; font-family: var(--mono); margin: 14px 0 42px; text-align: center;
|
||||
}
|
||||
.menu-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
|
||||
.menu-buttons .btn { min-width: 190px; padding: 14px 28px; font-size: 12px; }
|
||||
.menu-footer {
|
||||
position: absolute; bottom: 18px; font-size: 10px; color: var(--text-faint);
|
||||
letter-spacing: 0.16em; font-family: var(--mono); text-align: center;
|
||||
}
|
||||
|
||||
.auth-card { width: min(580px, 100%); padding: 28px; }
|
||||
.auth-card h2 { font-size: 18px; margin-bottom: 6px; }
|
||||
.auth-card .sub { color: var(--text-dim); font-size: 12px; margin-bottom: 22px; line-height: 1.5; }
|
||||
.auth-error { color: var(--red); font-size: 12px; min-height: 16px; font-family: var(--mono); }
|
||||
|
||||
.diff-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
|
||||
.diff-card {
|
||||
display: flex; flex-direction: column; gap: 4px; text-align: left;
|
||||
padding: 10px 12px; text-transform: none; letter-spacing: 0.02em; font-weight: 500;
|
||||
}
|
||||
.diff-card .dc-head {
|
||||
display: flex; justify-content: space-between; align-items: center; width: 100%;
|
||||
font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
|
||||
}
|
||||
.diff-card .dc-sub { font-size: 11px; color: var(--text-dim); line-height: 1.35; }
|
||||
.diff-card .dc-meta { font-family: var(--mono); font-size: 10px; color: var(--text-faint); }
|
||||
|
||||
.onboard-layout {
|
||||
display: grid; grid-template-columns: 1fr 340px; gap: 20px; height: 100%; padding: 22px; overflow: hidden;
|
||||
}
|
||||
.onboard-scroll { overflow-y: auto; padding-right: 6px; }
|
||||
.onboard-preview { display: flex; flex-direction: column; gap: 12px; }
|
||||
.onboard-preview-box {
|
||||
height: 280px; position: relative; border: 1px solid var(--border);
|
||||
background: var(--bg-deep); clip-path: var(--chamfer-sm); overflow: hidden;
|
||||
}
|
||||
|
||||
.dash-root { display: grid; grid-template-columns: 1fr 370px; height: 100%; }
|
||||
.dash-viewport { position: relative; overflow: hidden; }
|
||||
.dash-viewport canvas { display: block; }
|
||||
.dash-header {
|
||||
position: absolute; top: 0; left: 0; right: 0;
|
||||
display: flex; justify-content: space-between; align-items: center; gap: 12px;
|
||||
padding: 14px 20px; z-index: 5;
|
||||
background: linear-gradient(180deg, rgba(11, 14, 20, 0.92), transparent);
|
||||
pointer-events: none;
|
||||
}
|
||||
.dash-header > * { pointer-events: auto; }
|
||||
.dash-header h1 { font-size: 15px; }
|
||||
|
||||
.dash-overlay-bottom {
|
||||
position: absolute; bottom: 16px; left: 20px; right: 20px; z-index: 5;
|
||||
display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
|
||||
pointer-events: none;
|
||||
}
|
||||
.dash-overlay-bottom > * { pointer-events: auto; }
|
||||
|
||||
.dash-sidebar {
|
||||
border-left: 1px solid var(--border);
|
||||
background: var(--bg-panel-solid);
|
||||
padding: 18px; overflow-y: auto;
|
||||
display: flex; flex-direction: column; gap: 14px;
|
||||
}
|
||||
.dash-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 8px; }
|
||||
.dash-nav .btn { justify-content: flex-start; padding: 11px 12px; font-size: 10px; }
|
||||
.dash-nav .btn.full-span { grid-column: 1 / -1; justify-content: center; padding: 13px 16px; font-size: 12px; }
|
||||
|
||||
.stat-row {
|
||||
display: flex; justify-content: space-between; align-items: center; gap: 8px;
|
||||
font-size: 12px; padding: 6px 0; border-bottom: 1px solid rgba(42, 52, 73, 0.55);
|
||||
font-family: var(--mono);
|
||||
}
|
||||
.stat-row .k { color: var(--text-dim); text-transform: uppercase; font-size: 10px; letter-spacing: 0.08em; }
|
||||
.stat-row .v { font-size: 12px; text-align: right; }
|
||||
|
||||
.builder-root { display: grid; grid-template-columns: 1fr 440px; height: 100%; }
|
||||
.builder-viewport { position: relative; border-right: 1px solid var(--border); overflow: hidden; }
|
||||
.builder-sidebar {
|
||||
background: var(--bg-panel-solid);
|
||||
display: flex; flex-direction: column; overflow: hidden;
|
||||
}
|
||||
.builder-tier-bar {
|
||||
display: flex; gap: 6px; padding: 10px 12px;
|
||||
border-bottom: 1px solid var(--border); background: var(--bg-deep); align-items: center;
|
||||
}
|
||||
.builder-tabs { display: flex; border-bottom: 1px solid var(--border); background: rgba(11, 14, 20, 0.5); }
|
||||
.builder-tabs button {
|
||||
flex: 1; padding: 11px 6px; background: none; border: none; color: var(--text-dim);
|
||||
font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
|
||||
cursor: pointer; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s;
|
||||
}
|
||||
.builder-tabs button.active { color: var(--sim-accent); border-bottom-color: var(--sim-accent); }
|
||||
.builder-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
|
||||
|
||||
.stage-card {
|
||||
border: 1px solid var(--border); clip-path: var(--chamfer-sm);
|
||||
padding: 12px; background: var(--bg-elevated); display: flex; flex-direction: column; gap: 9px;
|
||||
}
|
||||
.stage-card.active { border-color: var(--brand-blue); }
|
||||
|
||||
.slot-group {
|
||||
background: rgba(11, 14, 20, 0.55); border: 1px solid var(--border);
|
||||
padding: 8px 10px; display: flex; flex-direction: column; gap: 6px;
|
||||
}
|
||||
.slot-title {
|
||||
font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
|
||||
text-transform: uppercase; color: var(--sim-accent);
|
||||
}
|
||||
|
||||
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
||||
.stat-box { background: var(--bg-deep); border: 1px solid var(--border); clip-path: var(--chamfer-sm); padding: 9px 11px; }
|
||||
.stat-box .k { font-family: var(--mono); font-size: 9px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; }
|
||||
.stat-box .v { font-family: var(--mono); font-size: 13px; margin-top: 3px; font-weight: 700; }
|
||||
.stat-box .v.good { color: var(--green); }
|
||||
.stat-box .v.bad { color: var(--red); }
|
||||
.stat-box .v.warn { color: var(--amber); }
|
||||
|
||||
.rule-item {
|
||||
border: 1px solid var(--border); padding: 8px 10px; background: var(--bg-deep);
|
||||
clip-path: var(--chamfer-sm); display: flex; flex-direction: column; gap: 4px; font-size: 11px;
|
||||
}
|
||||
.rule-item.fail { border-color: rgba(248, 113, 113, 0.5); }
|
||||
.rule-item.waived { border-color: rgba(245, 158, 11, 0.55); }
|
||||
.rule-item.pass { border-color: rgba(52, 211, 153, 0.25); }
|
||||
|
||||
.builder-hud-bottom {
|
||||
position: absolute; left: 16px; bottom: 16px; z-index: 4;
|
||||
display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none;
|
||||
}
|
||||
.builder-hud-bottom > * { pointer-events: auto; }
|
||||
|
||||
.param-root { display: grid; grid-template-columns: 1fr 440px; height: 100%; overflow: hidden; }
|
||||
.param-main { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
|
||||
.param-side {
|
||||
border-left: 1px solid var(--border); background: var(--bg-panel-solid);
|
||||
padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
|
||||
}
|
||||
.canvas-box {
|
||||
width: 100%; background: var(--bg-deep); border: 1px solid var(--border);
|
||||
clip-path: var(--chamfer-sm); display: block;
|
||||
}
|
||||
|
||||
.map-root { display: grid; grid-template-columns: 1fr 340px; height: 100%; }
|
||||
.map-viewport { position: relative; overflow: hidden; }
|
||||
.map-sidebar {
|
||||
border-left: 1px solid var(--border); background: var(--bg-panel-solid);
|
||||
padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
|
||||
}
|
||||
.map-sidebar h3 { font-size: 11px; color: var(--text-dim); margin-top: 8px; }
|
||||
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 11px; padding: 3px 0; font-family: var(--mono); cursor: pointer; }
|
||||
.legend-item:hover { color: var(--sim-accent); }
|
||||
.legend-dot { width: 8px; height: 8px; display: inline-block; }
|
||||
|
||||
.launch-root { display: flex; flex-direction: column; height: 100%; }
|
||||
.launch-viewport { flex: 1; position: relative; overflow: hidden; }
|
||||
.launch-hud-stack {
|
||||
position: absolute; left: 20px; bottom: 20px; z-index: 5;
|
||||
display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
|
||||
max-height: calc(100vh - 110px);
|
||||
pointer-events: none;
|
||||
}
|
||||
.launch-hud-stack > * { pointer-events: auto; }
|
||||
.launch-hud {
|
||||
background: rgba(11, 14, 20, 0.88); backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--border); clip-path: var(--chamfer);
|
||||
padding: 14px 16px; min-width: 310px; width: min(335px, calc(100vw - 40px));
|
||||
font-family: var(--mono); font-size: 11px;
|
||||
}
|
||||
.launch-events {
|
||||
background: rgba(11, 14, 20, 0.86); backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--border); clip-path: var(--chamfer-sm);
|
||||
padding: 12px 14px; width: min(335px, calc(100vw - 40px));
|
||||
max-height: 185px; overflow-y: auto;
|
||||
font-family: var(--mono); font-size: 11px;
|
||||
}
|
||||
.launch-banner {
|
||||
position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
|
||||
font-family: var(--mono); font-size: 22px; font-weight: 800; letter-spacing: 0.32em;
|
||||
text-transform: uppercase; color: var(--sim-accent);
|
||||
text-shadow: 0 0 28px var(--sim-glow); z-index: 6; pointer-events: none;
|
||||
text-align: center;
|
||||
}
|
||||
.launch-controls { position: absolute; top: 18px; right: 20px; display: flex; gap: 8px; z-index: 6; }
|
||||
.launch-title-left { position: absolute; top: 18px; left: 20px; z-index: 6; display: flex; flex-direction: column; gap: 4px; }
|
||||
|
||||
.list-page { padding: 22px; overflow-y: auto; height: 100%; display: flex; flex-direction: column; gap: 16px; }
|
||||
.list-page .cols { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
|
||||
|
||||
.debrief-root { display: flex; align-items: center; justify-content: center; height: 100%; padding: 20px; overflow-y: auto; }
|
||||
.debrief-card { width: min(640px, 100%); padding: 30px; }
|
||||
.score-ring { display: flex; align-items: center; gap: 22px; margin: 18px 0; }
|
||||
.grade { font-size: 68px; font-weight: 800; font-family: var(--mono); line-height: 1; }
|
||||
.grade.s { color: var(--brand-blue); } .grade.a { color: var(--green); }
|
||||
.grade.b { color: var(--amber); } .grade.c { color: var(--red); } .grade.f { color: var(--red); }
|
||||
Loading…
Add table
Add a link
Reference in a new issue