feat: implement main navigation component and integrate protected routing in App structure

This commit is contained in:
Michael committed 2026-04-16 12:57:37 +02:00
1 parent b06298d80e
commit 2b971f97b3
3 files changed
+220 -1

No files matched your search

+13 -1
View File
@@ -1,5 +1,5 @@
import { Link, useLocation } from 'react-router-dom';
import { Home, Flame, PlusCircle } from 'lucide-react';
import { Home, Flame, PlusCircle, BookOpen } from 'lucide-react';
export default function Navigation() {
const location = useLocation();
@@ -43,6 +43,18 @@ export default function Navigation() {
<span className="font-medium">Tendance</span>
</Link>
<Link
to="/library"
className={`flex items-center gap-3 px-4 py-3 rounded-lg transition-colors ${
isActive('/library')
? 'bg-blue-500 text-white'
: 'text-light-700 hover:bg-light-100'
}`}
>
<BookOpen className="w-5 h-5" />
<span className="font-medium">Bibliothèque</span>
</Link>
<Link
to="/add"
className={`flex items-center gap-3 px-4 py-3 rounded-lg transition-colors ${