-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
36 lines (33 loc) · 1.08 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
<template>
<div>
<NuxtLoadingIndicator
color="repeating-linear-gradient(to right,hsl(47.9 95.8% 70%) 0%,hsl(47.9 95.8% 53.1%) 50%,hsl(35.5 91.7% 32.9%) 100%)"
:throttle="50"
/>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</div>
</template>
<script setup lang="ts">
const { $consoleLayout } = useNuxtApp()
useHead({
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'author', content: 'Dawid Nitka' },
],
htmlAttrs: {
// make sure that the dark mode is applied on the first render
// (even without JS active in the client)
class: 'dark',
lang: 'en',
},
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon_black.ico', media: '(prefers-color-scheme: light)' },
{ rel: 'icon', type: 'image/x-icon', href: '/favicon_white.ico', media: '(prefers-color-scheme: dark)' }
]
})
onMounted(() => {
$consoleLayout()
})
</script>