Skip to content

Commit 3d4e1ce

Browse files
committed
style: Update ContributorCard styles for improved layout and hover effects
1 parent 5960d97 commit 3d4e1ce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/app/(public)/contributors/_components/contributor-card.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,33 +40,33 @@ export function ContributorCard({ contributor }: ContributorCardProps) {
4040

4141
return (
4242
<button
43-
className="group justify-center min-w-full text-center shadow-2xl card focus-within:outline-hacktoberfest-blue bg-hacktoberfest-light-blue hover:bg-hacktoberfest-light transition-all duration-300 transform hover:-translate-y-1 overflow-hidden"
43+
className="group justify-center min-w-full text-center shadow-2xl card focus-within:outline-hacktoberfest-blue bg-hacktoberfest-light-blue hover:bg-hacktoberfest-light transition-all duration-300 transform hover:-translate-y-1 overflow-hidden pt-6"
4444
id={contributor.login}
4545
onClick={() => router.replace(`/contributors#${contributor.login}`)}
4646
ref={cardRef}
4747
>
4848
<div className="w-full mx-auto">
49-
<figure className="w-full h-56">
49+
<figure className="size-56 rounded-full mx-auto">
5050
<img
5151
src={url}
5252
alt={contributor.name}
53-
className="h-full w-full object-cover transition-transform duration-300 group-hover:scale-110"
53+
className="max-h-full w-auto object-cover transition-transform duration-300 group-hover:scale-110"
5454
/>
5555
</figure>
5656
</div>
5757
<div className="w-full gap-3 items-center card-body">
58-
<h2 className="text-2xl font-medium text-hacktoberfest-light group-hover:text-hacktoberfest-black">
58+
<h2 className="text-2xl font-medium text-hacktoberfest-light group-hover:text-hacktoberfest-blue">
5959
{contributor.name}
6060
</h2>
6161
<a
6262
href={contributor.profile}
63-
className="link text-hacktoberfest-light group-hover:text-hacktoberfest-black hover:text-hacktoberfest-blue w-fit underline-expand"
63+
className="link text-hacktoberfest-light group-hover:text-hacktoberfest-black group-hover:text-hacktoberfest-blue w-fit underline-expand"
6464
>
6565
{contributor.profile}
6666
</a>
6767
<div className="justify-center mt-auto card-actions">
6868
<a
69-
className="border-2 text-hacktoberfest-light btn border-hacktoberfest-blue group-hover:!text-white hover:-translate-y-1"
69+
className="border-2 text-hacktoberfest-light btn border-hacktoberfest-blue group-hover:!text-white group-hover:-translate-y-1"
7070
href={`https://github.com/${contributor.login}`}
7171
target="_blank"
7272
rel="noreferrer"

0 commit comments

Comments
 (0)