56 lines
1.3 KiB
Vue
56 lines
1.3 KiB
Vue
<template>
|
|
<div class="navbar-container mb-6">
|
|
<nav
|
|
class="navbar container"
|
|
role="navigation"
|
|
aria-label="main navigation"
|
|
>
|
|
<div class="navbar-brand">
|
|
<nuxt-link class="navbar-item" to="/">
|
|
<LayoutClubLogo />
|
|
</nuxt-link>
|
|
<a
|
|
role="button"
|
|
class="navbar-burger"
|
|
aria-label="menu"
|
|
aria-expanded="false"
|
|
@click="isBurgerOpen = !isBurgerOpen"
|
|
>
|
|
<!-- the next three lines are meant for the burger menu -->
|
|
<span aria-hidden="true"></span>
|
|
<span aria-hidden="true"></span>
|
|
<span aria-hidden="true"></span>
|
|
</a>
|
|
</div>
|
|
<div class="navbar-menu" :class="{ 'is-active': isBurgerOpen }">
|
|
<div class="navbar-start">
|
|
<nuxt-link
|
|
v-for="(menuItem, index) of menuItems"
|
|
:key="index"
|
|
class="navbar-item"
|
|
:to="menuItem.link"
|
|
>
|
|
{{ menuItem.label }}
|
|
</nuxt-link>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
const menuItems = [
|
|
{
|
|
label: "Liste des films",
|
|
link: "/admin",
|
|
},
|
|
{
|
|
label: "Accéder au site",
|
|
link: "/",
|
|
},
|
|
]
|
|
|
|
const isBurgerOpen = ref(false)
|
|
</script>
|
|
|
|
<style scoped lang="sass"></style>
|