2024-07-02 15:07:22 +00:00
|
|
|
<template>
|
|
|
|
<v-app-bar flat color="primary">
|
2024-08-10 05:26:58 +00:00
|
|
|
<v-container fluid class="mx-auto d-flex align-center justify-center px-8">
|
2024-07-02 15:07:22 +00:00
|
|
|
<nuxt-link to="/" exact>
|
2024-08-10 05:26:58 +00:00
|
|
|
<v-avatar class="me-4 ms-1" color="transparent" size="32" :image="Logo" />
|
2024-07-02 15:07:22 +00:00
|
|
|
</nuxt-link>
|
|
|
|
|
2024-08-11 14:21:13 +00:00
|
|
|
<div class="nav-links overflow-y-auto flex">
|
2024-08-13 08:14:44 +00:00
|
|
|
<v-btn variant="text" :text="t('navProducts')" to="/products" exact />
|
|
|
|
<v-btn variant="text" :text="t('navActivity')" to="/activity" exact />
|
|
|
|
<v-btn variant="text" :text="t('navGallery')" to="/gallery" exact />
|
2024-08-11 14:21:13 +00:00
|
|
|
</div>
|
2024-07-02 15:07:22 +00:00
|
|
|
|
|
|
|
<v-spacer></v-spacer>
|
|
|
|
|
2024-08-13 08:00:58 +00:00
|
|
|
<v-menu>
|
|
|
|
<template v-slot:activator="{ props }">
|
|
|
|
<v-btn
|
|
|
|
size="small"
|
|
|
|
icon="mdi-translate"
|
|
|
|
v-bind="props"
|
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
<v-list>
|
|
|
|
<v-list-item
|
|
|
|
class="w-48"
|
|
|
|
density="compact"
|
|
|
|
v-for="item in locales"
|
|
|
|
:key="item.code"
|
|
|
|
:value="item.code"
|
|
|
|
:active="locale == item.code"
|
|
|
|
@click.prevent.stop="setLocale(item.code)"
|
|
|
|
>
|
|
|
|
<v-list-item-title>{{ item.name }}</v-list-item-title>
|
|
|
|
</v-list-item>
|
|
|
|
</v-list>
|
|
|
|
</v-menu>
|
|
|
|
|
2024-08-12 07:55:15 +00:00
|
|
|
<user-menu />
|
2024-07-02 15:07:22 +00:00
|
|
|
</v-container>
|
|
|
|
</v-app-bar>
|
|
|
|
|
|
|
|
<v-main>
|
|
|
|
<slot />
|
|
|
|
</v-main>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2024-08-10 05:26:58 +00:00
|
|
|
import Logo from "../assets/logo-w-shadow.png"
|
2024-08-13 08:00:58 +00:00
|
|
|
|
2024-08-13 08:14:44 +00:00
|
|
|
const { locale, locales, setLocale, t } = useI18n()
|
2024-07-02 15:07:22 +00:00
|
|
|
</script>
|
2024-08-11 14:21:13 +00:00
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.nav-links::-webkit-scrollbar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-links {
|
|
|
|
-ms-overflow-style: none;
|
|
|
|
scrollbar-width: none;
|
|
|
|
}
|
|
|
|
</style>
|