-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.vue
More file actions
28 lines (23 loc) · 723 Bytes
/
Copy pathapp.vue
File metadata and controls
28 lines (23 loc) · 723 Bytes
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
<script setup lang="ts">
import { provideUseId } from '@headlessui/vue';
import { gsap } from 'gsap';
import { ScrollTrigger } from 'gsap/ScrollTrigger';
// Fix headlessui warning. See https://github.com/P4sca1/nuxt-headlessui/issues/41
provideUseId(() => useId());
// ScrollTrigger.defaults({ markers: process.env.NODE_ENV === 'development' });
gsap.registerPlugin(ScrollTrigger);
const { t } = useI18n();
useHead({
titleTemplate: (titleChunk) => {
return titleChunk
? t('layouts.title', { title: titleChunk })
: 'Pascal Achard';
},
});
</script>
<template>
<NuxtLoadingIndicator color="hsl(var(--color-secondary))" :throttle="150" />
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>