Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Loader from "@/components/Loader";
import ScrollToTop from "@/components/ScrollToTop";

const navLinks = [
{ name: "Home", path: "/" },
{ name: "About Us", path: "/about-us" },
{ name: "Our Team", path: "/teams" },
{ name: "Gallery", path: "/gallery" },
Expand Down
10 changes: 4 additions & 6 deletions src/components/Navbar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ function Navbar({ links }) {

return (
<nav
className={`shadow-md w-full flex xs:flex-col md:flex-row ${isOpen ? "xs:h-screen" : ""} md:h-full justify-between items-center pr-6 bg-secondary-dark relative z-50`}
className={`shadow-md w-full flex xs:flex-col md:flex-row ${
isOpen ? "xs:h-screen" : ""
} md:h-full justify-between items-center pr-6 bg-secondary-dark relative z-50`}
>
<div className="flex flex-row justify-between xs:w-full md:w-auto items-center">
<Link
Expand Down Expand Up @@ -62,11 +64,7 @@ function Navbar({ links }) {
</Link>
<span
className={`block group-hover:max-w-full transition-all duration-500 h-0.5 bg-primary rounded ${
location.pathname
.toLowerCase()
.includes(link.path.toLowerCase())
? "w-full"
: "max-w-0"
location.pathname === link.path ? "w-full" : "max-w-0"
}`}
/>
</li>
Expand Down
Loading