aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/App.js
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-05-01 13:08:40 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-05-01 13:08:40 +0300
commit8aebbb3de3982f0026a9afa9e94f16f6c3710eea (patch)
tree196a368c011f850c93c3cb9827d204eb86fbc368 /frontend/src/App.js
parentsearch endpoint init, fetch all data (#40) (diff)
parentMerge pull request #39 from Nidboj132/main (diff)
downloadlphub-8aebbb3de3982f0026a9afa9e94f16f6c3710eea.tar.gz
lphub-8aebbb3de3982f0026a9afa9e94f16f6c3710eea.tar.bz2
lphub-8aebbb3de3982f0026a9afa9e94f16f6c3710eea.zip
Merge branch 'main' of https://github.com/pektezol/LeastPortals
Diffstat (limited to 'frontend/src/App.js')
-rw-r--r--frontend/src/App.js19
1 files changed, 17 insertions, 2 deletions
diff --git a/frontend/src/App.js b/frontend/src/App.js
index e853b02..26aec98 100644
--- a/frontend/src/App.js
+++ b/frontend/src/App.js
@@ -1,16 +1,31 @@
1import React from 'react'; 1import React from 'react';
2import { BrowserRouter, Routes, Route} from "react-router-dom";
2 3
3import Sidebar from "./components/sidebar.js" 4import Sidebar from "./components/sidebar.js"
5import Main from "./components/main.js"
4import "./App.css"; 6import "./App.css";
5import "./fonts/D-DIN.otf"
6 7
7 8
8 9
9export default function App() { 10export default function App() {
10 11
11 return ( 12 return (
12 <> 13 <>
14 <BrowserRouter>
13 <Sidebar/> 15 <Sidebar/>
16 <Routes>
17 <Route index element={<Main text="Homepage"/>}></Route>
18 <Route path="/news" element={<Main text="News"/>}></Route>
19 <Route path="/records" element={<Main text="Records"/>}></Route>
20 <Route path="/leaderboards" element={<Main text="Leaderboards"/>}></Route>
21 <Route path="/discussions" element={<Main text="Discussion"/>}></Route>
22 <Route path="/scorelog" element={<Main text="Score logs"/>}></Route>
23 <Route path="/profile" element={<Main text="Profile"/>}></Route>
24 <Route path="/rules" element={<Main text="Rules"/>}></Route>
25 <Route path="/about" element={<Main text="About"/>}></Route>
26 <Route path="*" element={<Main text="404"/>}></Route>
27 </Routes>
28 </BrowserRouter>
14 </> 29 </>
15 ) 30 )
16} \ No newline at end of file 31} \ No newline at end of file