generated from svglol/nuxt-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
97 lines (88 loc) · 1.86 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<template>
<div>
<NuxtPwaManifest />
<NuxtLoadingIndicator
:duration="1000"
:color="false"
class="bg-orange-500"
/>
<NuxtLayout
class="bg-gray-100 font-sans text-gray-500 antialiased dark:bg-gray-900 dark:text-gray-400"
>
<NuxtPage />
<UNotifications />
</NuxtLayout>
</div>
</template>
<script setup lang="ts">
const colorMode = useColorMode()
useHead({
titleTemplate: (titleChunk) => {
return titleChunk
? `${titleChunk} - Endurance Results`
: 'Endurance Results'
},
htmlAttrs: {
lang: 'en',
},
link: [
{
rel: 'icon',
type: 'image/png',
href: '/favicon.ico',
},
],
meta: [
{
name: 'theme-color',
content: colorMode.value === 'dark' ? '#18181b' : '#ffffff',
},
{
name: 'background-color',
content: colorMode.value === 'dark' ? '#18181b' : '#ffffff',
},
{
name: 'description',
content: 'Get all endurance racing results in one place!',
},
],
})
useSeoMeta({
ogTitle: 'Endurance Results',
description: 'Get all endurance racing results in one place!',
ogDescription: 'Get all endurance racing results in one place! ',
ogType: 'website',
ogUrl: useSiteConfig().siteUrl + useRoute().path,
ogSiteName: 'Endurance Results',
twitterTitle: 'Endurance Results',
twitterDescription: 'Get all endurance racing results in one place!',
twitterCard: 'summary_large_image',
})
defineOgImage({ component: 'OgImage' })
</script>
<style>
.page-enter-active,
.page-leave-active {
transition: all 0.4s;
}
.page-enter-from,
.page-leave-to {
opacity: 0;
}
.layout-enter-active,
.layout-leave-active {
transition: all 0.4s;
}
.layout-enter-from,
.layout-leave-to {
opacity: 0;
}
.fade-enter-active,
.fade-leave-active {
transition: all 0.4s;
}
.fade-enter-from,
.fade-leave-to {
opacity: 0;
}
</style>