2023-08-13 15:31:47 +02:00
|
|
|
import './App.css';
|
2023-10-18 17:20:37 +02:00
|
|
|
import React from 'react'
|
2023-10-11 13:16:27 +02:00
|
|
|
import {
|
|
|
|
BrowserRouter,
|
2023-10-14 10:43:44 +02:00
|
|
|
Routes,
|
2023-10-11 13:16:27 +02:00
|
|
|
Route,
|
2023-10-18 17:20:37 +02:00
|
|
|
} from "react-router-dom"
|
2023-10-14 10:01:20 +02:00
|
|
|
|
2023-10-18 17:20:37 +02:00
|
|
|
import Header from "./components/Header"
|
|
|
|
import Leaderboard from "./components/Leaderboard"
|
2023-10-20 00:40:05 +02:00
|
|
|
import Game from "./components/Game"
|
2023-10-14 10:01:20 +02:00
|
|
|
|
2023-10-18 17:20:37 +02:00
|
|
|
function App() {
|
2023-08-13 15:31:47 +02:00
|
|
|
|
2023-10-14 10:43:44 +02:00
|
|
|
return <div className="App">
|
|
|
|
<BrowserRouter>
|
2023-10-18 17:20:37 +02:00
|
|
|
<Header/>
|
|
|
|
<div className="Container">
|
|
|
|
<Routes>
|
|
|
|
<Route path="/leaderboard" element={<Leaderboard/>} />
|
2023-10-20 00:40:05 +02:00
|
|
|
<Route path="/game" element={<Game/>} />
|
2023-10-18 17:20:37 +02:00
|
|
|
</Routes>
|
|
|
|
</div>
|
2023-10-14 10:43:44 +02:00
|
|
|
</BrowserRouter>
|
2023-08-13 15:31:47 +02:00
|
|
|
</div>
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|