diff --git a/webapp/src/App.js b/webapp/src/App.js index 6c402cbf..29e0f7fe 100644 --- a/webapp/src/App.js +++ b/webapp/src/App.js @@ -2,9 +2,9 @@ import React from 'react'; import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom'; import Container from '@mui/material/Container'; import QuestionView from './components/questionView/QuestionView'; -import GameMenu from './components/GameMenu'; +import GameMenu from './components/GameMenu/GameMenu'; import Navbar from './components/fragments/NavBar'; -import Home from './components/home/Home'; +import Home from './components/Home/Home'; import Login from './components/loginAndRegistration/Login'; import AddUser from './components/loginAndRegistration/AddUser'; import Instructions from './components/Instructions'; diff --git a/webapp/src/components/GameMenu/GameMenu.css b/webapp/src/components/GameMenu/GameMenu.css index 6d193db1..db52042c 100644 --- a/webapp/src/components/GameMenu/GameMenu.css +++ b/webapp/src/components/GameMenu/GameMenu.css @@ -1,22 +1,22 @@ -button{ - width: 100%; - height: 45px; - background: darkblue; - border: none; - outline: none; - border-radius: 40px; - box-shadow: 0 0 10px black; - cursor:pointer; - font-size: 16px; - color: white; - font-weight: 700; - margin: 0.5em; - } +.menuButton { + width: 40%; + height: 45px; + background: darkblue; + border: none; + outline: none; + border-radius: 40px; + box-shadow: 0 0 10px black; + cursor:pointer; + font-size: 16px; + color: white; + font-weight: 700; + margin: 0.5em; +} -div{ - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - height: 100vh; +.divMenu { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + height: 100vh; } \ No newline at end of file diff --git a/webapp/src/components/GameMenu/GameMenu.js b/webapp/src/components/GameMenu/GameMenu.js index 587c6453..c5b1169d 100644 --- a/webapp/src/components/GameMenu/GameMenu.js +++ b/webapp/src/components/GameMenu/GameMenu.js @@ -1,8 +1,10 @@ import './GameMenu.css'; +import { Link } from "react-router-dom"; +import QuestionView from '../questionView/QuestionView'; export default function GameMenu() { return ( -
{questions[numQuestion].getQuestion()}
-Question counter: {numQuestion}
-Question counter: {numQuestion}
+