From 7fb3fb23bb1640eb1de557e31d27909e8d7160d2 Mon Sep 17 00:00:00 2001 From: Leo dev Date: Mon, 2 Feb 2026 17:11:06 +0100 Subject: [PATCH] dynamic Footer --- src/app/layout.tsx | 4 +-- src/components/app/Footer.tsx | 65 +++++++++++++++++++++++++++-------- 2 files changed, 51 insertions(+), 18 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 51c2923..87e856d 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -31,9 +31,7 @@ export default function RootLayout({ >
-
- {children} -
+
{children}
diff --git a/src/components/app/Footer.tsx b/src/components/app/Footer.tsx index 5729fdb..6b944c8 100644 --- a/src/components/app/Footer.tsx +++ b/src/components/app/Footer.tsx @@ -1,6 +1,13 @@ +"use client"; + import { Timer, Github, Twitter, MessageCircle } from "lucide-react"; +import { usePathname } from "next/navigation"; const Footer = () => { + const pathname = usePathname(); + + if (pathname !== "/") return null; + return (