diff --git a/webapp/src/components/questionView/QuestionView.css b/webapp/src/components/questionView/QuestionView.css new file mode 100644 index 00000000..d823940f --- /dev/null +++ b/webapp/src/components/questionView/QuestionView.css @@ -0,0 +1,29 @@ +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; +} + +div { + display: grid; + grid-template-columns: repeat(2, 1fr); /* 2 columns */ + grid-template-rows: repeat(2, 1fr); /* 2 rows */ + gap: 10px; /* Adjust the gap between grid items */ +} + +/* Adjust width of child elements */ +div > * { + width: 100%; /* Adjust as needed */ + margin:1em; +} +p{ + text-align: center; +} \ No newline at end of file diff --git a/webapp/src/components/questionView/QuestionView.js b/webapp/src/components/questionView/QuestionView.js index 302a5e35..c939763f 100644 --- a/webapp/src/components/questionView/QuestionView.js +++ b/webapp/src/components/questionView/QuestionView.js @@ -1,7 +1,7 @@ import Question from './Question'; import QuestionGenerator from './QuestionGenerator'; import { useEffect, useState } from 'react'; - +import './QuestionView.css'; function QuestionView(){ const questionGenerator = new QuestionGenerator(); @@ -41,13 +41,15 @@ function QuestionView(){ function QuestionComponent({questions, numQuestion, handleClick}){ return ( -
{questions[numQuestion].getQuestion()}
+Question counter: {numQuestion}