-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
68 lines (59 loc) · 1.44 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
60
61
62
63
64
65
66
67
68
<script setup lang="ts">
import '~/assets/css/main.css'
import '~/assets/css/components.css'
import '~/assets/css/prose.css'
import '~/assets/fonts/Fraunces.css'
import '~/assets/fonts/Henrietta.css'
import '~/assets/fonts/HenriettaCondensed.css'
const appState = useAppState()
const appContainer = useAppContainer()
useServerHead({
htmlAttrs: {
class: 'min-w-[320px] bg-primary-700',
lang: 'de',
},
link: [
{
rel: 'icon',
href: '/favicon.png',
type: 'image/png',
sizes: '32x32',
},
],
meta: [
{
name: 'theme-color',
content: '#3A455B',
},
],
})
// Force scrolling inside container on mobile when clicking
// on the (thin) frame border accidentally
onClickOutside(appContainer, () => {
appContainer.value?.focus()
})
</script>
<template>
<div
id="scroll-container"
ref="appContainer"
class="fixed inset-[var(--frame-width)] min-w-[320px] overflow-x-hidden overflow-y-scroll rounded-3xl bg-secondary-200 focus:outline-none"
tabindex="-1"
>
<NuxtLoadingIndicator color="#5A6B8D" />
<div class="relative h-full">
<AppHeader />
<main>
<NuxtPage />
</main>
<AppFooter />
</div>
</div>
<div v-show="!appState.nav.isOpen" class="pointer-events-none">
<img
class="fixed bottom-0 right-0 w-[min(10rem,30vw)] md:bottom-1 md:right-1"
src="~/assets/img/dachs-im-rahmen-320.png"
alt=""
/>
</div>
</template>