diff --git a/client/src/components/Footer.jsx b/client/src/components/Footer.jsx index 0ab03fb..453a86e 100644 --- a/client/src/components/Footer.jsx +++ b/client/src/components/Footer.jsx @@ -1,9 +1,11 @@ import React, { useCallback } from "react"; -import { Link } from "react-router-dom"; +import { Link, useLocation } from "react-router-dom"; import { Github, ArrowUp } from "lucide-react"; const Footer = () => { const currentYear = new Date().getFullYear(); + const location = useLocation(); + const isLandingPage = location.pathname === "/"; const scrollToTop = useCallback(() => { window.scrollTo({ top: 0, behavior: "smooth" }); @@ -16,25 +18,129 @@ const Footer = () => { } }; + if (!isLandingPage) { + return ( + + ); + } + return (