1
1
<script setup>
2
- const sleep = (ms ) => new Promise (resolve => setTimeout (resolve, ms))
2
+ const sleep = (ms ) => new Promise (( resolve ) => setTimeout (resolve, ms))
3
3
const displayHint = async (text ) => {
4
- const el = document .querySelector (" div.install .inner-text" );
5
- el .innerText = text;
6
- el .parentElement .style .color = " #00c96f" ;
4
+ const el = document .querySelector (' div.install .inner-text' )
5
+ el .innerText = text
6
+ el .parentElement .style .color = ' #00c96f'
7
7
await sleep (1500 )
8
- el .parentElement .style .color = " #aac8e4"
9
- el .innerText = " npm i v3-infinite-loading" ;
10
- };
8
+ el .parentElement .style .color = ' #aac8e4'
9
+ el .innerText = ' npm i v3-infinite-loading'
10
+ }
11
11
12
12
const copyText = () => {
13
13
navigator .clipboard
14
- .writeText (" npm i v3-infinite-loading" )
15
- .then (() => {
16
- displayHint (" Copied to clipboard" );
17
- })
18
- .catch (() => {
19
- displayHint (" Failed to copy 😞" );
20
- });
21
- };
22
-
14
+ .writeText (' npm i v3-infinite-loading' )
15
+ .then (() => {
16
+ displayHint (' Copied to clipboard' )
17
+ })
18
+ .catch (() => {
19
+ displayHint (' Failed to copy 😞' )
20
+ })
21
+ }
23
22
</script >
24
23
25
24
<template >
26
25
<section id =" hero" >
27
26
<h1 class =" tagline" >
28
- Vue.js 3
27
+ Vue.js 3
29
28
<span class =" accent" >Infinite</span >
30
29
<br />loading Component
31
30
</h1 >
@@ -52,36 +51,47 @@ const copyText = () => {
52
51
<div @click =" copyText" class =" install" >
53
52
<span class =" inner-text" >npm i v3-infinite-loading</span >
54
53
<svg width =" 16" height =" 19" xmlns =" http://www.w3.org/2000/svg" >
55
- <g >
56
- <title >Layer 1</title >
57
- <path fill =" #666666" stroke =" null" id =" svg_1" opacity =" 0.35" d =" m2.50926,14.0668l0,-11.0873c0,-1.53097 1.24085,-2.77183 2.77182,-2.77183l4.61971,0l5.54365,5.54365l0,8.31548c0,1.53097 -1.24085,2.77182 -2.77182,2.77182l-7.39154,0c-1.53097,0 -2.77182,-1.24085 -2.77182,-2.77182z" />
58
- <path stroke =" null" fill =" #666666" id =" svg_2" d =" m9.84788,3.95635l0,-3.69577l5.54365,5.54365l-3.69577,0c-1.02096,0 -1.84788,-0.82693 -1.84788,-1.84788z" />
59
- <path stroke =" null" fill =" #757575" id =" svg_3" d =" m5.22817,16.89153c-1.53097,0 -2.77183,-1.24085 -2.77183,-2.77183l0,-11.0873c-1.02096,0 -1.84788,0.82693 -1.84788,1.84788l0,11.0873c0,1.53097 1.24085,2.77183 2.77183,2.77183l7.39153,0c1.02096,0 1.84788,-0.82693 1.84788,-1.84788l-7.39153,0z" />
60
- </g >
54
+ <g >
55
+ <title >Layer 1</title >
56
+ <path
57
+ fill =" #666666"
58
+ stroke =" null"
59
+ id =" svg_1"
60
+ opacity =" 0.35"
61
+ d =" m2.50926,14.0668l0,-11.0873c0,-1.53097 1.24085,-2.77183 2.77182,-2.77183l4.61971,0l5.54365,5.54365l0,8.31548c0,1.53097 -1.24085,2.77182 -2.77182,2.77182l-7.39154,0c-1.53097,0 -2.77182,-1.24085 -2.77182,-2.77182z"
62
+ />
63
+ <path
64
+ stroke =" null"
65
+ fill =" #666666"
66
+ id =" svg_2"
67
+ d =" m9.84788,3.95635l0,-3.69577l5.54365,5.54365l-3.69577,0c-1.02096,0 -1.84788,-0.82693 -1.84788,-1.84788z"
68
+ />
69
+ <path
70
+ stroke =" null"
71
+ fill =" #757575"
72
+ id =" svg_3"
73
+ d =" m5.22817,16.89153c-1.53097,0 -2.77183,-1.24085 -2.77183,-2.77183l0,-11.0873c-1.02096,0 -1.84788,0.82693 -1.84788,1.84788l0,11.0873c0,1.53097 1.24085,2.77183 2.77183,2.77183l7.39153,0c1.02096,0 1.84788,-0.82693 1.84788,-1.84788l-7.39153,0z"
74
+ />
75
+ </g >
61
76
</svg >
62
77
</div >
63
78
</div >
64
79
</section >
65
80
66
-
67
81
<section id =" highlights" class =" vt-box-container" >
68
82
<div class =" vt-box text-center" >
69
83
<h2 >Light and Simple</h2 >
70
84
<p >
71
- Light weight, Simple and easy to use api and a built in spinner
85
+ Light weight, Simple and easy to use api and a built in spinner
72
86
</p >
73
87
</div >
74
88
<div class =" vt-box text-center" >
75
89
<h2 >2-directions support</h2 >
76
- <p >
77
- Support top and bottom directions
78
- </p >
90
+ <p >Support top and bottom directions</p >
79
91
</div >
80
92
<div class =" vt-box text-center" >
81
93
<h2 >Result display</h2 >
82
- <p >
83
- Fully configurable load result display
84
- </p >
94
+ <p >Fully configurable load result display</p >
85
95
</div >
86
96
</section >
87
97
</template >
0 commit comments