feat: week page composition, show detail pages, and styled 404

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-02 18:40:35 -05:00
parent 7b484e5664
commit d96f83c0a6
5 changed files with 187 additions and 8 deletions

View File

@@ -1,4 +1,12 @@
import { renderPage } from "./page";
import { renderWeekGrid } from "./week-grid";
import { renderAgenda } from "./agenda";
import type { Show, Preferences } from "../types";
export function renderWeekPage(_shows: Show[], _prefs: Preferences): string {
return "<!DOCTYPE html><html><body>week</body></html>";
export function renderWeekPage(shows: Show[], prefs: Preferences): string {
const grid = renderWeekGrid(shows, prefs);
const agenda = renderAgenda(shows, prefs);
const bodyContent = grid + agenda;
const modeLabel = prefs.mode === "vcr" ? "VCR Schedule" : "All Shows Schedule";
return renderPage(modeLabel, bodyContent, prefs);
}