Skip to content
Merged
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
6 changes: 3 additions & 3 deletions frontend/src/components/Landing/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Navbar = () => {
{ name: "Home", hash: "home" },
{ name: "Feature", hash: "feature" },
{ name: "Tools", hash: "tools" },
{ name: "Privacy", hash: "privacy" },
{ name: "Privacy", path: "/privacy" },
];

useEffect(() => {
Expand Down Expand Up @@ -74,7 +74,7 @@ const Navbar = () => {
{navItems.map((item) => (
<Link
key={item.name}
to={`/#${item.hash}`}
to={item.path || `/#${item.hash}`}
onClick={() => handleDesktopNavClick(item.name)}
className={`relative font-semibold hover:text-purple-600 py-2 px-4 rounded-xl text-lg transition-all duration-300 hover:bg-purple-100 hover:scale-105 ${
activeSection === item.name.toLowerCase()
Expand Down Expand Up @@ -138,7 +138,7 @@ const Navbar = () => {
{navItems.map((item) => (
<Link
key={item.name}
to={`/#${item.hash}`}
to={item.path || `/#${item.hash}`}
onClick={() => handleMobileNavClick(item.name)}
className={`w-full py-3 px-4 rounded-xl text-base font-semibold transition-colors duration-200 hover:bg-purple-100 dark:hover:bg-purple-950 hover:text-purple-600 active:scale-[0.98] ${
activeSection === item.name.toLowerCase()
Expand Down
Loading