initial web pages

This commit is contained in:
SowinskiBraeden committed 2026-10-20 22:56:11 -07:00
1 parent 3f43811dbb
commit b209099d7b
17 files changed
+1341

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
const links = [
{ path: '/learn', label: 'Learn' },
{ path: '/playground', label: 'Playground' },
];
export function header(path: string): string {
const nav = links
.map(
(l) =>
`<a href="#${l.path}"${path === l.path ? ' aria-current="page"' : ''}>${l.label}</a>`,
)
.join('\n ');
return `
<header>
<a class="brand" href="#/">
<span class="mark">
<svg class="icon" aria-hidden="true"><use href="/icons.svg#flag" /></svg>
</span>
Stint.
</a>
<nav>
${nav}
</nav>
</header>`;
}