-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseWrapper.vue
More file actions
62 lines (60 loc) · 1.79 KB
/
BaseWrapper.vue
File metadata and controls
62 lines (60 loc) · 1.79 KB
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
<script setup lang="ts">
import NavigationButtonSection from '@/ICOClientBase/components/navigation/NavigationButtonSection.vue';
import NavigationButton from '@/ICOClientBase/components/navigation/NavigationButton.vue';
import LoadingSpinner from '@/ICOClientBase/components/LoadingSpinner.vue';
withDefaults(defineProps<{
themeClass: string,
showLoader?: boolean,
loaderMessage?: string,
navItems: InstanceType<typeof NavigationButtonSection>['$props']['items'],
navLogo: string,
navExtraLogo?: string,
}>(), {
showLoader: false,
loaderMessage: undefined,
navExtraLogo: undefined
})
</script>
<template>
<div :class="themeClass">
<div class="flex flex-row min-h-dvh bg-surface overflow-hidden">
<slot name="nav">
<nav class="bg-surface-container flex flex-col z-50">
<NavigationButtonSection :items="navItems" />
<div class="mt-auto">
<NavigationButton
v-if="navExtraLogo !== undefined"
name="Help"
to="/help"
>
<img
:src="navExtraLogo"
alt="Extra Logo for ICOweb client"
class="w-full max-w-16 mx-auto"
>
</NavigationButton>
<NavigationButton
name="Help"
to="/help"
>
<img
:src="navLogo"
alt="Logo"
class="w-full max-w-16 mx-auto"
>
</NavigationButton>
</div>
</nav>
</slot>
<div class="flex flex-col w-full relative">
<slot
v-if="showLoader"
name="loader">
<LoadingSpinner :message="loaderMessage" />
</slot>
<slot />
<slot name="bottom" />
</div>
</div>
</div>
</template>