diff --git a/src/Components/Navbar/Navbar.tsx b/src/Components/Navbar/Navbar.tsx index 020b21b..f08548e 100644 --- a/src/Components/Navbar/Navbar.tsx +++ b/src/Components/Navbar/Navbar.tsx @@ -19,11 +19,16 @@ export default () => { // Replace javascript:void(0) path with your path const navigation = [ - { title: "Services", path: "#Services" }, - { title: "Results", path: "#Results" }, - { title: "Contact", path: "#Contact" }, + { title: "Services", path: "Services" }, + { title: "Results", path: "Results" }, + { title: "Contact", path: "Contact" }, ]; + const handleNavigation = (path: string) => { + const element = document.getElementById(path); + element?.scrollIntoView({ behavior: "smooth" }); + }; + return (