T45a Site · Stack: Vite 8, React 19 and TanStack Router under pnpm; routes, theme, fonts, the manifest

This commit is contained in:
ZacharyZhang-NY committed 2026-10-01 08:38:05 -04:00
1 parent e3957f7816
commit 167055fdae
32 files changed
+699 -1309

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
import { Link } from "@tanstack/react-router";
import { useEffect } from "react";
import { chapters, pad } from "../data";
export function Chapters() {
useEffect(() => {
document.title = "Components · Ely";
}, []);
return (
<section className="chapters">
<h1>Components</h1>
<ol>
{chapters.map((c) => (
<li key={c.slug}>
<Link to="/components/$page/$story/" params={{ page: c.slug, story: c.stories[0].slug }}>
<span className="n">{pad(c.number)}</span>
<span className="name">{c.title}</span>
<span className="count">{c.stories.length}</span>
</Link>
</li>
))}
</ol>
</section>
);
}