forked from heyform/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
36 lines (31 loc) · 847 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
<template>
<ConfigProvider :use-id="useIdFunction">
<NuxtLoadingIndicator :color="false" class="z-100 bg-primary80" />
<NuxtPage />
<Toaster />
</ConfigProvider>
</template>
<script setup lang="ts">
import { ConfigProvider } from 'radix-vue';
import Toaster from '@/components/ui/toast/Toaster.vue';
const config = useConfig();
const { themeClass, radius } = useThemes();
const useIdFunction = () => useId();
useSeoMeta({
description: config.value.site.description,
ogDescription: config.value.site.description,
ogImage: config.value.site.ogImage,
twitterCard: 'summary_large_image',
});
useServerHead({
link: [{
rel: 'stylesheet',
href: 'https://rsms.me/inter/inter.css',
crossorigin: ''
}],
htmlAttrs: {
class: themeClass.value,
style: `--radius: ${radius.value}rem;`,
},
});
</script>