Skip to content

Commit 3117cc2

Browse files
committed
feat : Symlink Button
1 parent 0059ccb commit 3117cc2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import Link from "next/link";
2+
import {ExternalLinkIcon} from "lucide-react";
3+
4+
export default function ShortcutButton({
5+
label,
6+
url,
7+
}: {
8+
label: string;
9+
url: string;
10+
}) {
11+
12+
return (
13+
<div>
14+
<Link
15+
href={url}
16+
className="inline-block py-3 text-black dark:text-white bg-white dark:bg-gray-800 rounded-lg shadow-md text-center text-lg transition-colors duration-200
17+
hover:bg-black hover:text-white dark:hover:bg-white dark:hover:text-black"
18+
target="_blank"
19+
rel="noopener noreferrer"
20+
>
21+
{`Let's Go `}{label}
22+
<ExternalLinkIcon className="inline-block w-5 h-5 ml-2"/>
23+
</Link>
24+
</div>
25+
26+
);
27+
}

0 commit comments

Comments
 (0)