-
Notifications
You must be signed in to change notification settings - Fork 17
/
app.vue
48 lines (46 loc) · 1.16 KB
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<script setup lang="ts">
const theme = useTheme()
provide(
THEME_KEY,
computed(() => (theme.current.value.dark ? 'dark' : undefined)),
)
const route = useRoute()
const title = computed(() => {
return route.meta?.title || route.matched[0].meta?.title || ''
})
useHead({
title,
titleTemplate: (t) => (t ? `${t} | Vitify Admin` : 'Vitify Admin'),
htmlAttrs: { lang: 'en' },
link: [{ rel: 'icon', href: '/favicon.ico' }],
})
useSeoMeta({
viewport: 'width=device-width, initial-scale=1, maximum-scale=1',
description: 'Vuetify 3 + Nuxt 3, Opinionated Admin Starter Template',
ogImage: '/social-image.png',
twitterImage: '/social-image.png',
twitterCard: 'summary_large_image',
})
</script>
<template>
<v-app>
<AppDrawer />
<AppBar />
<v-main>
<NuxtPage />
</v-main>
<AppFooter />
</v-app>
</template>
<style scoped>
/* replace padding with margin to limit scrollbar in v-main */
.v-main {
padding-top: 0;
padding-bottom: 0;
margin-top: var(--v-layout-top);
margin-bottom: var(--v-layout-bottom);
height: calc(100vh - var(--v-layout-top) - var(--v-layout-bottom));
overflow-y: auto;
transition-property: padding;
}
</style>