Skip to content

Commit

Permalink
Feat: Repo link component added
Browse files Browse the repository at this point in the history
  • Loading branch information
daejlee committed Sep 24, 2024
1 parent 4a314a4 commit 419a6e4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/components/utils/RepoLink.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import {
Tooltip,
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from "@/components/ui/tooltip";
import Image from "next/image";
import Link from "next/link";

export default function RepoLink() {
return (
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<Link href="https://github.com/42Where">
<Image
src="image/logo/logoC.svg"
alt="logo"
width={120}
height={120}
className="
w-[80px] md:w-[120px]"
/>
</Link>
</TooltipTrigger>
<TooltipContent>
<p className="text-l lg:text-xl">깃허브 레포지토리 방문</p>
</TooltipContent>
</Tooltip>
</TooltipProvider>
);
}

0 comments on commit 419a6e4

Please sign in to comment.