-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.vue
78 lines (69 loc) · 1.75 KB
/
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<script setup lang="ts">
import { ConfigProvider } from 'radix-vue';
const router = useRouter();
const currentRouteName = computed(() => router.currentRoute.value.name);
</script>
<template>
<div>
<!-- <ConfigProvider :use-id="useSsrSaveId">
<ShadcnToaster close-button />
<NuxtLoadingIndicator
color="hsl(var(--primary) / 0.9)"
error-color="hsl(var(--destructive))"
:height="3"
:duration="2000"
:throttle="200"
/>
<DynamicMeta :key="currentRouteName" />
<div>
<NuxtRouteAnnouncer />
<NuxtLayout> Hello, World! </NuxtLayout>
</div>
</ConfigProvider> -->
<!--
Loading Indicator: https://github.com/nuxt/nuxt/issues/18630, https://nuxt.com/docs/api/composables/use-loading-indicator
DynamicMeta: key is needed, so that the component is rerendered without a prop change
div: needed for transitions to work properly
-->
<ConfigProvider :use-id="useSsrSaveId">
<ShadcnToaster close-button />
<NuxtLoadingIndicator
color="hsl(var(--primary) / 0.9)"
error-color="hsl(var(--destructive))"
:height="3"
:duration="2000"
:throttle="200"
/>
<DynamicMeta :key="currentRouteName" />
<div>
<NuxtRouteAnnouncer />
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</div>
</ConfigProvider>
</div>
</template>
<style>
/* TRANSITIONS */
.page-enter-active,
.page-leave-active {
transition: all 0.1s;
}
.page-enter-from {
opacity: 0;
transform: translate(-50px, 0);
}
.page-leave-to {
opacity: 0;
transform: translate(50px, 0);
}
.layout-enter-active,
.layout-leave-active {
transition: all 0.1s;
}
.layout-enter-from,
.layout-leave-to {
opacity: 0;
}
</style>