-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
59 lines (53 loc) · 1.24 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<template>
<div class="p-3">
<div class="ignis-header">
<img src="/nuxt-ignis.png" class="ignis-logo" :title :alt>
<h1 class="my-4 text-4xl text-amber-400 font-bold">
{{ useT("title") }}
</h1>
<img src="/nuxt-ignis.png" class="ignis-logo" :title :alt>
</div>
<div>{{ useT("subtitle") }}</div>
<NuxtPage v-if="pages" />
<AppFeatureList v-else />
<CurrentTime />
<div class="link text-xs">
<NuxtLink to="https://github.com/AloisSeckar/nuxt-ignis">
https://github.com/AloisSeckar/nuxt-ignis
</NuxtLink>
</div>
</div>
</template>
<script setup lang="ts">
import { useT } from '#imports' // requires explicit import for some reason
useHead({
title: useAppConfig().textTitle,
htmlAttrs: {
lang: 'en',
},
bodyAttrs: {
class: 'bg-slate-900 m-auto text-center text-white',
},
})
initConsola()
log.info('Nuxt Ignis was here!')
const title = useT('title')
const alt = title
const pages = useRuntimeConfig().public.ignis.pages
</script>
<style scoped>
.ignis-header {
display: flex;
flex-direction: row;
justify-content: center;
margin-bottom: 10px;
}
.ignis-logo {
display: inline;
width: 64px;
height: 64px;
}
.ignis-title {
margin-top: 15px;
}
</style>