-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
45 lines (39 loc) · 976 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
<script setup lang="ts">
import { gsap } from 'gsap'
import { ScrollTrigger } from 'gsap/ScrollTrigger'
const profile = useProfile()
const ui = useUI()
profile.get()
if (import.meta.client) {
gsap.registerPlugin(ScrollTrigger)
ScrollTrigger.getAll().forEach((t: any) => t.kill())
}
</script>
<template>
<div>
<NuxtRouteAnnouncer />
<NuxtLoadingIndicator
color="linear-gradient(to right,#7333E0 70%,#D926AA 100%)"
error-color="#F87272"
/>
<ClientOnly>
<ToastGroup />
<ConfirmDialogGroup />
<ModalGroup />
</ClientOnly>
<div
class="flex flex-col min-h-screen"
:class="{
'bg-primary/20': ui.bgColor === 'primary',
'bg-secondary/20': ui.bgColor === 'secondary',
}"
>
<Navbar
v-show="ui.showNavigation"
class="fixed z-10 left-0 right-0 backdrop-blur"
/>
<NuxtPage />
<Footer v-show="ui.showNavigation" />
</div>
</div>
</template>