initial commit

This commit is contained in:
Josh Bairstow 2026-06-01 19:35:56 +10:00
commit 3ba76b4f02
90 changed files with 12507 additions and 0 deletions

View file

@ -0,0 +1,37 @@
---
import Wordmark from "~/components/atoms/Wordmark.astro";
import { home, blog, art, code } from "~/lib/urls";
type CurrentSection = "home" | "blog" | "art" | "code";
interface Props {
current?: CurrentSection;
showCoord?: boolean;
}
const { current = "home", showCoord = false } = Astro.props;
const items: { id: CurrentSection; label: string; href: string }[] = [
{ id: "home", label: "Index", href: home("/") },
{ id: "blog", label: "Blog", href: blog("/") },
{ id: "code", label: "Code", href: code("/") },
{ id: "art", label: "Art", href: art("/") },
];
---
<header class="topbar">
<Wordmark />
{
showCoord ? (
<span class="coord">33.7969° S · Sydney</span>
) : (
<nav class="topnav">
{items.map((item) => (
<a href={item.href} class={current === item.id ? "current" : undefined}>
{item.label}
</a>
))}
</nav>
)
}
</header>