Files
caperren-com/src/components/Navbar.astro
Corwin Perren 005e092344
All checks were successful
Build and Test - Staging / determine_version (pull_request) Successful in 8m0s
Build and Test - Staging / build_and_push (pull_request) Successful in 14m22s
Build and Test - Staging / test (pull_request) Successful in 1s
Build and Test - Staging / deploy_staging (pull_request) Successful in 2s
Fixed logo title and favicon
2025-11-08 00:20:04 -08:00

35 lines
1.4 KiB
Plaintext

---
import NestedNavbarEntry from "@components/NestedNavbarEntries.astro";
import logo_title_large from "@assets/logo-title-large.png";
import {siteLayout} from "@data/site-layout.ts";
import {Image} from "astro:assets";
---
<nav class="border-b-4 border-b-caperren-green text-caperren-green">
<div class="flex flex-wrap items-center justify-between mx-auto p-6">
<a href="/">
<Image src={logo_title_large}
height="56"
width="139"
class="h-14 w-auto"
alt="logo title"
loading="eager"
/>
</a>
<button data-collapse-toggle="navbar-multi-level" type="button"
class="inline-flex items-center p-2 w-10 h-10 justify-center text-sm md:hidden focus:ring-2 focus:ring-caperren-green"
aria-controls="navbar-multi-level" aria-expanded="false">
<span class="sr-only">Open main menu</span>
<svg class="w-5 h-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 17 14">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M1 1h15M1 7h15M1 13h15"/>
</svg>
</button>
<div class="z-40 hidden w-full md:block md:w-auto" id="navbar-multi-level">
<NestedNavbarEntry items={siteLayout}/>
</div>
</div>
</nav>