-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.vue
More file actions
75 lines (71 loc) · 1.16 KB
/
app.vue
File metadata and controls
75 lines (71 loc) · 1.16 KB
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
<script setup>
import { useAuthStore } from '@/stores/AuthStore'
const user = useSupabaseUser()
const authStore = useAuthStore()
watchEffect(() => {
if (user.value) {
authStore.init()
}
})
</script>
<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
<style>
@keyframes fadeIn {
0% {
opacity: 0.001;
}
100% {
opacity: 1;
}
}
@keyframes fadeOut {
0% {
opacity: 1;
}
100% {
opacity: 0.001;
}
}
.page-enter-active,
.page-leave-active,
.layout-enter-active,
.layout-leave-active {
transition: opacity 250ms;
}
.page-enter,
.page-leave-to,
.layout-enter,
.layout-leave-to {
opacity: 0;
}
.page-enter-active,
.layout-enter-active {
animation-duration: 250ms;
animation-name: fadeIn;
animation-timing-function: linear;
backface-visibility: hidden;
}
.page-leave-active,
.layout-leave-active {
animation-name: fadeOut;
animation-duration: 0.25s;
}
/* Scale Y */
.scale-y-enter-active,
.scale-y-leave-active {
transition: all 300ms linear;
will-change: max-height, opacity;
max-height: 160px;
overflow: hidden;
opacity: 1;
}
.scale-y-enter-from,
.scale-y-leave-to {
max-height: 0;
opacity: 0;
}
</style>