-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
44 lines (39 loc) · 893 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
43
44
<template>
<div>
<TheModal v-show="useModalStore().show" />
<TheHeader />
<TheMenu />
<TheTitle />
<div class="mx-2 md:mx-8 lg:mx-16 xl:mx-32 mb-12">
<NuxtPage />
</div>
<TheFooter />
</div>
</template>
<script setup lang="ts">
import './assets/css/tailwind.css'
import { changeLocale } from '@formkit/vue'
useHead({
title: useRuntimeConfig().public.webTitle,
htmlAttrs: {
lang: useRuntimeConfig().public.lang,
},
bodyAttrs: {
id: 'main',
},
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.png' },
],
})
await useAdminStore().load()
onMounted(() => {
changeLocale(useRuntimeConfig().public.lang)
})
</script>
<style>
.formkit-input {
/* otherwise style from tailwind.css is ignored */
/* TODO study and apply https://formkit.com/guides/create-a-tailwind-theme */
display: inline-block;
}
</style>