-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
129 lines (98 loc) · 2.4 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<script setup lang="ts">
import Drawer from "@Components/Body/Drawer.vue";
import Header from "@Components/Body/Header.vue";
import Modal from '@Components/Body/Modal.vue'
import { computed } from "vue";
import { useAppState } from "./State/AppState";
const app$ = useAppState();
const isUnfocussed = computed(() => {
return app$.Layout$.IsLoading ? "unfocussed" : "";
})
</script>
<template>
<div
class="loading-screen"
v-show="app$.Layout$.IsLoading == true"
>
"Loading..."
</div>
<modal
v-show="app$.Layout$.ModalIsOpen"
class="modal-container"
:class="isUnfocussed"
/>
<drawer></drawer>
<div
id="root"
class="app-container"
:class="isUnfocussed"
>
<div
style="grid-row:2;grid-column:2;cursor:pointer;"
@click="app$.Layout$.ToggleDrawer()"
>
</div>
<div style="grid-row:3/5;grid-column:2;">
</div>
<Header v-show="!app$.Layout$.DrawerIsOpen"></Header>
<div class="content-wrapper">
<router-view />
</div>
<div style="grid-row:4;grid-column:3/4">
</div>
<div style="grid-row:2/5;grid-column:4">
</div>
<div style="grid-row:1/6;grid-column:5">
</div>
<div style="grid-row:5;grid-column:2/5;background-color: purple;">
</div>
</div>
</template>
<style scoped lang="scss">
.loading-screen{
position: absolute;
z-index: 50;
height: 100vh;
width:100%;
overflow: hidden;
transition: 150ms;
transition-timing-function: ease-out;
background-color: black;
opacity: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: xx-large;
vertical-align:baseline;
}
.modal-container{
position: absolute;
z-index: 30;
height: 100vh;
width:100%;
display: grid;
overflow: hidden;
grid-template-rows: 2.5em 1fr 2.5em;
grid-template-columns: 2.5em 1fr 2.5em;
transition: 150ms;
transition-timing-function: ease-out;
}
.app-container {
z-index: 0;
height: 100vh;
width:100vw;
display: grid;
overflow-x: hidden;
grid-template-rows: 0em 2.5em 1fr 2.5em 0em;
grid-template-columns: 0em 2.5em 1fr 2.5em 0em;
transition: 150ms;
transition-timing-function: ease-out;
}
.content-wrapper{
grid-row:3/4;
grid-column:3;
display: flex;
// align-items: center;
justify-content: center;
}
</style>