-
Notifications
You must be signed in to change notification settings - Fork 4
/
app.vue
64 lines (56 loc) · 1.2 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
<template>
<div>
<main class="bg-base-100 text-base">
<NuxtLoadingBar ref="loadingRef" />
<NuxtLayout>
<Head>
<!-- Google tag (gtag.js) -->
<Script
async
src="https://www.googletagmanager.com/gtag/js?id=G-ZW1HWRQZQ8"
></Script>
<Style chi></Style>
<Script
children="window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date());
gtag('config', 'G-ZW1HWRQZQ8');"
/>
</Head>
<NuxtPage />
</NuxtLayout>
</main>
</div>
</template>
<script setup>
const router = useRouter();
const loadingRef = ref(null);
router.beforeEach((_to, _from, next) => {
loadingRef.value.start();
next();
});
</script>
<style lang="postcss">
img[lazy="loaded"] {
animation: imgLoaded 1s;
}
@keyframes imgLoaded {
0% {
opacity: 0.1;
}
100% {
opacity: 1;
}
}
.drawer-mobile > .drawer-toggle ~ .drawer-side,
.drawer-toggle ~ .drawer-content {
&::-webkit-scrollbar {
display: none;
}
}
.drawer-mobile > .drawer-toggle ~ .drawer-content {
height: 100vh;
}
.drawer-content {
@apply pt-16;
}
</style>