2022-09-15 19:15:07 +02:00
|
|
|
<template>
|
2022-09-19 17:10:22 +02:00
|
|
|
<div v-if="route.meta.key !== 'disable'" class="w-full h-16 py-3 bg-neutral-200 dark:bg-neutral-800 flex justify-center items-center shadow">
|
2022-11-29 18:14:11 +01:00
|
|
|
<div class="flex text-sm justify-evenly items-center gap-1 w-full max-w-lg dark:text-gray-300 text-gray-900 overflow-x-hidden">
|
2022-09-15 19:15:07 +02:00
|
|
|
<NuxtLink to="/" class="flex flex-col items-center hover:cursor-pointer drop-shadow" :class="route.path === '/' ? 'text-primary' : ''">
|
2022-11-29 18:14:11 +01:00
|
|
|
<Icon size="1.8em" name="ion:home-outline" />
|
2022-09-15 19:15:07 +02:00
|
|
|
<span>Home</span>
|
|
|
|
</NuxtLink>
|
2022-09-27 17:33:00 +02:00
|
|
|
<NuxtLink to="/news" class="flex flex-col items-center hover:cursor-pointer drop-shadow" :class="route.path.startsWith('/news') ? 'text-primary' : ''">
|
2022-11-29 18:14:11 +01:00
|
|
|
<Icon size="1.8em" name="ion:newspaper-outline" />
|
2022-09-15 19:15:07 +02:00
|
|
|
<span>News</span>
|
|
|
|
</NuxtLink>
|
|
|
|
<NuxtLink to="/calendar" class="flex flex-col items-center hover:cursor-pointer drop-shadow" :class="route.path === '/calendar' ? 'text-primary' : ''">
|
2022-11-29 18:14:11 +01:00
|
|
|
<Icon size="1.8em" name="ion:calendar-outline" />
|
2022-09-15 19:15:07 +02:00
|
|
|
<span>Calendar</span>
|
|
|
|
</NuxtLink>
|
|
|
|
<NuxtLink to="/settings" class="flex flex-col items-center hover:cursor-pointer drop-shadow" :class="route.path.startsWith('/settings') ? 'text-primary' : ''">
|
2022-11-29 18:14:11 +01:00
|
|
|
<Icon size="1.8em" name="ion:settings-sharp" />
|
2022-09-15 19:15:07 +02:00
|
|
|
<span>Settings</span>
|
|
|
|
</NuxtLink>
|
2022-11-29 18:14:11 +01:00
|
|
|
<NuxtLink v-if="userData.wedstrijdteam" to="/wedstrijd" class="flex flex-col items-center hover:cursor-pointer drop-shadow" :class="route.path.startsWith('/wedstrijd') ? 'text-primary' : ''">
|
2022-12-04 10:29:11 +01:00
|
|
|
<Icon size="1.8em" name="ion:podium-outline" />
|
2022-11-29 18:14:11 +01:00
|
|
|
<span>Wedstrijd</span>
|
|
|
|
</NuxtLink>
|
2022-09-15 19:15:07 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
const route = useRoute()
|
2022-11-29 18:14:11 +01:00
|
|
|
|
|
|
|
const { userData } = inject('firebase')
|
|
|
|
</script>
|