-
Notifications
You must be signed in to change notification settings - Fork 3
/
app.vue
454 lines (406 loc) · 11.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
<template>
<!-- <div class="w-full flex justify-center">
<div ref="el" class="w-1/2 mt-6 pt-6 bg-gray-300">
Testing
</div>
</div> -->
<div id="linux">
<div class="linux-wrapper grid grid-cols-12">
<!-- sidebar -->
<div id="sidebar" class="grid-span-2 h-screen">
<div class="bg-gray-900 m-6 rounded-xl text-white h-fit flex items-center flex-col space-y-10 py-10">
<div ref="time" class="text-white border-2 border-gray-100 p-3 rounded-xl">
<span> {{ d.getHours() }} : {{d.getMinutes()}} </span>
<!-- <Icon name="clarity:power-solid" color="#D20062" class="text-5xl border-2 border-gray-500 rounded-full p-2" /> -->
</div>
<div class="" ref="btn_power">
<Icon name="clarity:power-solid" color="#D20062" class="text-5xl border-2 border-gray-500 rounded-full p-2" />
</div>
<div class="btn_wifi" ref="btn_wifi">
<Icon name="material-symbols:network-wifi" color="#F3CA52" class="text-5xl border-2 border-gray-500 rounded-full p-2" />
</div>
<div class="" ref="btn_sound">
<Icon name="material-symbols:sound-sampler-rounded" color="#90D26D" class="text-5xl border-2 border-gray-500 rounded-full p-2" />
</div>
<div class="" ref="btn_battery">
<Icon name="ic:baseline-battery-80" color="#FFF7FC" class="text-5xl border-2 border-gray-500 rounded-full p-2" />
</div>
<div class="" ref="btn_bluetooth">
<Icon name="solar:bluetooth-circle-broken" color="#7AA2E3" class="text-5xl border-2 border-gray-500 rounded-full p-2" />
</div>
<div class="" ref="btn_app">
<Icon name="streamline:interface-dashboard-layout-3-app-application-dashboard-home-layout" color="#C738BD" class="text-5xl border-2 border-gray-500 rounded-full p-2" />
</div>
</div>
</div>
<div id="main" class="grid-span-10 w-[90vw] flex flex-col justify-center items-center">
<div class="main-wrapper w-full h-full flex p-10 space-x-10">
<!-- profile -->
<div ref="comp_profile" class="w-1/3 h-full">
<Profile />
</div>
<div class="" ref="comp_music">
<Music />
</div>
<div class="w-full" ref="comp_pfetch">
<Pfetch/>
</div>
</div>
<div class="h-full w-full pb-10 flex px-10 space-x-10">
<div class="w-full" ref="comp_matrix">
<Matrix/>
</div>
<div class="w-full" ref="comp_notepad">
<Notepad/>
</div>
<!-- <Terminal/> -->
<div class=" w-full h-full " ref="comp_gallery">
<Gallery/>
<Panel/>
</div>
</div>
</div>
</div>
</div>
</template>
<script setup>
import { ref, onMounted } from 'vue'
import { useShepherd } from 'vue-shepherd'
const btn_power = ref(null);
const btn_sound = ref(null);
const btn_wifi = ref(null);
const btn_app = ref(null);
const btn_battery = ref(null);
const btn_bluetooth = ref(null);
let d = new Date();
const tour = useShepherd({
useModalOverlay: true,
defaultStepOptions: {
scrollTo: true,
exitOnEsc: true
}
});
const comp_profile = ref(null);
const comp_music = ref(null);
const comp_pfetch = ref(null);
const comp_matrix = ref(null);
const comp_notepad = ref(null);
const comp_gallery = ref(null);
onMounted(() => {
// Menu-location
tour.addStep({
id: 'example-step',
text: '🌍 Please Share Your Location for the Weather Forecast',
attachTo: {
element: btn_power.value ,
},
classes: 'step1',
buttons: [{
text: 'Next',
classes: 'step1-btn1',
action: tour.next
}]
});
// ESC
tour.addStep({
id: 'example-step',
text: 'Skip these steps and explore yourself, press the ESC key at any time.',
attachTo: {
element: btn_power.value ,
},
classes: 'step1',
buttons: [{
text: 'Next',
classes: 'step1-btn1',
action: tour.next
}]
});
// Tour-Power
tour.addStep({
id: 'example-step',
text: 'Button initiates power management actions like shutting down or restarting the system ❤️',
attachTo: {
element: btn_power.value,
on: 'right'
},
classes: 'step1',
buttons: [{
text: 'Next',
classes: 'step1-btn1',
action: tour.next
}]
});
// Tour-Wifi
tour.addStep({
id: 'example-step',
text: "WiFi button should toggle the device's WiFi connection on or off 💛",
attachTo: {
element: btn_wifi.value,
on: 'right'
},
classes: 'step1',
buttons: [{
text: 'Back',
classes: 'step1-btn2',
action: tour.back
},{
text: 'Next',
classes: 'step1-btn1',
action: tour.next
}]
});
// Tour-Sound
tour.addStep({
id: 'example-step',
text: 'button should visually indicate the current state of sound enabled or muted 💚',
attachTo: {
element: btn_sound.value,
on: 'right'
},
classes: 'step1',
buttons: [{
text: 'Back',
classes: 'step1-btn2',
action: tour.back
},{
text: 'Next',
classes: 'step1-btn1',
action: tour.next
}]
});
// Tour-Battery
tour.addStep({
id: 'example-step',
text: ' provide users with essential information about their battery status 🤍',
attachTo: {
element: btn_battery.value,
on: 'right'
},
classes: 'step1',
buttons: [{
text: 'Back',
classes: 'step1-btn2',
action: tour.back
},{
text: 'Next',
classes: 'step1-btn1',
action: tour.next
}]
});
// Tour-Bluetooth
tour.addStep({
id: 'example-step',
text: 'Toggle the Bluetooth connection on or off 🩵',
attachTo: {
element: btn_bluetooth.value,
on: 'right'
},
classes: 'step1',
buttons: [{
text: 'Back',
classes: 'step1-btn2',
action: tour.back
},{
text: 'Next',
classes: 'step1-btn1',
action: tour.next
}]
});
// Tour-App
tour.addStep({
id: 'example-step',
text: 'It provides a quick and easy way to find and start the programs 💜',
attachTo: {
element: btn_app.value,
on: 'right'
},
classes: 'step1',
buttons: [{
text: 'Back',
classes: 'step1-btn2',
action: tour.back
},{
text: 'Next',
classes: 'step1-btn1',
action: tour.next
}]
});
// Tour-Profile
tour.addStep({
id: 'example-step',
text: 'To display a brief summary of profile information 😄',
attachTo: {
element: comp_profile.value,
on: 'right'
},
classes: 'step1',
buttons: [{
text: 'Back',
classes: 'step1-btn2',
action: tour.back
},{
text: 'Next',
classes: 'step1-btn1',
action: tour.next
}]
});
// Tour-Music
tour.addStep({
id: 'example-step',
text: 'Your music taste reflects your personality and interests (Play the music) 🎺',
attachTo: {
element: comp_music.value,
on: 'right'
},
classes: 'step1',
buttons: [{
text: 'Back',
classes: 'step1-btn2',
action: tour.back
},{
text: 'Next',
classes: 'step1-btn1',
action: tour.next
}]
});
// Tour-Pfetch
tour.addStep({
id: 'example-step',
text: 'Neofetch-inspired profile card design 🚀',
attachTo: {
element: comp_pfetch.value,
on: 'left'
},
classes: 'step1',
buttons: [{
text: 'Back',
classes: 'step1-btn2',
action: tour.back
},{
text: 'Next',
classes: 'step1-btn1',
action: tour.next
}]
});
// Tour-matrix
tour.addStep({
id: 'example-step',
text: 'mimics the retro-style terminal interface ⛆',
attachTo: {
element: comp_matrix.value,
on: 'top'
},
classes: 'step1',
buttons: [{
text: 'Back',
classes: 'step1-btn2',
action: tour.back
},{
text: 'Next',
classes: 'step1-btn1',
action: tour.next
}]
});
// Tour-Pfetch
tour.addStep({
id: 'example-step',
text: 'Write your thoughts 🗒️',
attachTo: {
element: comp_notepad.value,
on: 'top'
},
classes: 'step1',
buttons: [{
text: 'Back',
classes: 'step1-btn2',
action: tour.back
},{
text: 'Next',
classes: 'step1-btn1',
action: tour.next
}]
});
// Tour-Pfetch
tour.addStep({
id: 'example-step',
text: 'I love Cats 😽',
attachTo: {
element: comp_gallery.value,
on: 'top'
},
classes: 'step1',
buttons: [{
text: 'Done',
classes: 'step1-btn2',
action: tour.next
}]
});
tour.start();
});
</script>
<style>
.glass{
background-color: transparent;
backdrop-filter: blur(20px);
background-image: linear-gradient(
120deg,
rgba(255,255,255,.2),rgba(1,2,1,.5)
/* rgba(255,255,255,.6) , */
/* rgba(1,1,1,.7) , */
);
}
#linux{
width:100vw;
max-height: 100vh;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
background-image: url("/AstraOS/bg.jpg");
}
/*.shepherd-arrow {
display: none;
}*/
.example-step-extra-class {
border: 2px solid black;
}
.step1{
border: 4px solid #151515;
margin-top: 1rem;
border-radius: 10px;
}
.step1 #example-step-description {
color: #1E0342;
padding:2em;
}
.step1 .shepherd-footer{
display: flex;
justify-content:end;
padding: 0;
border-radius:0;
border-radius: 0 0 10px 10px;
}
.step1 .shepherd-button{
width: 50%;
border-top:4px solid #0C2D57;
display:flex;
flex-grow: 1;
justify-content: center;
margin: 0;
background-color: ghostwhite;
color:black;
}
.step1 .shepherd-button:hover{
background-color:#86469C;
color:white;
}
.step1 .step1-btn1{
border-left: 2px solid #0C2D57;
}
.step1 .step1-btn2{
border-right: 2px solid #0C2D57;
}
.btn_wifi{
animation: bounce;
animation-duration: 3s;
}
</style>