From 3789b165628dbec4d92360d6c2747b2e10e4a766 Mon Sep 17 00:00:00 2001 From: Sam Geyskens Date: Fri, 15 May 2026 09:26:03 +0200 Subject: [PATCH] refactor: update Header component for improved navigation and styling --- .gitignore | 6 +-- src/components/Header.tsx | 84 +++++++++++++++++++++------------------ 2 files changed, 49 insertions(+), 41 deletions(-) diff --git a/.gitignore b/.gitignore index c080985..a066314 100644 --- a/.gitignore +++ b/.gitignore @@ -13,8 +13,8 @@ build/ .env.local .env.*.local -# Prisma generated -prisma/migrations/ +# Prisma generated client (niet de migrations zelf!) +prisma/generated/ # Misc .DS_Store @@ -22,4 +22,4 @@ prisma/migrations/ .vercel npm-debug.log* yarn-debug.log* -yarn-error.log* +yarn-error.log* \ No newline at end of file diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 0ebf162..e2568a7 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -5,74 +5,82 @@ import Link from "next/link"; import Image from "next/image"; import { usePathname } from "next/navigation"; +const NAV = [ + { href: "/", label: "Klassement", icon: "🏆" }, + { href: "/log", label: "Loggen", icon: "➕" }, + { href: "/history", label: "Geschiedenis", icon: "📅" }, +]; + export function Header() { const { data: session } = useSession(); const pathname = usePathname(); - const nav = [ - { href: "/", label: "🏆 Klassement" }, - { href: "/log", label: "➕ Loggen" }, - { href: "/history", label: "📅 Geschiedenis" }, - ]; - return ( -
-
+
+
+ {/* Logo */} - + 💤 SlaapKampioen - {/* Nav */} -
); -} +} \ No newline at end of file