-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
35 lines (30 loc) · 820 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
<script setup lang="ts">
const isDummyLoadingDone = ref(false);
const route = useRoute();
const isRaw = ref("raw" in route.query && route.query.raw === "true");
const isUwU = ref("uwu" in route.query && route.query.uwu === "true");
</script>
<template>
<div :class="isUwU ? 'font-[Yuruka]' : ''">
<LoadingScreenVue v-if="!isRaw" :show="!isDummyLoadingDone" @done="isDummyLoadingDone = true" />
<Transition v-if="!isRaw">
<NuxtLayout name="default-layout">
<main v-show="isDummyLoadingDone" class="h-full">
<NuxtPage />
</main>
</NuxtLayout>
</Transition>
<NuxtPage v-if="isRaw" />
</div>
</template>
<style>
.page-enter-active,
.page-leave-active {
transition: all 0.4s;
}
.page-enter-from,
.page-leave-to {
opacity: 0;
filter: blur(1rem);
}
</style>