chore: (re)init

This commit is contained in:
Alejandro Laguna
2025-04-02 00:10:06 +02:00
commit 2864129c20
15 changed files with 2236 additions and 0 deletions

18
src/components/Header.tsx Normal file
View File

@@ -0,0 +1,18 @@
import { useLocation } from 'preact-iso';
export function Header() {
const { url } = useLocation();
return (
<header>
<nav>
<a href="/" class={url == '/' && 'active'}>
Home
</a>
<a href="/404" class={url == '/404' && 'active'}>
404
</a>
</nav>
</header>
);
}