generated from viandwi24/nuxt3-awesome-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
42 lines (40 loc) · 1.18 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
42
<script lang="ts" setup>
import { AppConfigInput } from '@nuxt/schema'
import { AppSetup } from './utils/app'
import { ITheme } from './utils/theme'
AppSetup()
const theme = useState<ITheme>('theme.current')
const locale = useState<string>('locale.setting')
const app = useAppConfig() as AppConfigInput
useHead({
title: app.name,
titleTemplate: '%s - TidalForce',
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content: 'TidalForce-title-content',
},
],
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: 'http://rsuwsin79.hd-bkt.clouddn.com/TidalForce-Logo-Ver0.1.svg?e=1681145412&token=4EyPgxSAIIMD4j_TxW0Dh0zH4iHu-R-UJnnCpxo4:nvoqHxmjMhqvCTIeeSvGFdC6kTw=',
},
],
})
</script>
<template>
<Html :class="`${theme === 'dark' ? 'dark' : ''}`" :lang="locale">
<Body
class="antialiased duration-300 transition-colors text-gray-800 dark:text-gray-200 bg-white dark:bg-gray-900"
>
<NuxtLayout>
<NuxtLoadingIndicator :height="5" :duration="3000" :throttle="400" />
<NuxtPage />
</NuxtLayout>
</Body>
</Html>
</template>