generated from directus-labs/agency-os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
40 lines (37 loc) · 963 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
<script setup lang="ts">
import { borderRadiusMap } from '~/theme';
const { globals, theme } = useAppConfig();
const { fileUrl } = useFiles();
// JSON-LD
useSchemaOrg([
defineOrganization({
name: globals?.title ?? 'AgencyOS',
logo: globals?.logo_on_light_bg ? fileUrl(globals?.logo_on_light_bg) : '/logos/agencyos.png',
sameAs: () => {
const socialLinks = globals?.social_links ?? [];
return socialLinks.map((link) => link.url);
},
}),
]);
useHead({
style: [
{
id: 'border-radius',
innerHTML: `:root {${Object.entries(borderRadiusMap[theme.borderRadius])
.map(([key, value]) => `--border-radius-${key}: ${value};`)
.join('\n')}\n${Object.entries(theme.fonts)
.map(([key, value]) => `--font-${key}: ${value};`)
.join('\n')}`,
},
],
});
</script>
<template>
<NuxtLayout>
<NuxtLoadingIndicator
color="repeating-linear-gradient(to right,#FF99DD
0%,#94a3b8 100%)"
/>
<NuxtPage />
</NuxtLayout>
</template>