Skip to content

Commit

Permalink
Merge pull request #239 from abhayybhatt/fix/navbar-shop-menu-partial…
Browse files Browse the repository at this point in the history
…-visibility

Fixed Partial Shop Navbar section's Visibility and removed obsolete Navbar links
  • Loading branch information
Mujtabaa07 authored Jan 7, 2025
2 parents ec363d7 + 70b18c3 commit b539b8d
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions src/componets/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const RightNav = styled(motion.div)`
padding: 1rem 2rem;
position: fixed;
top: 0px;
left: 40vw;
left: 35vw; //Now the Shop section is completely visible at the top-right section of Navbar.
right: 0;
z-index: 1000;
transition: all 0.3s ease;
Expand Down Expand Up @@ -408,25 +408,7 @@ function Navbar() {
</DropdownMenu>
</ShopLink>

<NavLink className={location.pathname === "/about" ? "active" : ""} whileHover={{ scale: 1.05 }}>
<Link to="/about">About</Link>
</NavLink>

<NavLink className={location.pathname === "/testimonial" ? "active" : ""} whileHover={{ scale: 1.05 }}>
<Link to="/testimonial">Testimonial</Link>
</NavLink>

<NavLink className={location.pathname === "/premiumbeans" ? "active" : ""} whileHover={{ scale: 1.05 }}>
<Link to="/premiumbeans">Premium Beans</Link>
</NavLink>

<NavLink className={location.pathname === "/expertbaristas" ? "active" : ""} whileHover={{ scale: 1.05 }}>
<Link to="/expertbaristas">Expert Baristas</Link>
</NavLink>

<NavLink className={location.pathname === "/contact" ? "active" : ""} whileHover={{ scale: 1.05 }}>
<Link to="/contact">Contact</Link>
</NavLink>
{/* removed unnecessary links that were already hidden and obsolete. */}

{isLoggedIn ? (
<>
Expand Down

0 comments on commit b539b8d

Please sign in to comment.