front: about page

This commit is contained in:
djmil 2023-10-25 09:16:15 +02:00
parent 8056c38ad5
commit 6c46e8fb98
4 changed files with 17 additions and 6 deletions

View File

@ -1,14 +1,11 @@
import './App.css';
import React from 'react'
import {
BrowserRouter,
Routes,
Route,
} from "react-router-dom"
import { BrowserRouter, Routes, Route } from "react-router-dom"
import Header from "./components/Header"
import Leaderboard from "./components/Leaderboard"
import Game from "./components/Game"
import About from "./components/About"
import GameProposal from './components/Game/Proposal'
function App() {
@ -20,6 +17,7 @@ function App() {
<Routes>
<Route path="/leaderboard" element={<Leaderboard/>} />
<Route path="/game" element={<Game/>} />
<Route path="/about" element={<About/>} />
<Route path="/game/proposal" element={<GameProposal/>} />
</Routes>
</div>

View File

@ -0,0 +1,5 @@
.Leaderboard {
display: flex;
justify-content: center;
align-items: center;
}

View File

@ -0,0 +1,9 @@
import React from "react"
import './index.css';
export default function Leaderboard() {
return <div className="About">
A simple american checkers game<br/>
</div>
};

View File

@ -12,7 +12,6 @@ export default function Game() {
// for (const [key, value] of Object.entries(data.games))
// console.log(key, value);
console.log("data.games", data.games)
const waitForYou = data.games
.filter(game => game.status === Status.WaitForYou)
.map(game => {