diff --git a/src_folder/FrontEnd/app/public/index.html b/src_folder/FrontEnd/app/public/index.html
index 67bde53..f46ea66 100644
--- a/src_folder/FrontEnd/app/public/index.html
+++ b/src_folder/FrontEnd/app/public/index.html
@@ -5,7 +5,9 @@
-
+
+
+
1_2_oder3
diff --git a/src_folder/FrontEnd/app/src/App.css b/src_folder/FrontEnd/app/src/App.css
index 4f3802b..8c2d057 100644
--- a/src_folder/FrontEnd/app/src/App.css
+++ b/src_folder/FrontEnd/app/src/App.css
@@ -2,7 +2,9 @@
.PopUpBackground {
width: 100vw;
height: 100vh;
- background-color: rgba(200, 200, 200, 200);
+ background-color: rgba(255, 255, 255, 0.5);
+ backdrop-filter: blur(10px);
+ background-size: 100%;
position: absolute;
display: flex;
justify-content: center;
@@ -14,9 +16,30 @@
.PopUpContainer {
width: 500px;
- height: 500px;
+ height: 200px;
border-radius: 20px;
- background-color: white;
+ background: linear-gradient(white, white) padding-box,
+ linear-gradient(to right, #a10012 0%, #fba51b 50%, #3b5da4 100%) border-box;
+ border-style: solid;
+ border-width: 5px;
+ border-color: transparent;
+ box-shadow: 5px 5px black;
+}
+
+#Cancel {
+ margin-left: 470px;
+ padding-left: 5px;
+ padding-right: 5px;
+ margin-top: -15px;
+ border-radius: 5px;
+ background: linear-gradient(white, white) padding-box,
+ linear-gradient(to right, #a10012 0%, #fba51b 50%, #3b5da4 100%) border-box;
+ border-style: solid;
+ border-width: 2px;
+ box-shadow: 1px 1px black;
+ border-color: transparent;
+ position: fixed;
+ cursor: pointer;
}
@@ -31,7 +54,7 @@
.HeaderDiv {
margin-left: 50px;
text-align: center;
- max-width: 1000px;
+ max-width: 600px;
width: 100%;
padding: 10px;
box-shadow: 5px 5px black;
@@ -56,15 +79,14 @@
}
#TimerPic {
- visibility: hidden;
}
#Seconds {
- visibility: hidden;
border: solid 2px black;
border-radius: 10px;
padding: 2px;
}
+
#QuestionHeaderDiv {
background-color: white;
border: solid #0C134F 2px;
@@ -76,6 +98,7 @@
#QuestionHeader {
color: #0C134F;
}
+
#QuestionDiv {
background-color: white;
border: solid #0C134F 2px;
@@ -84,6 +107,7 @@
box-shadow: 2px 2px black;
}
+
#Question {
color: black;
}
@@ -102,47 +126,50 @@
cursor: pointer;
}
-#headingimage:hover {
- background-color: #F6F6F6;
-}
.Body{
text-align: center;
}
.Answers {
- padding: 10px;
float: left;
+ padding: 10px;
width: 100%;
- max-width: 1000px;;
- height: 500px;
- margin-left: 80px;
+ max-width: 600px;;
+ height: 300px;
+ margin-left: 110px;
+
+
}
.AnswerBox {
margin-left: 6px;
position: relative;
- height: 500px;
- width: 32%;
+ height: 300px;
+ width: 30%;
float: left;
border: solid 2px;
+ border-radius: 20px;
+ box-shadow: 5px 5px black;
+ background-color: white;;
+
}
#firstans {
- border: solid 2px #a10012;
+ border: solid 5px #a10012;
}
#secondans {
- border: solid 2px #fba51b;
+ border: solid 5px #fba51b;
}
#thirdans {
- border: solid 2px #3b5da4;
+ border: solid 5px #3b5da4;
}
.Buttons {
float: left;
- max-width: 250px;
+ max-width: 220px;
padding-top: 10px;
padding-left: 30px;
}
@@ -159,12 +186,38 @@
cursor: pointer;
}
+#TeamSizeInput {
+ margin-left: 70px;
+ float: left;
+ margin-right: -50px;
+ padding: 7px;
+ border-radius: 6px;
+ font-size: 16px;
+ background: #fbfbfb;
+ border: 2px solid transparent;
+ height: 36px;
+ box-shadow: 0 0 0 1px #dddddd, 0 2px 4px 0 rgb(0 0 0 / 7%), 0 1px 2px 0 rgb(0 0 0 / 5%);
+}
+
+#TeamSizeInput:focus {
+ border: 2px solid #000;
+ border-radius: 4px;
+
+}
+
+#PopUpButton {
+ position: relative;
+ margin-top: 5px;
+ font-size: 16px;
+ background-color: #4CAF50;
+}
+
.ScoreBoard {
float: left;
padding: 10px;
width: 100px;
- height: 500px;
- margin-left: 40px;
+ height: 300px;
+ margin-left: 50px;
background: linear-gradient(white, white) padding-box,
linear-gradient(to right, #a10012 0%, #fba51b 50%, #3b5da4 100%) border-box;
border-style: solid;
@@ -187,8 +240,4 @@
}
-#QuitButton {
- visibility: hidden;
-
-}
diff --git a/src_folder/FrontEnd/app/src/App.js b/src_folder/FrontEnd/app/src/App.js
index fd5566c..170e283 100644
--- a/src_folder/FrontEnd/app/src/App.js
+++ b/src_folder/FrontEnd/app/src/App.js
@@ -2,11 +2,53 @@ import { useEffect, useState} from "react";
import './App.css';
import Header from "./components/Header";
import Body from "./components/Body";
+import question from "./components/Question";
function App() {
+ const [timeLeft, setTimeLeft] = useState(10*1000);
+ const [timerRunning, setTimerRunning] = useState(false);
+ const [questionCount, setQuestionCount] = useState(0);
+ const [teamsize, setTeamSize] = useState(0);
+
+ useEffect(() => {
+ let timer;
+ if (timerRunning && timeLeft > 0) {
+ timer = setTimeout(() => {
+ setTimeLeft(timeLeft-10);
+ }, 10);}
+ else if (timeLeft === 0) {
+ alert("Zeit ist um !");
+ setTimerRunning(false);
+ setTimeLeft(10);
+ }
+ return () => clearTimeout(timer);
+
+ }, [timeLeft, timerRunning]);
+
+ function formatTime(time) {
+ const seconds = Math.floor((time / 1000) % 60).toString().padStart(2, '0');
+ return `${seconds} s`;
+ }
+
+ const startQuestion = () => {
+ if (questionCount <= 5){
+ setQuestionCount(questionCount+1)
+ setTimeLeft(10*1000);
+ setTimerRunning(true);
+ }
+ else {
+ alert("Spiel vorbei !");
+ }
+ }
+
+ const stopTimer = () => {
+ setTimerRunning(false)
+ setTimeLeft(10*1000);
+ }
+
return (<>
-
-