fix: date format, hide mode toggle, wrap show names, hide mobile right gutter, move reset
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -17,16 +17,7 @@ export function renderPage(title: string, bodyContent: string, prefs: Preference
|
||||
})
|
||||
.join(" · ");
|
||||
|
||||
const modeLinks = [
|
||||
{ key: "vcr", label: "VCR" },
|
||||
{ key: "all", label: "All Active" },
|
||||
]
|
||||
.map(({ key, label }) => {
|
||||
const isCurrent = key === prefs.mode;
|
||||
const href = buildLink("/week", { ...prefs, mode: key });
|
||||
return `<a href="${href}" class="mode-link${isCurrent ? " mode-link--active" : ""}"${isCurrent ? ' aria-current="true"' : ""}>${label}</a>`;
|
||||
})
|
||||
.join(" | ");
|
||||
|
||||
|
||||
const themeLinks = [
|
||||
{ key: "light", label: "☀️ Light" },
|
||||
@@ -56,14 +47,14 @@ export function renderPage(title: string, bodyContent: string, prefs: Preference
|
||||
<h1 class="site-title"><a href="/week">📻 VCR Calendar</a></h1>
|
||||
<p class="site-header__disclaimer">Subject to change, not official</p>
|
||||
<nav class="controls-bar">
|
||||
<div class="controls-row">${modeLinks}</div>
|
||||
<div class="controls-row">
|
||||
<a href="${prevLink}" class="week-nav" aria-label="Previous week">←</a>
|
||||
<span class="week-label">${weekBounds.label}</span>
|
||||
<a href="${nextLink}" class="week-nav" aria-label="Next week">→</a>
|
||||
</div>
|
||||
<div class="controls-row">${tzLinks}</div>
|
||||
<div class="controls-row">${themeLinks} · <a href="/week?reset=1" class="reset-link">Reset</a></div>
|
||||
<div class="controls-row">${themeLinks}</div>
|
||||
<div class="controls-row controls-row--reset"><a href="/week?reset=1" class="reset-link" title="Resets timezone, theme, and mode to defaults">↺ Reset</a><span class="reset-hint">resets all options</span></div>
|
||||
</nav>
|
||||
</header>
|
||||
<main class="page-container">${bodyContent}</main>
|
||||
|
||||
Reference in New Issue
Block a user