-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
39 lines (34 loc) · 845 Bytes
/
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
<script setup lang="ts">
const nuxtApp = useNuxtApp();
// eslint-disable-next-line @typescript-eslint/no-unused-vars
useGqlToken(process.env.NUXT_CONTENTFUL_PUBLIC_ACCESS_TOKEN);
const loading = ref(false);
nuxtApp.hook("page:finish", () => {
if (isFirstRender.value) {
// loading.value = false;
isFirstRender.value = false;
}
// eslint-disable-next-line no-console
console.log("page finished");
});
</script>
<template>
<!-- <TheLoadingScreen :is-loading="loading" @update:is-loading="($event) => (loading = $event)" /> -->
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
<style>
html.dark {
color-scheme: dark;
}
.page-enter-active,
.page-leave-active {
transition: all 0.4s ease;
}
.page-enter-from,
.page-leave-to {
opacity: 0;
filter: blur(1rem);
}
</style>