Skip to content

Commit e42015a

Browse files
feat: create back to dashboard link component
1 parent d72009b commit e42015a

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"@supabase/ssr": "^0.7.0",
1313
"@supabase/supabase-js": "^2.75.0",
1414
"daisyui": "^5.3.7",
15+
"lucide-react": "^0.548.0",
1516
"next": "15.5.3",
1617
"react": "19.1.0",
1718
"react-dom": "19.1.0"

src/app/tutorial-hello-world/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
import BackToDashBoardLink from "@/components/back-to-dashboard-link";
2+
13
export default function TutorialHelloWorld() {
24
return (
35
<div className="min-h-screen bg-gray-50 p-8">
6+
<BackToDashBoardLink></BackToDashBoardLink>
7+
48
<article className="max-w-5xl mx-auto bg-white p-6 md:p-10 rounded-lg shadow-md space-y-6">
59
{/* Quest Title */}
610
<h1 className="text-3xl md:text-4xl font-bold text-indigo-700 border-b pb-2 mb-6">
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { ArrowLeft } from "lucide-react";
2+
import Link from "next/link";
3+
4+
export default function BackToDashBoardLink() {
5+
return (
6+
<Link
7+
href="/dashboard"
8+
className="mb-4 inline-block text-indigo-600 hover:text-indigo-800 transition hover:scale-105 group"
9+
>
10+
<ArrowLeft className="inline-block w-5 h-5 mr-1" />
11+
<span className="text-sm font-medium">Back to Dashboard</span>
12+
</Link>
13+
);
14+
}

0 commit comments

Comments
 (0)