-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.vue
executable file
·42 lines (38 loc) · 1014 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
41
42
<script lang="ts" setup>
import { useDark } from "@vueuse/core";
const runtimeConfig = useRuntimeConfig();
const isDark = useDark();
useHead({
title: runtimeConfig.app.title,
titleTemplate: `%s - ${runtimeConfig.app.title}:// ${runtimeConfig.app.description} `,
meta: [
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ name: "theme-color", content: runtimeConfig.app.color },
{
hid: "description",
name: "description",
content: runtimeConfig.app.description,
},
],
link: [
{ rel: "icon", type: "image/x-icon", href: runtimeConfig.app.favicon },
{
rel: "icon",
type: "image/png",
sizes: "192x192",
href: runtimeConfig.app.icon,
},
],
});
</script>
<template>
<Html dir="rtl" lang="fa" :class="isDark ? 'dark' : 'light'">
<Body class="dark:bg-slate-800">
<NuxtLayout>
<SeoKit />
<NuxtLoadingIndicator />
<NuxtPage />
</NuxtLayout>
</Body>
</Html>
</template>