forked from unjs/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
36 lines (29 loc) · 731 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
<script lang="ts" setup>
useSeoMeta({
twitterSite: '@unjsio',
})
useSchemaOrg([
defineWebSite({
potentialAction: [
defineSearchAction({ target: '/search?q={search_term_string}' }),
],
}),
])
const route = useRoute()
const isRelation = computed(() => {
return route.name === 'relations'
})
</script>
<template>
<Html>
<Body class="font-sans dark:bg-gray-900">
<NuxtLoadingIndicator color="#ECDC5A" />
<TheHeader :class="{ 'z-10 absolute top-0 left-0 right-0': isRelation }" />
<div :class="{ 'px-4 container mx-auto xl:max-w-7xl': !isRelation }">
<NuxtPage />
</div>
<TheFooter v-if="!isRelation" />
<UNotifications />
</Body>
</Html>
</template>