-
Notifications
You must be signed in to change notification settings - Fork 3
/
app.vue
58 lines (46 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
50
51
52
53
54
55
56
57
58
<template>
<MoleculesNoJsFallback />
<MoleculesSplashscreen />
<OrganismsHeader />
<div role="main" class="main-container">
<NuxtPage />
</div>
<OrganismsFooter />
</template>
<script lang="ts" setup>
const navigationStore = useNavigationStore()
const route = useRoute()
useHead({
bodyAttrs: {
class: computed(() => {
if (navigationStore.isNavOpen) return 'is-navigation-open-body'
return ''
}),
},
})
// at route change
watch(
() => route.fullPath,
() => {
navigationStore.resetNavState()
}
)
onMounted(() => {
// no js logic
utilsRemoveNoJsClass()
console.log('🚀')
})
</script>
<style lang="sass">
// main page container
.main-container
min-height: $map_height
// page transitions
.page-enter-active,
.page-leave-active
transition: all 0.5s
.page-enter-from,
.page-leave-to
opacity: 0
filter: blur(1rem)
</style>