Skip to content

Commit 1f47b7c

Browse files
Merge pull request #167 from aditiraj2006/main
FIXED Bug Report: Navbar is missing on mobile view
2 parents b59fd71 + abee44c commit 1f47b7c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/Navbar.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@ const Navbar: React.FC = () => {
6868
className="relative w-8 h-8 flex flex-col space-y-[5px] items-center group focus:outline-none"
6969
>
7070
<span
71-
className={`block h-[3px] w-full bg-white rounded-lg transition-transform duration-300 ${
71+
className={`block h-[3px] w-full bg-black dark:bg-white rounded-lg transition-transform duration-300 ${
7272
isOpen ? "rotate-45 translate-y-2" : ""
7373
}`}
7474
></span>
7575
<span
76-
className={`block h-[3px] w-full bg-white rounded-lg transition-opacity duration-300 ${
76+
className={`block h-[3px] w-full bg-black dark:bg-white rounded-lg transition-opacity duration-300 ${
7777
isOpen ? "opacity-0" : ""
7878
}`}
7979
></span>
8080
<span
81-
className={`block h-[3px] w-full bg-white rounded-lg transition-transform duration-300 ${
81+
className={`block h-[3px] w-full bg-black dark:bg-white rounded-lg transition-transform duration-300 ${
8282
isOpen ? "-rotate-45 -translate-y-2" : ""
8383
}`}
8484
></span>
@@ -88,10 +88,10 @@ const Navbar: React.FC = () => {
8888

8989
{/* Mobile Links */}
9090
{isOpen && (
91-
<div className="md:hidden bg-gray-800">
91+
<div className="md:hidden bg-white dark:bg-gray-800 text-black dark:text-white">
9292
<div className="space-y-4 px-6 py-4">
9393
<Link
94-
to="/home"
94+
to="/"
9595
className="block text-lg font-medium hover:text-gray-300 transition-all px-2 py-1 border border-transparent hover:border-gray-400 rounded"
9696
onClick={() => setIsOpen(false)}
9797
>

0 commit comments

Comments
 (0)