-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
49 lines (47 loc) · 863 Bytes
/
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
<template>
<NuxtLayout>
<div v-if="loading" class="loading cursor-not-allowed">
<div class="h-5px bg-orange progress-bar"></div>
</div>
<NuxtPage />
</NuxtLayout>
</template>
<script setup lang="ts">
import { useLoader } from "./composables/core/loader";
const { loading } = useLoader();
</script>
<style scoped>
.loading {
width: 100%;
min-height: 100vh;
background-color: rgba(0, 0, 0, 0.5);
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 99999999;
}
.progress-bar {
width: 100%;
position: absolute;
height: 5px;
animation-name: loader-animation;
animation-duration: 3s;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
}
@keyframes loader-animation {
0% {
left: -80%;
}
49% {
left: 80%;
}
50% {
left: 80%;
}
100% {
left: -80%;
}
}
</style>