File tree Expand file tree Collapse file tree 1 file changed +50
-21
lines changed
Expand file tree Collapse file tree 1 file changed +50
-21
lines changed Original file line number Diff line number Diff line change 44 class =" container mx-auto py-20 block sm:flex sm:justify-between sm:items-center"
55 >
66 <div class =" mb-20 sm:mb-0" >
7- <p
7+ <counter
8+ ref =" counter"
9+ :startAmount =" 0"
10+ :endAmount =" 12"
11+ :duration =" 1"
12+ :autoinit =" true"
13+ @finished =" alert(`Counting finished!`)"
814 class =" text-4xl font-bold text-secondary-dark dark:text-secondary-light mb-2"
9- >
10- 12
11- </p >
12- <span class =" text-md text-ternary-dark dark:text-ternary-light"
15+ />
16+ <span
17+ class =" block text-md text-ternary-dark dark:text-ternary-light"
1318 >Years of experience</span
1419 >
1520 </div >
21+
1622 <div class =" mb-20 sm:mb-0" >
17- <p
23+ <counter
24+ ref =" counter"
25+ :startAmount =" 0"
26+ :endAmount =" 20"
27+ :duration =" 1"
28+ suffix =" k+"
29+ :autoinit =" true"
30+ @finished =" alert(`Counting finished!`)"
1831 class =" text-4xl font-bold text-secondary-dark dark:text-secondary-light mb-2"
19- >
20- 20k+
21- </p >
22- <span class =" text-md text-ternary-dark dark:text-ternary-light"
32+ />
33+ <span
34+ class =" block text-md text-ternary-dark dark:text-ternary-light"
2335 >Stars on GitHub</span
2436 >
2537 </div >
38+
2639 <div class =" mb-20 sm:mb-0" >
27- <p
40+ <counter
41+ ref =" counter"
42+ :startAmount =" 0"
43+ :endAmount =" 92"
44+ :duration =" 1"
45+ suffix =" %"
46+ :autoinit =" true"
47+ @finished =" alert(`Counting finished!`)"
2848 class =" text-4xl font-bold text-secondary-dark dark:text-secondary-light mb-2"
29- >
30- 92%
31- </p >
32- <span class =" text-md text-ternary-dark dark:text-ternary-light"
49+ />
50+ <span
51+ class =" block text-md text-ternary-dark dark:text-ternary-light"
3352 >Positive feedback</span
3453 >
3554 </div >
36- <div >
37- <p
55+
56+ <div class =" mb-20 sm:mb-0" >
57+ <counter
58+ ref =" counter"
59+ :startAmount =" 0"
60+ :endAmount =" 77"
61+ :duration =" 1"
62+ :autoinit =" true"
63+ @finished =" alert(`Counting finished!`)"
3864 class =" text-4xl font-bold text-secondary-dark dark:text-secondary-light mb-2"
39- >
40- 77
41- </p >
42- <span class =" text-md text-ternary-dark dark:text-ternary-light"
65+ />
66+ <span
67+ class =" block text-md text-ternary-dark dark:text-ternary-light"
4368 >Projects completed</span
4469 >
4570 </div >
4873</template >
4974
5075<script >
76+ import counter from ' vue3-autocounter' ;
5177export default {
78+ components: {
79+ counter,
80+ },
5281 setup () {},
5382};
5483 </script >
You can’t perform that action at this time.
0 commit comments