Skip to content

Commit 873cdc8

Browse files
update
1 parent c18f8ac commit 873cdc8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/components/Card.jsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { MdOutlineRemoveRedEye } from "react-icons/md";
44

55
function Card() {
66
const { t } = useTranslation();
7+
const buttonStyle =
8+
"bg-accentDarker flex min-w-[120px] cursor-pointer items-center justify-center rounded-full py-2 text-white transition-opacity hover:opacity-80";
9+
710
return (
811
<div className="h-[520px] w-[320px] overflow-hidden rounded-2xl bg-neutral-900 shadow-lg">
912
<div className="h-[200px] border-b border-accent bg-[url('/images/marv.jpg')] bg-cover"></div>
@@ -21,14 +24,14 @@ function Card() {
2124
</div>
2225

2326
<div className="flex justify-center gap-x-4 py-2">
24-
<button className="bg-accentDarker flex min-w-[120px] items-center justify-center rounded-full py-2 text-white">
27+
<a className={`${buttonStyle}`}>
2528
<FaGithub size={"24"} className="mr-2" />
2629
Github
27-
</button>
30+
</a>
2831

29-
<button className="bg-accentDarker flex min-w-[120px] items-center justify-center rounded-full py-2 text-white">
32+
<a className={`${buttonStyle}`}>
3033
<MdOutlineRemoveRedEye size={"24"} className="mr-2" /> Demo
31-
</button>
34+
</a>
3235
</div>
3336
</div>
3437
</div>

0 commit comments

Comments
 (0)