Skip to content

Commit cbe370b

Browse files
committed
About counter design
1 parent 7037915 commit cbe370b

File tree

3 files changed

+61
-17
lines changed

3 files changed

+61
-17
lines changed

src/components/about/AboutCounter.vue

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
<template>
2-
<div class="flex justify-between items-center">
3-
<div>
4-
<p>12</p>
5-
<span>Years of experience</span>
6-
</div>
7-
<div>
8-
<p>20k+</p>
9-
<span>Stars on GitHub</span>
10-
</div>
11-
<div>
12-
<p>92%</p>
13-
<span>Positive feedback</span>
14-
</div>
15-
<div>
16-
<p>77</p>
17-
<span>Projects completed</span>
2+
<div class="mt-20 bg-gray-100 shadow-sm">
3+
<div class="container mx-auto p-10 flex justify-between items-center">
4+
<div>
5+
<p class="text-4xl font-bold text-gray-600 mb-2">12</p>
6+
<span class="text-md text-gray-500">Years of experience</span>
7+
</div>
8+
<div>
9+
<p class="text-4xl font-bold text-gray-600 mb-2">20k+</p>
10+
<span class="text-md text-gray-500">Stars on GitHub</span>
11+
</div>
12+
<div>
13+
<p class="text-4xl font-bold text-gray-600 mb-2">92%</p>
14+
<span class="text-md text-gray-500">Positive feedback</span>
15+
</div>
16+
<div>
17+
<p class="text-4xl font-bold text-gray-600 mb-2">77</p>
18+
<span class="text-md text-gray-500">Projects completed</span>
19+
</div>
1820
</div>
1921
</div>
2022
</template>

src/components/about/AboutMe.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="w-full sm:w-1/3">
44
<img src="" alt="" />
55
</div>
6-
<div class="w-full sm:w-2/3">
6+
<div class="w-full sm:w-2/3 text-left">
77
<p>
88
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nihil
99
vel illum asperiores dignissimos cumque quibusdam et fugiat

src/views/About.vue

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<template>
2+
<div>
3+
<div class="container mx-auto px-4 py-10">
4+
<!-- About me start -->
5+
<AboutMe />
6+
<!-- About me end -->
7+
</div>
8+
9+
<!-- About counter start -->
10+
<AboutCounter />
11+
<!-- About counter end -->
12+
</div>
13+
</template>
14+
15+
<script>
16+
import AboutMe from '@/components/about/AboutMe';
17+
import AboutCounter from '@/components/about/AboutCounter';
18+
import feather from 'feather-icons';
19+
20+
export default {
21+
name: 'About',
22+
components: {
23+
AboutMe,
24+
AboutCounter,
25+
},
26+
props: {
27+
msg: String,
28+
},
29+
data: () => {
30+
return {};
31+
},
32+
mounted() {
33+
feather.replace();
34+
},
35+
updated() {
36+
feather.replace();
37+
},
38+
methods: {},
39+
};
40+
</script>
41+
42+
<style scoped></style>

0 commit comments

Comments
 (0)