Skip to content

Commit

Permalink
adding commit history link
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Saini <s2sharpit@gmail.com>
  • Loading branch information
s2sharpit committed Jul 8, 2023
1 parent 2a5d343 commit 14b8bbc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/ContributorCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { cn } from "@/lib/utils";
import Image from "next/image";
import Link from "next/link";
import { FaGithub } from "react-icons/fa";
import { RiHistoryLine } from "react-icons/ri";
import { Icons } from "./icons";

interface Card {
Expand All @@ -13,7 +14,7 @@ interface Card {
avatar_url: string;
}

export default function ContributorCard({data}: {data: Card}) {
export default function ContributorCard({ data }: { data: Card }) {
return (
<div className="flex h-80 w-72 flex-col items-center justify-between rounded-lg border border-black p-4 dark:border-white">
<div
Expand All @@ -33,10 +34,17 @@ export default function ContributorCard({data}: {data: Card}) {
height={120}
className="rounded-full border"
/>
<div className="mb-2 text-2xl">
<div className="mb-2 flex gap-12 text-2xl">
<Link href={data.html_url} target="_blank" className="duration-150 hover:text-[#411AFF]">
<FaGithub />
</Link>
<Link
href={`https://github.com/WebXDAO/WebXDAO.github.io/commits?author=${data.login}`}
target="_blank"
className="duration-150 hover:text-[#411AFF]"
>
<RiHistoryLine />
</Link>
</div>
</div>
);
Expand Down

0 comments on commit 14b8bbc

Please sign in to comment.