---
import NestedNavbarEntry from "@components/NestedNavbarEntries.astro";

import logoTitle from "@assets/logo-title.svg?raw";
import {siteLayout} from "@data/site-layout.ts";
---


<nav class="border-b border-b-caperren-green text-caperren-green">
    <div class="flex flex-wrap items-center justify-between mx-auto p-6">
        <a href="/">
            <Fragment class="logo-title" set:html={logoTitle}/>
        </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>
