This commit is contained in:
2025-04-29 11:36:07 +07:00
commit b26fc7d61a
79 changed files with 13893 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>
);
}