Redesign dashboard: single neutral theme, urgency-ordered layout

Replaces the five novelty themes with one professional dark theme built
on a shared token set (surfaces, 6-step type scale, semantic colours,
44px tap target) used across dashboard, login and settings.

Layout now matches the cache tiers in app.py: a "Right now" strip with
live streams, the download queue and array usage sits above the fold,
with library, discovery, requests and watch insights below. Previously
the page opened on rarely-actionable disk stats and buried active
streams under twenty recommendation rows.

Also from the design review:
- Discover lists show 5 with a Show more toggle instead of 10 each
- RT descriptions render inline and clamped, not hover-only tooltips
  that touch devices could never reach
- Adding a title is now two-step (tap to arm, tap to confirm) since it
  queues a real download
- role=alert on errors, aria-live on polled regions, semantic dl/dt/dd
  stats, labelled search inputs
- every text/surface pair verified at >= 5:1 contrast

Drops the dead delete-modal JS, which threw a TypeError on every load,
and the stale root-level template copies that Flask never rendered.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Barely Removable 2026-08-26 08:12:41 -07:00
parent 951914dd69
commit 339b9f3310
8 changed files with 1484 additions and 4828 deletions

View file

@ -3,200 +3,148 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Greendale Media Centre — Login</title>
<link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}">
<link href="https://fonts.googleapis.com/css2?family=Special+Elite&family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
<title>Sign in — Media Centre</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect width='100' height='100' rx='22' fill='%237aa2f7'/><path d='M40 32 L72 50 L40 68 Z' fill='%230f1319'/></svg>">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--gold: #e8b84b;
--gold-dk: #c49a2a;
--teal: #2a9d8f;
--teal-lt: #3dbdb0;
--navy: #1b2a3b;
--navy-lt: #243447;
--navy-mid:#1e3050;
--panel: #192433;
--border: #2e4460;
--text: #d8e4f0;
--muted: #7a93b0;
--red: #e84b4b;
--green: #27c98f;
--bg: #0f1319;
--surface: #161b23;
--surface-2: #1c222c;
--border: #262e3a;
--text: #e6ebf2;
--text-2: #a8b3c4;
--text-3: #8592a6;
--accent: #7aa2f7;
--danger: #f87171;
--danger-dim: rgba(248,113,113,0.1);
--fs-xs: 0.75rem;
--fs-sm: 0.8125rem;
--fs-base: 0.9375rem;
--fs-lg: 1.125rem;
--radius: 10px;
--radius-sm: 7px;
--tap: 44px;
--font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
*, *::before, *::after { box-sizing: border-box; }
body {
font-family: 'Inter', sans-serif;
background: var(--navy);
margin: 0;
font-family: var(--font);
font-size: var(--fs-base);
background: var(--bg);
color: var(--text);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 2rem;
padding: 1.5rem;
}
.login-wrap {
width: 100%;
max-width: 400px;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 360px; }
/* ── Logo / brand ── */
.brand {
text-align: center;
margin-bottom: 2rem;
}
.brand .logo-badge {
display: inline-block;
background: var(--gold);
color: var(--navy);
font-family: 'Special Elite', cursive;
font-size: 1.3rem;
font-weight: 700;
padding: 0.5rem 1.2rem;
border-radius: 8px;
letter-spacing: 1px;
margin-bottom: 0.85rem;
display: flex;
align-items: center;
justify-content: center;
gap: 0.6rem;
margin-bottom: 1.75rem;
}
.brand h1 {
font-family: 'Special Elite', cursive;
font-size: 1.6rem;
color: var(--gold);
letter-spacing: 1px;
}
.brand p {
font-size: 0.8rem;
color: var(--muted);
margin-top: 0.3rem;
font-style: italic;
margin: 0;
font-size: var(--fs-lg);
font-weight: 600;
letter-spacing: -0.01em;
}
/* ── Card ── */
.login-card {
background: var(--panel);
.card {
background: var(--surface);
border: 1px solid var(--border);
border-top: 3px solid var(--gold);
border-radius: 12px;
padding: 2rem 2rem 1.75rem;
border-radius: var(--radius);
padding: 1.5rem;
}
.login-card h2 {
font-family: 'Special Elite', cursive;
font-size: 1rem;
color: var(--muted);
text-align: center;
margin-bottom: 1.5rem;
letter-spacing: 0.5px;
}
/* ── Form fields ── */
.field { margin-bottom: 1.1rem; }
.field label {
label {
display: block;
font-size: 0.72rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.6px;
color: var(--muted);
font-size: var(--fs-xs);
font-weight: 600;
color: var(--text-2);
margin-bottom: 0.4rem;
}
.field input {
input {
width: 100%;
background: var(--navy-lt);
min-height: var(--tap);
padding: 0 0.85rem;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.7rem 1rem;
font-size: 0.95rem;
border-radius: var(--radius-sm);
color: var(--text);
font-family: 'Inter', sans-serif;
font-family: inherit;
font-size: 16px; /* prevents iOS zoom on focus */
outline: none;
transition: border-color 0.2s;
}
.field input:focus { border-color: var(--gold); }
.field input::placeholder { color: var(--muted); }
input:focus { border-color: var(--accent); }
input::placeholder { color: var(--text-3); }
/* ── Error ── */
.error-msg {
background: rgba(232,75,75,0.1);
border: 1px solid rgba(232,75,75,0.4);
border-radius: 8px;
padding: 0.7rem 1rem;
color: #ff8080;
font-size: 0.83rem;
background: var(--danger-dim);
border: 1px solid rgba(248,113,113,0.35);
border-radius: var(--radius-sm);
padding: 0.7rem 0.85rem;
color: var(--danger);
font-size: var(--fs-sm);
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
/* ── Submit button ── */
.btn-login {
button {
width: 100%;
background: var(--gold);
color: var(--navy);
min-height: var(--tap);
margin-top: 1rem;
background: var(--accent);
color: var(--bg);
border: none;
border-radius: 8px;
padding: 0.8rem;
font-size: 0.95rem;
font-weight: 700;
font-family: 'Special Elite', cursive;
letter-spacing: 0.5px;
border-radius: var(--radius-sm);
font-family: inherit;
font-size: var(--fs-sm);
font-weight: 600;
cursor: pointer;
transition: opacity 0.15s, transform 0.1s;
margin-top: 0.4rem;
}
.btn-login:hover { opacity: 0.88; }
.btn-login:active { transform: scale(0.98); }
/* ── Footer quote ── */
.login-footer {
text-align: center;
margin-top: 1.5rem;
font-family: 'Special Elite', cursive;
font-size: 0.72rem;
color: var(--muted);
font-style: italic;
transition: opacity 0.15s;
}
button:hover { opacity: 0.88; }
</style>
</head>
<body>
<div class="login-wrap">
<div class="wrap">
<div class="brand">
<img src="{{ url_for('static', filename='logo.png') }}" alt="Greendale Community College" style="width:90px; height:90px; object-fit:contain; margin-bottom:0.75rem; filter:drop-shadow(0 2px 8px rgba(0,0,0,0.4));">
<h1>Greendale Media Centre</h1>
<p>Human beings welcome. Robots too.</p>
<svg width="30" height="30" viewBox="0 0 100 100" aria-hidden="true">
<rect width="100" height="100" rx="22" fill="var(--accent)"/>
<path d="M40 32 L72 50 L40 68 Z" fill="var(--bg)"/>
</svg>
<h1>Media Centre</h1>
</div>
<div class="login-card">
<h2>🔒 &nbsp;Study Room F — Access Required</h2>
<div class="card">
{% if error %}
<div class="error-msg">⚠️ {{ error }}</div>
<div class="error-msg" role="alert">{{ error }}</div>
{% endif %}
<form method="POST" action="{{ url_for('login', next=request.args.get('next', '')) }}">
<div class="field">
<label for="password">Password</label>
<input
type="password"
id="password"
name="password"
placeholder="Enter password"
autofocus
autocomplete="current-password"
>
</div>
<button type="submit" class="btn-login">Enter Study Room →</button>
<label for="password">Password</label>
<input type="password" id="password" name="password"
placeholder="Enter password" autofocus autocomplete="current-password">
<button type="submit">Sign in</button>
</form>
</div>
<div class="login-footer">
"I discovered at a young age that I have… a gift." — Jeff Winger
</div>
</div>
</body>