This commit is contained in:
Avraham Sakal
2024-02-04 15:36:28 -05:00
commit dc63f31647
33 changed files with 3423 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import { useLocation } from 'preact-iso';
export function Header() {
const { url } = useLocation();
return (
<header>
<nav>
<a href="/" class={url == '/' && 'active'}>
Home
</a>
<a href="/calendar-optimizer" class={url == '/calendar-optimizer' && 'active'}>
Calendar Optimizer
</a>
<a href="/historical-calendar-prices" class={url == '/historical-calendar-prices' && 'active'}>
Historical Calendar Prices
</a>
<a href="/404" class={url == '/404' && 'active'}>
404
</a>
</nav>
</header>
);
}