diff --git a/package.json b/package.json index 4a9cdde..5e94446 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "postcss": "^8.4.47", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-hot-toast": "^2.4.1", + "react-hot-toast": "^2.6.0", "react-icons": "^5.3.0", "react-router-dom": "^6.28.0", "tailwindcss": "^3.4.14" diff --git a/src/App.tsx b/src/App.tsx index f395564..1926e4a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -14,6 +14,8 @@ function App() { return ( + + {!isFullscreen && } @@ -43,6 +45,7 @@ function App() { }} /> + ); } diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 8272f7c..7718aa7 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -18,39 +18,86 @@ const Navbar: React.FC = () => { }`; return ( - - - - - - - - GitHub - Tracker - - + + + {/* Logo Section */} + + + GitHub Tracker + - - Home - Tracker - Contributors - + {/* Desktop Links */} + + + Home + + + Tracker + + + Contributors + + + Login + + + {mode === "dark" ? : } + + - - + {/* Mobile Menu Button */} + + setIsOpen(!isOpen)} + className="relative w-8 h-8 flex flex-col space-y-[5px] items-center group focus:outline-none" + > + + + + + + - + + setIsOpen(false)} > - {mode === "dark" ? : } - - - Login - - - Sign Up + Home