Footer site map full width; side nav fits 30-character titles over full-width dividers; Timeline under Data

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-10-01 00:04:29 -05:00
parent 45b422641a
commit 4a1d6fd6e9
4 changed files with 59 additions and 51 deletions

View file

@ -105,12 +105,17 @@ export default function PageShell({ title, intro, sections, sideNav = false }: P
if (typeof title === "string") document.title = documentTitle(title);
}, [title]);
// The thin solid banner between sections. With the side nav it runs
// the page's full width, under the nav column, rather than stopping
// at the content's edge.
const banner = (accent: string) => (
<div className={`h-2 ${sideNav ? "lg:-ml-[var(--side-nav-w)]" : ""}`} style={{ background: accent }} />
);
const bands = sections.map((section, i) => (
<div key={section.id}>
{/* Thin solid banner between sections */}
<div className="h-2" style={{ background: section.accent }} />
{banner(section.accent)}
<Section section={section} />
{i === sections.length - 1 && <div className="h-2" style={{ background: section.accent }} />}
{i === sections.length - 1 && banner(section.accent)}
</div>
));
@ -127,10 +132,10 @@ export default function PageShell({ title, intro, sections, sideNav = false }: P
</div>
{sideNav ? (
<div className="lg:grid lg:grid-cols-[13rem_minmax(0,1fr)]">
<aside className="hidden lg:block">
<div className="sticky pt-8 pl-6" style={{ top: "calc(var(--header-h, 5rem) + 1rem)" }}>
<SectionNav sections={sections.map((s) => ({ id: s.id, label: s.title }))} />
<div className="[--side-nav-w:16rem] lg:grid lg:grid-cols-[var(--side-nav-w)_minmax(0,1fr)]">
<aside className="relative z-10 hidden lg:block">
<div className="sticky pt-8 pl-6 pr-2" style={{ top: "calc(var(--header-h, 5rem) + 1rem)" }}>
<SectionNav sections={sections.map((s) => ({ id: s.id, label: s.title }))} wrap />
</div>
</aside>
<div className="min-w-0">{bands}</div>