-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
48 lines (46 loc) · 1019 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
40
41
42
43
44
45
46
47
48
<template>
<NuxtLayout>
<Transition name="page" mode="out-in">
<div :key="$route.fullPath">
<NuxtPage />
</div>
</Transition>
<Notification />
</NuxtLayout>
</template>
<script setup>
useHead({
titleTemplate: (titleChunk) => {
return titleChunk ? `${titleChunk} - DigiFoodie` : "DigiFoodie";
},
});
const { authenticated, user, setAuthenticated } = useAuth();
// onBeforeMount( ()=>{
// if(user) setAuthenticated();
// // if(user) setAuthenticated();
// })
</script>
<style>
.page-enter-active {
transition: all 0.1s ease-out;
}
.page-leave-active {
transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1);
}
.page-enter-from,
.page-leave-to {
transform: translateY(20px);
opacity: 0;
}
.layout-enter-active {
transition: all 0.1s ease-out;
}
.layout-leave-active {
transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1);
}
.layout-enter-from,
.layout-leave-to {
transform: translateY(-20px);
opacity: 0;
}
</style>