better page layout
This commit is contained in:
42
frontend.css
42
frontend.css
@@ -32,34 +32,6 @@ body {
|
|||||||
flex-direction: column;
|
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 Grid ──────────────────────────────────────────────── */
|
||||||
|
|
||||||
.layout {
|
.layout {
|
||||||
@@ -76,6 +48,20 @@ body {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: 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 ──────────────────────────────────────────────────── */
|
/* ── Sidebar ──────────────────────────────────────────────────── */
|
||||||
|
|||||||
@@ -391,13 +391,9 @@ function App() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="app">
|
<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">
|
<div className="layout">
|
||||||
<main className="main" ref={mainRef}>
|
<main className="main" ref={mainRef}>
|
||||||
|
<a href="/" className="main-logo">QUIPSLOP</a>
|
||||||
{(() => {
|
{(() => {
|
||||||
const isGeneratingNextPrompt = state.active && state.active.phase === "prompting" && !state.active.prompt;
|
const isGeneratingNextPrompt = state.active && state.active.phase === "prompting" && !state.active.prompt;
|
||||||
const lastCompleted = state.completed[state.completed.length - 1];
|
const lastCompleted = state.completed[state.completed.length - 1];
|
||||||
|
|||||||
79
history.css
79
history.css
@@ -23,43 +23,48 @@ body {
|
|||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Header ───────────────────────────────────────────────────── */
|
/* ── Main Layout ──────────────────────────────────────────────── */
|
||||||
.header {
|
.main-logo {
|
||||||
padding: 24px 48px;
|
position: absolute;
|
||||||
display: flex;
|
top: 32px;
|
||||||
align-items: center;
|
left: 48px;
|
||||||
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 {
|
|
||||||
font-family: 'JetBrains Mono', monospace;
|
font-family: 'JetBrains Mono', monospace;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
letter-spacing: -1px;
|
letter-spacing: -1px;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header__tagline {
|
.main {
|
||||||
color: var(--text-muted);
|
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-family: 'JetBrains Mono', monospace;
|
||||||
font-size: 12px;
|
font-size: 14px;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
color: var(--text-dim);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 1px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header__nav a {
|
.back-link {
|
||||||
color: var(--text-dim);
|
color: var(--text-dim);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-family: 'JetBrains Mono', monospace;
|
font-family: 'JetBrains Mono', monospace;
|
||||||
@@ -70,32 +75,10 @@ body {
|
|||||||
transition: color 0.2s;
|
transition: color 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header__nav a:hover {
|
.back-link:hover {
|
||||||
color: var(--text);
|
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 ──────────────────────────────────────────── */
|
||||||
.loading, .error, .empty {
|
.loading, .error, .empty {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
16
history.tsx
16
history.tsx
@@ -191,18 +191,12 @@ function App() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="app">
|
<div className="app">
|
||||||
<header className="header">
|
<a href="/" className="main-logo">QUIPSLOP</a>
|
||||||
<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>
|
|
||||||
|
|
||||||
<main className="main">
|
<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 ? (
|
{loading ? (
|
||||||
<div className="loading">Loading...</div>
|
<div className="loading">Loading...</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user