-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
109 lines (109 loc) · 3.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
<template>
<div class="bg-gray-200">
<Particles
id="tsparticles"
:options="{
fpsLimit: 120,
interactivity: {
events: {
onClick: {
enable: true,
mode: 'repulse'
},
onHover: {
enable: true,
mode: 'grab'
},
resize: true
},
modes: {
bubble: {
distance: 400,
duration: 2,
opacity: 0.8,
size: 40
},
push: {
quantity: 1
},
repulse: {
distance: 150,
duration: 0.4
}
}
},
particles: {
color: {
value: 'c81243'
},
links: {
color: 'c81243',
distance: 150,
enable: true,
opacity: 0.5,
width: 1
},
collisions: {
enable: false
},
move: {
direction: 'top',
enable: true,
outMode: 'bounce',
random: false,
speed: 2,
gravity:{
enable: false
},
straight: false
},
number: {
density: {
enable: true,
area: 800
},
value: 80
},
opacity: {
value: 0.6
},
shape: {
type: 'circle'
},
size: {
random: true,
value: 5
}
},
detectRetina: true
}"
/>
<router-view class="z-20" v-slot="{ Component }">
<transition name="Slide" mode="out-in">
<component :is="Component" :key="$route.path"></component>
</transition>
</router-view>
<navbarBottom v-if="online===true" />
</div>
</template>
<script setup>
const online =useOnline();
</script>
<style>
.Slide-enter-from {
opacity: 0;
transition: all 0.5s ease;
}
.Slide-enter-to {
opacity: 1;
transition: all 0.5s ease;
}
.Slide-leave-to {
opacity: 0;
transition: all 0.7s ease;
}
.Slide-leave-from {
opacity: 1;
transition: all 0.7s ease;
}
</style>