mirror of
https://github.com/its-michaelroy/Deep-Impact.git
synced 2026-06-04 10:20:41 +00:00
add: boilerplate w/ navbar, tailwindcss
This commit is contained in:
29
frontend/src/router.jsx
Normal file
29
frontend/src/router.jsx
Normal file
@@ -0,0 +1,29 @@
|
||||
// router.jsx
|
||||
import { createBrowserRouter } from "react-router-dom";
|
||||
import App from "./App";
|
||||
import Main from "./pages/main";
|
||||
import Scenario from "./pages/scenario";
|
||||
import About from "./pages/about";
|
||||
const router = createBrowserRouter([
|
||||
{
|
||||
path: "/",
|
||||
element: <App />,
|
||||
children: [
|
||||
{
|
||||
index: true,
|
||||
element: <Main />,
|
||||
},
|
||||
{
|
||||
path: 'scenario/',
|
||||
element: <Scenario />
|
||||
},
|
||||
{
|
||||
path: 'about/',
|
||||
element: <About />
|
||||
}
|
||||
|
||||
],
|
||||
},
|
||||
]);
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user