From ac258ea95b162b64b82095b6805e1c01b9a2c183 Mon Sep 17 00:00:00 2001 From: Nico Haider Date: Tue, 14 Apr 2026 21:16:53 +0200 Subject: [PATCH] style(nav): styling new header --- app/page.tsx | 18 +++++++++++++++- components/custom/navbar.tsx | 41 ++++++++++++++++++------------------ 2 files changed, 38 insertions(+), 21 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index e972950..e7b0296 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,6 +1,22 @@ export default function Home() { return ( -
+
+

Test

+

Test

+

Test

+

Test

+

Test

+

Test

+

Test

+

Test

+

Test

+

Test

+

Test

+

Test

+

Test

+

Test

+

Test

+

Test

); } diff --git a/components/custom/navbar.tsx b/components/custom/navbar.tsx index a538a56..7ee06b1 100644 --- a/components/custom/navbar.tsx +++ b/components/custom/navbar.tsx @@ -9,49 +9,50 @@ export default function Navbar() { useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 10) + + onScroll() + window.addEventListener("scroll", onScroll) return () => window.removeEventListener("scroll", onScroll) }, []) return ( -
- +
+
)