feat: week page composition, show detail pages, and styled 404
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user