From b10dbddb5cbdee5a83a3e762263b323cc6fa1113 Mon Sep 17 00:00:00 2001 From: fgrreloaded Date: Sun, 23 Mar 2025 11:35:38 +0530 Subject: [PATCH] Update Navbar component to adjust width and add GitHub link --- .../web/src/app/(home)/_components/Navbar.tsx | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/apps/web/src/app/(home)/_components/Navbar.tsx b/apps/web/src/app/(home)/_components/Navbar.tsx index e9dac02..546f421 100644 --- a/apps/web/src/app/(home)/_components/Navbar.tsx +++ b/apps/web/src/app/(home)/_components/Navbar.tsx @@ -62,7 +62,7 @@ const Navbar = () => {
{ }} > | - + */} + {/* { @@ -131,7 +132,25 @@ const Navbar = () => { }`} > documentation - */} + + */} + { + linkRefs.current.github = ref; + }} + onMouseOver={() => setActiveLink("github")} + onMouseLeave={() => setActiveLink("home")} + className={`text-gray-300 hover:text-blue-300 transition-colors py-2 px-4 rounded-md relative flex gap-2 items-center font-mono ${ + scrolled + ? "sm:opacity-100 sm:translate-y-0" + : "sm:opacity-0 sm:pointer-events-none" + }`} + > + {" "} + github +