-
Notifications
You must be signed in to change notification settings - Fork 37
/
app.vue
41 lines (35 loc) · 1.11 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
<template>
<NuxtLoadingIndicator :color="false" class="z-100 bg-primary/80" />
<LayoutHeader />
<div v-if="route.path !== '/'" class="min-h-screen border-b">
<div
class="flex-1 items-start px-4 md:grid md:grid-cols-[220px_minmax(0,1fr)] md:gap-6 md:px-8 lg:grid-cols-[240px_minmax(0,1fr)] lg:gap-10"
:class="[config.main.padded && 'container']"
>
<aside class="fixed top-[102px] z-30 -ml-2 hidden h-[calc(100vh-3.5rem)] w-full shrink-0 overflow-y-auto md:sticky md:top-[60px] md:block">
<LayoutAside :is-mobile="false" />
</aside>
<NuxtPage />
</div>
</div>
<NuxtPage v-else />
<Toaster />
<LayoutFooter />
</template>
<script setup lang="ts">
import Toaster from '@/components/ui/toast/Toaster.vue';
const config = useConfig();
const route = useRoute();
const { themeClass, radius } = useThemes();
useSeoMeta({
description: config.value.site.description,
ogDescription: config.value.site.description,
twitterCard: 'summary_large_image',
});
useServerHead({
bodyAttrs: {
class: themeClass.value,
style: `--radius: ${radius.value}rem;`,
},
});
</script>