Skip to content

Commit 9673c14

Browse files
committed
Implementing the pillar component [Fixes #79]
1 parent d1a9250 commit 9673c14

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

src/components/Pillar/Pillar.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React from 'react';
2+
3+
export default function Pillar({
4+
count,
5+
label,
6+
}: {
7+
count: string;
8+
label: string;
9+
}) {
10+
return (
11+
<div className="flex max-w-xs md:max-w-sm space-x-4 p-4 border rounded-lg items-center md:bg-[#09AFC6]">
12+
<h1 className="text-2xl md:text-4xl font-extrabold md:text-white tracking-wide">
13+
{count}
14+
</h1>
15+
<p className=" truncate text-md md:text-xl capitalize md:text-white tracking-wide">
16+
{label}
17+
</p>
18+
</div>
19+
);
20+
}

0 commit comments

Comments
 (0)