From 6e38e58eb9cd853b97f8a19b66569d9b3e6a94e9 Mon Sep 17 00:00:00 2001 From: Yash Patel <109963122+PatelYash7@users.noreply.github.com> Date: Fri, 21 Jun 2024 17:27:14 +0530 Subject: [PATCH] Updated the Footer --- .../Pages/Landing page/components/Footer.tsx | 36 ++++++------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/Frontend/src/Pages/Landing page/components/Footer.tsx b/Frontend/src/Pages/Landing page/components/Footer.tsx index 4b32fa8..8b7f9b5 100644 --- a/Frontend/src/Pages/Landing page/components/Footer.tsx +++ b/Frontend/src/Pages/Landing page/components/Footer.tsx @@ -1,38 +1,24 @@ +import { useLocation, useNavigate } from "react-router-dom"; import { Discord, Github, LinkedIn, X } from "../../../Resources/Svg/SVG"; import TechTOnionsLogo from "../../../Resources/images/TechTOnions_Bot.png"; export const Footer = () => { + const {pathname} = useLocation(); + const navigate = useNavigate(); return (
-
-
+
+
-
-
-
Navigation
-
Home
-
About
-
Status
-
Dashboard
+
+
{navigate('/login/home')}} className={`${pathname=='/login/home'?'text-white font-medium':'text-gray-400' } transition-all cursor-pointer hover:font-medium hover:text-white hover:transition-all`}>Home
+
{navigate('/login/about-us')}} className={`${pathname=='/login/about-us'?'text-white font-medium':'text-gray-400' } transition-all cursor-pointer hover:font-medium hover:text-white hover:transition-all`}>About us
+
{navigate('/login/contact-us')}} className={`${pathname=='/login/contact-us'?'text-white font-medium':'text-gray-400' } transition-all cursor-pointer hover:font-medium hover:text-white hover:transition-all`}>Contact us
+
{window.location.assign(`${import.meta.env.VITE_GITHUB_URI}`)}} className="text-red-400 cursor-pointer">Contribute
-
-
Navigation
-
Home
-
About
-
Status
-
Dashboard
-
-
-
Navigation
-
Home
-
About
-
Status
-
Dashboard
-
-
-
+