From 4c4d21a72637febeb9d8dd7edecdb9b2b013b194 Mon Sep 17 00:00:00 2001 From: Theo Browne Date: Fri, 20 Feb 2026 02:55:40 -0800 Subject: [PATCH] better page layout --- frontend.css | 42 ++++++++++------------------ frontend.tsx | 6 +--- history.css | 79 +++++++++++++++++++++------------------------------- history.tsx | 16 ++++------- 4 files changed, 51 insertions(+), 92 deletions(-) diff --git a/frontend.css b/frontend.css index 86a2905..60fddbf 100644 --- a/frontend.css +++ b/frontend.css @@ -32,34 +32,6 @@ body { flex-direction: column; } -/* ── Header ───────────────────────────────────────────────────── */ - -.header { - padding: 24px 48px; - display: flex; - align-items: center; - justify-content: space-between; - border-bottom: 1px solid var(--border); - background: var(--bg); - flex-shrink: 0; -} - -.header__logo { - font-family: 'JetBrains Mono', monospace; - font-size: 24px; - font-weight: 700; - letter-spacing: -1px; - color: var(--text); -} - -.header__tagline { - color: var(--text-muted); - font-family: 'JetBrains Mono', monospace; - font-size: 12px; - text-transform: uppercase; - letter-spacing: 1px; -} - /* ── Layout Grid ──────────────────────────────────────────────── */ .layout { @@ -76,6 +48,20 @@ body { flex-direction: column; justify-content: center; align-items: center; + position: relative; +} + +.main-logo { + position: absolute; + top: 32px; + left: 48px; + font-family: 'JetBrains Mono', monospace; + font-size: 24px; + font-weight: 700; + letter-spacing: -1px; + color: var(--text); + text-decoration: none; + z-index: 10; } /* ── Sidebar ──────────────────────────────────────────────────── */ diff --git a/frontend.tsx b/frontend.tsx index 2de7e57..8c84637 100644 --- a/frontend.tsx +++ b/frontend.tsx @@ -391,13 +391,9 @@ function App() { return (
-
-

QUIPSLOP

-

AI vs AI Comedy Showdown

-
-
+ QUIPSLOP {(() => { const isGeneratingNextPrompt = state.active && state.active.phase === "prompting" && !state.active.prompt; const lastCompleted = state.completed[state.completed.length - 1]; diff --git a/history.css b/history.css index ade4652..3677b7e 100644 --- a/history.css +++ b/history.css @@ -23,43 +23,48 @@ body { -webkit-font-smoothing: antialiased; } -/* ── Header ───────────────────────────────────────────────────── */ -.header { - padding: 24px 48px; - display: flex; - align-items: center; - justify-content: space-between; - border-bottom: 1px solid var(--border); - background: var(--bg); - position: sticky; - top: 0; - z-index: 10; -} - -.header__left { - display: flex; - align-items: center; - gap: 24px; -} - -.header__logo { +/* ── Main Layout ──────────────────────────────────────────────── */ +.main-logo { + position: absolute; + top: 32px; + left: 48px; font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 700; letter-spacing: -1px; color: var(--text); text-decoration: none; + z-index: 10; } -.header__tagline { - color: var(--text-muted); +.main { + max-width: 900px; + margin: 0 auto; + padding: 64px 24px; + display: flex; + flex-direction: column; + gap: 48px; +} + +.page-header { + display: flex; + justify-content: space-between; + align-items: flex-end; + border-bottom: 1px solid var(--border); + padding-bottom: 16px; + margin-bottom: 16px; +} + +.page-title { font-family: 'JetBrains Mono', monospace; - font-size: 12px; + font-size: 14px; + font-weight: 700; + letter-spacing: 2px; + color: var(--text-dim); text-transform: uppercase; - letter-spacing: 1px; } -.header__nav a { +.back-link { color: var(--text-dim); text-decoration: none; font-family: 'JetBrains Mono', monospace; @@ -70,32 +75,10 @@ body { transition: color 0.2s; } -.header__nav a:hover { +.back-link:hover { color: var(--text); } -/* ── Main Layout ──────────────────────────────────────────────── */ -.main { - max-width: 900px; - margin: 0 auto; - padding: 64px 24px; - display: flex; - flex-direction: column; - gap: 48px; -} - -.page-title { - font-family: 'JetBrains Mono', monospace; - font-size: 14px; - font-weight: 700; - letter-spacing: 2px; - color: var(--text-dim); - text-transform: uppercase; - border-bottom: 1px solid var(--border); - padding-bottom: 16px; - margin-bottom: 16px; -} - /* ── Loading / Error ──────────────────────────────────────────── */ .loading, .error, .empty { text-align: center; diff --git a/history.tsx b/history.tsx index b431569..13a127d 100644 --- a/history.tsx +++ b/history.tsx @@ -191,18 +191,12 @@ function App() { return (
-
-
- QUIPSLOP - History -
- -
- + QUIPSLOP
-
Past Rounds
+
+
Past Rounds
+ ← Back to Game +
{loading ? (
Loading...