We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0059ccb commit 3117cc2Copy full SHA for 3117cc2
next/src/components/shortCutButton.tsx
@@ -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