11<script setup>
2- const sleep = ( ms ) => new Promise (( resolve ) => setTimeout (resolve, ms))
3- const displayHint = async ( text ) => {
4- const el = document .querySelector (' div.install .inner-text' )
5- el .innerText = text
6- el .parentElement .style .color = ' #00c96f'
7- await sleep (1500 )
8- el .parentElement .style .color = ' #aac8e4'
9- el .innerText = ' npm i v3-infinite-loading'
10- }
2+ const sleep = ms => new Promise (resolve => setTimeout (resolve, ms));
3+ const displayHint = async text => {
4+ const el = document .querySelector (" div.install .inner-text" );
5+ el .innerText = text;
6+ el .parentElement .style .color = " #00c96f" ;
7+ await sleep (1500 );
8+ el .parentElement .style .color = " #aac8e4" ;
9+ el .innerText = " npm i v3-infinite-loading" ;
10+ };
1111
1212const copyText = () => {
1313 navigator .clipboard
14- .writeText (' npm i v3-infinite-loading' )
14+ .writeText (" npm i v3-infinite-loading" )
1515 .then (() => {
16- displayHint (' Copied to clipboard' )
16+ displayHint (" Copied to clipboard" );
1717 })
1818 .catch (() => {
19- displayHint (' Failed to copy 😞' )
20- })
21- }
19+ displayHint (" Failed to copy 😞" );
20+ });
21+ };
2222 </script >
2323
2424<template >
@@ -36,21 +36,42 @@ const copyText = () => {
3636 <div class =" actions" >
3737 <a class =" get-started" href =" /guide/introduction.html" >
3838 Get Started
39- <svg class =" icon" xmlns =" http://www.w3.org/2000/svg" width =" 10" height =" 10" viewBox =" 0 0 24 24" >
40- <path d =" M13.025 1l-2.847 2.828 6.176 6.176h-16.354v3.992h16.354l-6.176 6.176 2.847 2.828 10.975-11z" />
39+ <svg
40+ class =" icon"
41+ xmlns =" http://www.w3.org/2000/svg"
42+ width =" 10"
43+ height =" 10"
44+ viewBox =" 0 0 24 24"
45+ >
46+ <path
47+ d =" M13.025 1l-2.847 2.828 6.176 6.176h-16.354v3.992h16.354l-6.176 6.176 2.847 2.828 10.975-11z"
48+ />
4149 </svg >
4250 </a >
4351 <div @click =" copyText" class =" install" >
4452 <span class =" inner-text" >npm i v3-infinite-loading</span >
4553 <svg width =" 16" height =" 19" xmlns =" http://www.w3.org/2000/svg" >
4654 <g >
4755 <title >Layer 1</title >
48- <path fill =" #666666" stroke =" null" id =" svg_1" opacity =" 0.35"
49- 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" />
50- <path stroke =" null" fill =" #666666" id =" svg_2"
51- d =" m9.84788,3.95635l0,-3.69577l5.54365,5.54365l-3.69577,0c-1.02096,0 -1.84788,-0.82693 -1.84788,-1.84788z" />
52- <path stroke =" null" fill =" #757575" id =" svg_3"
53- 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" />
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+ />
5475 </g >
5576 </svg >
5677 </div >
@@ -60,9 +81,7 @@ const copyText = () => {
6081 <section id =" highlights" class =" vt-box-container" >
6182 <div class =" vt-box text-center" >
6283 <h2 >Light and Simple</h2 >
63- <p >
64- Light weight, Simple and easy to use api and a built in spinner
65- </p >
84+ <p >Light weight, Simple and easy to use api and a built in spinner</p >
6685 </div >
6786 <div class =" vt-box text-center" >
6887 <h2 >2-directions support</h2 >
@@ -190,11 +209,11 @@ html:not(.dark) .accent,
190209 font-weight : 400 ;
191210 font-size : 15px ;
192211 max-width : 200px ;
193- color : rgba (60 , 60 , 60 , .7 );
212+ color : rgba (60 , 60 , 60 , 0 .7 );
194213}
195214
196215.dark #highlights p {
197- color : rgba (235 , 235 , 235 , .6 );
216+ color : rgba (235 , 235 , 235 , 0 .6 );
198217}
199218
200219#highlights .vt-box {
0 commit comments