better page layout
This commit is contained in:
42
frontend.css
42
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 ──────────────────────────────────────────────────── */
|
||||
|
||||
@@ -391,13 +391,9 @@ function App() {
|
||||
|
||||
return (
|
||||
<div className="app">
|
||||
<header className="header">
|
||||
<h1 className="header__logo">QUIPSLOP</h1>
|
||||
<p className="header__tagline">AI vs AI Comedy Showdown</p>
|
||||
</header>
|
||||
|
||||
<div className="layout">
|
||||
<main className="main" ref={mainRef}>
|
||||
<a href="/" className="main-logo">QUIPSLOP</a>
|
||||
{(() => {
|
||||
const isGeneratingNextPrompt = state.active && state.active.phase === "prompting" && !state.active.prompt;
|
||||
const lastCompleted = state.completed[state.completed.length - 1];
|
||||
|
||||
79
history.css
79
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;
|
||||
|
||||
16
history.tsx
16
history.tsx
@@ -191,18 +191,12 @@ function App() {
|
||||
|
||||
return (
|
||||
<div className="app">
|
||||
<header className="header">
|
||||
<div className="header__left">
|
||||
<a href="/" className="header__logo">QUIPSLOP</a>
|
||||
<span className="header__tagline">History</span>
|
||||
</div>
|
||||
<nav className="header__nav">
|
||||
<a href="/">← Back to Game</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<a href="/" className="main-logo">QUIPSLOP</a>
|
||||
<main className="main">
|
||||
<div className="page-title">Past Rounds</div>
|
||||
<div className="page-header">
|
||||
<div className="page-title">Past Rounds</div>
|
||||
<a href="/" className="back-link">← Back to Game</a>
|
||||
</div>
|
||||
|
||||
{loading ? (
|
||||
<div className="loading">Loading...</div>
|
||||
|
||||
Reference in New Issue
Block a user