forked from kanton-bern/oerebViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.vue
90 lines (83 loc) · 2.64 KB
/
default.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<template>
<LayoutAppShell>
<template #header>
<div
class="h-full flex justify-between lg:grid grid-cols-3 bg-theme-primary text-theme-primary px-4 md:px-6"
>
<div class="flex items-center text-xl">
<AppMenuToggle class="block lg:hidden" />
<AppLanguageSwitcher
class="hidden lg:block"
list-class="flex items-center gap-4"
icon-class="h-6 w-6"
/>
</div>
<div
class="hidden lg:flex items-center justify-center text-xl 3xl:text-2xl"
>
<ExtractHeader />
</div>
<div class="flex items-center justify-end text-2xl font-thin">
<span>{{ $t('app_title') }}</span>
</div>
</div>
</template>
<template #sidebar>
<div
class="bg-theme-secondary text-theme-secondary h-full overflow-y-auto flex flex-col justify-between"
>
<div>
<ExtractDetail />
<button
class="w-full text-left px-4 py-3 border-t border-theme-primary hover:bg-theme-active hover:text-theme-active 3xl:text-lg"
@click="toggleGlossaryVisibility"
>
{{ $t('glossary_title') }}
</button>
<button
class="w-full text-left px-4 py-3 border-t border-theme-primary border-b hover:bg-theme-active hover:text-theme-active 3xl:text-lg"
@click="toggleImprintAndLegalVisibility"
>
{{ $t('imprint_title') }}
</button>
<AppLanguageSwitcher
class="lg:hidden px-4 py-3"
list-class="flex items-center gap-2"
icon-class="h-4 w-4"
/>
<Nuxt />
</div>
<div>
<ExternalInstructions class="px-4 pt-3 pb-8 relative bottom-0" />
</div>
</div>
</template>
<template #content>
<div class="h-full bg-theme-base text-theme-base">
<ImprintAndLegalContent
v-if="$store.state.map.contentType === 'imprintAndLegal'"
/>
<GlossaryContent v-if="$store.state.map.contentType === 'glossary'" />
<MapViewer :visible="$store.state.map.contentType === 'map'" />
<ExtractLoadingOverlay />
<AppNotifyer />
</div>
</template>
</LayoutAppShell>
</template>
<script>
import { mapActions } from 'vuex'
import ExternalInstructions from '~/components/app/ExternalInstructions.vue'
export default {
components: { ExternalInstructions },
methods: {
...mapActions('map', [
'toggleImprintAndLegalVisibility',
'toggleGlossaryVisibility',
]),
},
}
</script>
<style lang="scss">
@import '~/config/defaults/setup.scss';
</style>