-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,33 @@ | ||
import { BrowserRouter as Router, Route, Routes } from "react-router-dom" | ||
import Home from "./Components/Home" | ||
import About from "./Components/About" | ||
import Services from "./Components/Services" | ||
import ContactUs from "./Components/ContactUs" | ||
import Header from "./Components/Header" | ||
import Template1 from "./Components/Template1" | ||
import Template2 from "./Components/Tempelate2" | ||
import Footer from "./Components/Footer" | ||
function App() { | ||
|
||
import { BrowserRouter as Router, Route, Routes, Navigate } from "react-router-dom"; | ||
import Home from "./Components/Home"; | ||
import About from "./Components/About"; | ||
import Services from "./Components/Services"; | ||
import ContactUs from "./Components/ContactUs"; | ||
import Header from "./Components/Header"; | ||
import Template1 from "./Components/Template1"; | ||
import Template2 from "./Components/Tempelate2"; | ||
import Footer from "./Components/Footer"; | ||
|
||
function App() { | ||
return ( | ||
<Router> | ||
<Header /> | ||
|
||
<Header /> | ||
<Routes> | ||
<Route path="/resume-builder/" element= {<Home />} /> | ||
<Route path="/about" element= {<About />} /> | ||
<Route path="/services" element= {<Services />} /> | ||
<Route path="/contact" element= {<ContactUs />} /> | ||
<Route path="/template1" element= {<Template1 />} /> | ||
<Route path="/template2" element= {<Template2 />} /> | ||
<Route path="/resume-builder" element={<Home />} /> | ||
<Route path="/about" element={<About />} /> | ||
<Route path="/services" element={<Services />} /> | ||
<Route path="/contact" element={<ContactUs />} /> | ||
<Route path="/template1" element={<Template1 />} /> | ||
<Route path="/template2" element={<Template2 />} /> | ||
{/* The following route will match exactly "/resume-builder" */} | ||
<Route | ||
path="/" | ||
element={<Navigate to="/resume-builder" replace />} | ||
/> | ||
</Routes> | ||
<Footer /> | ||
</Router> | ||
) | ||
); | ||
} | ||
|
||
export default App | ||
export default App; |