-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
49 lines (42 loc) · 958 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
49
<script setup lang="ts">
const appConfig = useAppConfig()
useHead({
titleTemplate: (titleChunk) => {
return titleChunk ? `${titleChunk} - ${appConfig.brand}` : appConfig.brand;
}
})
const user = useUser()
onMounted(async () => {
// Replenish user from local storage
const localUser = localStorage.getItem('user')
if (localUser) {
user.value = JSON.parse(localUser)
navigateTo('/')
}
})
</script>
<template>
<div class="font-[Lato] overflow-hidden isolate bg-gray-50 relative h-screen w-screen justify-between flex flex-col">
<BackgroundBlur />
<AppHeader />
<div class="flex items-center justify-center grow">
<NuxtPage />
</div>
<AppFooter />
</div>
<UNotifications />
</template>
<style>
.page-enter-active,
.page-leave-active,
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.35s;
}
.fade-enter-from,
.fade-leave-to,
.page-enter-from,
.page-leave-to {
opacity: 0;
}
</style>