Skip to content

Commit c802b9f

Browse files
committed
Add about counter ui
1 parent 11f367b commit c802b9f

File tree

2 files changed

+53
-2
lines changed

2 files changed

+53
-2
lines changed

src/components/AboutCounter.js

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
const AboutCounter = () => {
2+
return (
3+
<div className="mt-10 sm:mt-20 bg-primary-light dark:bg-ternary-dark shadow-sm">
4+
<div className="container mx-auto py-20 block sm:flex sm:justify-between sm:items-center">
5+
<div className="mb-20 sm:mb-0">
6+
<h2 className="text-4xl font-bold text-secondary-dark dark:text-secondary-light mb-2">
7+
12
8+
</h2>
9+
<span className="block text-md text-ternary-dark dark:text-ternary-light">
10+
Years of experience
11+
</span>
12+
</div>
13+
14+
<div className="mb-20 sm:mb-0">
15+
<h2 className="text-4xl font-bold text-secondary-dark dark:text-secondary-light mb-2">
16+
20k+
17+
</h2>
18+
<span className="block text-md text-ternary-dark dark:text-ternary-light">
19+
Stars on GitHub
20+
</span>
21+
</div>
22+
23+
<div className="mb-20 sm:mb-0">
24+
<h2 className="text-4xl font-bold text-secondary-dark dark:text-secondary-light mb-2">
25+
92%
26+
</h2>
27+
<span className="block text-md text-ternary-dark dark:text-ternary-light">
28+
Positive feedback
29+
</span>
30+
</div>
31+
32+
<div className="mb-20 sm:mb-0">
33+
<h2 className="text-4xl font-bold text-secondary-dark dark:text-secondary-light mb-2">
34+
77
35+
</h2>
36+
<span className="block text-md text-ternary-dark dark:text-ternary-light">
37+
Projects completed
38+
</span>
39+
</div>
40+
</div>
41+
</div>
42+
);
43+
};
44+
45+
export default AboutCounter;

src/pages/AboutMe.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
import AboutCounter from '../components/AboutCounter';
12
import AboutMeBio from '../components/AboutMeBio';
23

34
const About = () => {
45
return (
5-
<div className="container mx-auto">
6-
<AboutMeBio />
6+
<div>
7+
<div className="container mx-auto">
8+
<AboutMeBio />
9+
</div>
10+
11+
{/** Counter without paddings */}
12+
<AboutCounter />
713
</div>
814
);
915
};

0 commit comments

Comments
 (0)