-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.jsx
69 lines (63 loc) · 1.34 KB
/
App.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import { createBrowserRouter, Outlet, RouterProvider } from "react-router-dom";
import Home from "./pages/Home"
import About from "./pages/About"
import Contacts from "./pages/Contacts"
import Partners from "./pages/Partners"
import Results from "./pages/Results"
import Navbar from "./components/Navbar";
import Footer from "./components/Footer";
import Login from "./pages/Login";
import SignUp from "./pages/SignUp";
function App() {
const Layout = () => {
return (
<div className="app">
<Navbar />
<Outlet />
<Footer />
</div>
);
};
const router = createBrowserRouter([
{
path: "/",
element: <Layout />,
children: [
{
path: "/",
element: <Home />,
},
{
path: "/about",
element: <About />,
},
{
path: "/partners",
element: <Partners />,
},
{
path: "/results",
element: <Results />,
},
{
path: "/contacts",
element: <Contacts />,
},
{
path: "/login",
element: <Login />,
},
{
path: "/signup",
element: <SignUp />,
},
],
},
]);
return (
<>
<RouterProvider router={router} />
</>
)
}
export default App