diff --git a/src/App.jsx b/src/App.jsx index a2c72a4..5bc9bc1 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,8 +1,9 @@ -import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; +import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom'; import { useEffect } from 'react'; import { useLocation } from 'react-router-dom'; import Layout from './components/Layout'; +// Home component is no longer used as index, redirected to About import Home from './pages/Home'; import About from './pages/About'; import ServiceDetail from './pages/ServiceDetail'; @@ -28,7 +29,7 @@ function App() { }> - } /> + } /> } /> } /> } /> diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx index 8668f66..69f7df8 100644 --- a/src/components/Navbar.jsx +++ b/src/components/Navbar.jsx @@ -11,7 +11,7 @@ const Navbar = () => { return (