diff --git a/src/pages/Quiz/Question.module.scss b/src/pages/Quiz/Question.module.scss new file mode 100644 index 0000000..87cb1f2 --- /dev/null +++ b/src/pages/Quiz/Question.module.scss @@ -0,0 +1,40 @@ +section { + + .questionHolder { + display: flex; + flex-direction: column; + align-items: center; + justify-content: space-between; + text-align: center; + color: white; + width: 90%; + margin: 0 auto; + height: 27vh; + background-image: url("../../assets/icons/desktop-particles.svg"); + background-position: center; + background-repeat: no-repeat; + background-size: 150% 150%; + + .questionNumber { + font-size: 1.3rem; + font-weight: 600; + } + .question { + font-size: 1.8rem; + font-weight: 300; + } + + .quizTimer { + .border { + width: 6rem; + height: 6rem; + border-radius: 50%; + border: 0.2rem solid #6BD534; + .time { + margin-top: 1.8rem; + font-size: 1.4rem; + } + } + } + } +} \ No newline at end of file diff --git a/src/pages/Quiz/Question.tsx b/src/pages/Quiz/Question.tsx new file mode 100644 index 0000000..ba82d32 --- /dev/null +++ b/src/pages/Quiz/Question.tsx @@ -0,0 +1,33 @@ +import { useState } from "react"; +import styles from "./Question.module.scss"; + + +interface OwnProp { + questionNumber: number; + question: string; + timeLimit: number; +} + +const Question: React.FC = (props) => { + + return ( +
+
+ +
Question {props.questionNumber}
+ +
+ {props.question} +
+ +
+
+
01:00
+
+
+
+
+ ); +} + +export default Question; \ No newline at end of file diff --git a/src/pages/Quiz/Quiz.module.scss b/src/pages/Quiz/Quiz.module.scss index 0dfa8be..3524df2 100644 --- a/src/pages/Quiz/Quiz.module.scss +++ b/src/pages/Quiz/Quiz.module.scss @@ -44,43 +44,43 @@ } } - .questionHolder { - display: flex; - flex-direction: column; - align-items: center; - justify-content: space-between; - text-align: center; - color: white; - width: 90%; - margin: 0 auto; - height: 27vh; - background-image: url("../../assets/icons/desktop-particles.svg"); - background-position: center; - background-repeat: no-repeat; - background-size: 150% 150%; + // .questionHolder { + // display: flex; + // flex-direction: column; + // align-items: center; + // justify-content: space-between; + // text-align: center; + // color: white; + // width: 90%; + // margin: 0 auto; + // height: 27vh; + // background-image: url("../../assets/icons/desktop-particles.svg"); + // background-position: center; + // background-repeat: no-repeat; + // background-size: 150% 150%; - .questionNumber { - font-size: 1.3rem; - font-weight: 600; - } - .question { - font-size: 1.8rem; - font-weight: 300; - } + // .questionNumber { + // font-size: 1.3rem; + // font-weight: 600; + // } + // .question { + // font-size: 1.8rem; + // font-weight: 300; + // } - .quizTimer { - .border { - width: 6rem; - height: 6rem; - border-radius: 50%; - border: 0.2rem solid #6BD534; - .time { - margin-top: 1.8rem; - font-size: 1.4rem; - } - } - } - } + // .quizTimer { + // .border { + // width: 6rem; + // height: 6rem; + // border-radius: 50%; + // border: 0.2rem solid #6BD534; + // .time { + // margin-top: 1.8rem; + // font-size: 1.4rem; + // } + // } + // } + // } } .quizOptions { diff --git a/src/pages/Quiz/Quiz.tsx b/src/pages/Quiz/Quiz.tsx index bf9d195..a991b9b 100644 --- a/src/pages/Quiz/Quiz.tsx +++ b/src/pages/Quiz/Quiz.tsx @@ -5,6 +5,7 @@ import Options from './Options'; import { closeOutline } from 'ionicons/icons' import { Link } from 'react-router-dom'; import { useState } from 'react'; +import Question from './Question'; const options: string[] = [ @@ -33,20 +34,9 @@ const Quiz: React.FC = () => { -
- -
Question 01
- -
- How would you correctly display, “Hello, how are you?”? -
- -
-
-
01:00
-
-
-
+