FIX: some fixes for rollout

Burger
This commit is contained in:
webfussel 2025-05-28 09:49:56 +02:00
parent f7f27838a8
commit 65ebc71431
11 changed files with 268 additions and 119 deletions

26
app/components/Burger.vue Normal file
View file

@ -0,0 +1,26 @@
<template>
<div class="Burger" :class="{ open }">
<nav class="z-4" ref="nav">
<ul>
<li v-for="({label, to, aria, icon}) in navigation" :key="label">
<NuxtLink :to="to" :aria-label="aria" active-class="active" class="inline-flex-row big-gap" @click="close">
<Icon :name="icon" mode="svg" />
{{ label }}
</NuxtLink>
</li>
</ul>
</nav>
</div>
</template>
<script setup lang="ts">
import { navigation } from '../utils/navigation'
const navElement = useTemplateRef('nav')
const nav = useNavigation()
const close = () => nav.hideNavigation()
const open = computed(() => nav.isNavigationVisible.value)
onClickOutside(navElement, close)
</script>