-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
app.vue
101 lines (85 loc) · 1.73 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
<script setup>
const colorMode = useColorMode()
const color = computed(() => colorMode.value === 'dark' ? '#111827' : 'white')
useHead({
meta: [
{ key: 'theme-color', name: 'theme-color', content: color },
],
})
const entry = useHead({
link: [
{
rel: 'icon',
type: 'image/svg+xml',
href: `/icons/icon-${colorMode.value === 'system' ? 'dark' : colorMode.value}.svg`,
},
],
})
// switch logos on colorMode
watch(colorMode, () => {
entry.patch({
link: [
{
rel: 'icon',
type: 'image/svg+xml',
href: `/icons/icon-${colorMode.value}.svg`,
},
],
})
})
useSeoMeta({
titleTemplate: '%s %separator Request Indexing',
ogSiteName: 'Request Indexing',
ogTitle: 'Get your pages indexed within 48 hours.',
twitterTitle: 'Get your pages indexed within 48 hours.',
})
defineOgImageComponent('Home')
</script>
<template>
<div>
<NuxtLoadingIndicator />
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
<UNotifications />
</div>
</template>
<style>
pre {
--scrollbar-thumb: #3b5178;
}
.dark pre {
--scrollbar-thumb: #acbad2;
}
* {
--scrollbar-track: initial;
--scrollbar-thumb: initial;
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
scrollbar-width: thin;
--scrollbar-thumb: #acbad2;
}
::-webkit-scrollbar-track {
background-color: var(--scrollbar-track)
}
::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-thumb);
border-radius: .25rem
}
::-webkit-scrollbar {
width: 8px;
height: 8px
}
.dark * {
--scrollbar-thumb: #3b5178;
}
.page-enter-active,
.page-leave-active {
transition: all 0.2s;
}
.page-enter-from,
.page-leave-to {
opacity: 0;
transform: translateY(1rem);
filter: blur(0.2rem);
}
</style>