-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapp.vue
110 lines (95 loc) · 1.95 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
98
99
100
101
102
103
104
105
106
107
108
109
110
<script setup lang="ts">
import {
baiduSiteVerification,
googleSiteVerification,
siteDescription,
siteDir,
siteKeywords,
siteLang,
siteName,
siteOgImage,
siteOgType,
siteSlogan,
} from '@/data/meta'
useHead({
titleTemplate: title =>
title
? `${title} | ${siteName}`
: `${siteName} | ${siteSlogan}`,
htmlAttrs: {
lang: siteLang,
dir: siteDir,
},
meta: [
{
name: 'baidu-site-verification',
content: baiduSiteVerification,
},
{
name: 'keywords',
content: siteKeywords,
},
],
})
useSeoMeta({
ogSiteName: siteName,
ogTitle: siteName,
description: siteDescription,
ogDescription: siteDescription,
ogImage: siteOgImage,
ogImageAlt: siteSlogan,
ogType: siteOgType,
ogLocale: siteLang,
creator: siteName,
googleSiteVerification,
})
</script>
<template>
<AppLayout>
<NuxtPage />
</AppLayout>
</template>
<style>
body {
--at-apply: 'text-gray-800 dark:text-gray-100 bg-light-100 dark:bg-dark-800'
}
.page-enter-active,
.page-leave-active {
transition: all 0.4s;
}
.page-enter-from,
.page-leave-to {
opacity: 0;
filter: blur(1rem);
}
.uni-helper-scrollbars ::-webkit-scrollbar {
width: 0.6em;
height: 0.6em;
background: transparent;
}
.uni-helper-scrollbars ::-webkit-scrollbar-track {
--at-apply: 'bg-gray-100'
}
.uni-helper-scrollbars ::-webkit-scrollbar-thumb {
border-radius: 0.6em;
--at-apply: 'bg-gray-300'
}
.uni-helper-scrollbars ::-webkit-scrollbar-thumb:hover {
--at-apply: 'bg-gray-400'
}
.uni-helper-scrollbars ::-webkit-scrollbar-thumb:active {
--at-apply: 'bg-gray-500'
}
.uni-helper-scrollbars.dark ::-webkit-scrollbar-track {
--at-apply: 'bg-gray-800'
}
.uni-helper-scrollbars.dark ::-webkit-scrollbar-thumb {
--at-apply: 'bg-gray-700'
}
.uni-helper-scrollbars.dark ::-webkit-scrollbar-thumb:hover {
--at-apply: 'bg-gray-600'
}
.uni-helper-scrollbars.dark ::-webkit-scrollbar-thumb:active {
--at-apply: 'bg-gray-500'
}
</style>