Skip to content

Commit 9443a84

Browse files
committed
style: centered buttons
1 parent 4646c06 commit 9443a84

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

components/Card.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ function Card({ repo }: Props) {
6161
</div>
6262

6363
{/* stars and forks cards */}
64-
<div className="w-full grid grid-cols-[repeat(auto-fit,_minmax(120px,_1fr))] gap-3 xl:gap-5 text-neutral-100 cursor-pointer mt-8">
64+
<div className="flex flex-wrap gap-3 xl:gap-5 text-neutral-100 cursor-pointer mt-8">
6565
<a
6666
href={`${repo.html_url}/stargazers`}
6767
target="_blank"
68-
className="group w-full border rounded-xl p-3 xl:px-4 flex items-center gap-2 xl:gap-3 relative"
68+
className="group w-full flex-shrink-0 flex-grow-1 mx-auto basis-[120px] border rounded-xl p-3 xl:px-4 flex items-center gap-2 xl:gap-3 relative"
6969
>
7070
<GoStar className="text-yellow-200 text-2xl" />
7171
<div className="flex flex-col">
@@ -76,15 +76,15 @@ function Card({ repo }: Props) {
7676
</div>
7777
<div
7878
id="tooltip"
79-
className="hidden group-hover:block absolute bg-2023-void-2 text-2023-bavarian-gold-2 px-2 py-1 rounded-md"
79+
className="hidden group-hover:block text-sm absolute bg-2023-void-2 text-2023-bavarian-gold-2 px-2 py-1 rounded-md"
8080
>
8181
Checkout all the stars here!
8282
</div>
8383
</a>
8484
<a
8585
href={`${repo.html_url}/forks`}
8686
target="_blank"
87-
className="group w-full border rounded-xl p-3 flex items-center gap-3 relative"
87+
className="group flex-shrink-0 flex-grow-1 mx-auto basis-[120px] border rounded-xl p-3 flex items-center gap-3 relative"
8888
>
8989
<GoRepoForked className="text-yellow-200 text-2xl" />
9090
<div className="flex flex-col">
@@ -95,15 +95,15 @@ function Card({ repo }: Props) {
9595
</div>
9696
<div
9797
id="tooltip"
98-
className="hidden group-hover:block absolute bg-2023-void-2 text-2023-bavarian-gold-2 px-2 py-1 rounded-md"
98+
className="hidden group-hover:block absolute text-sm bg-2023-void-2 text-2023-bavarian-gold-2 px-2 py-1 rounded-md"
9999
>
100100
Checkout all the forks here!
101101
</div>
102102
</a>
103103
<a
104104
href={`${repo.html_url}/issues`}
105105
target="_blank"
106-
className="group w-full border rounded-xl p-3 flex items-center gap-3 relative"
106+
className="group flex-shrink-0 flex-grow-1 mx-auto basis-[120px] border rounded-xl p-3 flex items-center gap-3 relative"
107107
>
108108
<GoIssueOpened className="text-yellow-200 text-2xl" />
109109
<div className="flex flex-col">

0 commit comments

Comments
 (0)