Capital/layouts/default.vue

64 lines
1.6 KiB
Vue
Raw Normal View History

2024-07-02 15:07:22 +00:00
<template>
2024-08-15 15:24:12 +00:00
<v-app-bar flat color="primary" scroll-behavior="hide">
<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-16 12:07:20 +00:00
<v-img class="me-4 ms-1" width="32" height="32" alt="Logo" :src="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">
<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>
<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>
<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">
import Logo from "../assets/logo-w-shadow.png"
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>