added more structure, sass, and page routers
This commit is contained in:
parent
c774dff9e0
commit
bda7b7224a
23 changed files with 767 additions and 158 deletions
27
src/routers/AppRouter.jsx
Normal file
27
src/routers/AppRouter.jsx
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
// AppRouter
|
||||
|
||||
// Development Components
|
||||
import { BrowserRouter, Routes, Route } from "react-router-dom";
|
||||
// Components
|
||||
import Header from "../components/Header";
|
||||
import Footer from "../components/Footer";
|
||||
// Pages
|
||||
import PageHome from "../pages/PageHome";
|
||||
import PageNotFound from "../pages/PageNotFound";
|
||||
|
||||
function AppRouter() {
|
||||
return (
|
||||
<BrowserRouter>
|
||||
<div className="wrapper">
|
||||
<Header />
|
||||
<Routes>
|
||||
<Route path="/" exact element={<PageHome />} />
|
||||
<Route path="*" element={<PageNotFound />} />
|
||||
</Routes>
|
||||
<Footer />
|
||||
</div>
|
||||
</BrowserRouter>
|
||||
);
|
||||
}
|
||||
|
||||
export default AppRouter;
|
||||
Loading…
Add table
Add a link
Reference in a new issue