From f7367dbdf297851d99e513eb9fa6606426a9ef07 Mon Sep 17 00:00:00 2001 From: Dmitry220 Date: Fri, 18 Mar 2022 16:39:13 +0300 Subject: [PATCH] quiz page --- src/components/features/quiz/GetOptionTask.js | 38 ++ .../features/quiz/HeaderPageTests.js | 30 ++ src/components/features/quiz/HeaderQuiz.js | 48 +++ src/components/features/quiz/Instructions.js | 48 +++ src/components/features/quiz/MyTestsQuiz.js | 73 ++++ .../features/quiz/ProgressbarQuiz.js | 18 + src/components/features/quiz/Results.js | 0 src/components/features/quiz/Task.js | 152 +++++++ src/components/features/quiz/functions.scss | 45 ++ src/components/features/quiz/quiz.scss | 402 ++++++++++++++++++ src/pages/quiz/InstructionPage.js | 23 + src/pages/quiz/InterjacentPage.js | 24 ++ src/pages/quiz/QuizPage.js | 17 + src/pages/quiz/QuizTestPage.js | 22 + src/pages/quiz/ResultPage.js | 0 src/redux/quizSlice.js | 137 ++++++ 16 files changed, 1077 insertions(+) create mode 100644 src/components/features/quiz/GetOptionTask.js create mode 100644 src/components/features/quiz/HeaderPageTests.js create mode 100644 src/components/features/quiz/HeaderQuiz.js create mode 100644 src/components/features/quiz/Instructions.js create mode 100644 src/components/features/quiz/MyTestsQuiz.js create mode 100644 src/components/features/quiz/ProgressbarQuiz.js create mode 100644 src/components/features/quiz/Results.js create mode 100644 src/components/features/quiz/Task.js create mode 100644 src/components/features/quiz/functions.scss create mode 100644 src/components/features/quiz/quiz.scss create mode 100644 src/pages/quiz/InstructionPage.js create mode 100644 src/pages/quiz/InterjacentPage.js create mode 100644 src/pages/quiz/QuizPage.js create mode 100644 src/pages/quiz/QuizTestPage.js create mode 100644 src/pages/quiz/ResultPage.js create mode 100644 src/redux/quizSlice.js diff --git a/src/components/features/quiz/GetOptionTask.js b/src/components/features/quiz/GetOptionTask.js new file mode 100644 index 00000000..d70f486b --- /dev/null +++ b/src/components/features/quiz/GetOptionTask.js @@ -0,0 +1,38 @@ +import React from 'react'; + +export const GetOptionTask = ({type, answer, handleChange, inputValue}) => { + switch (type) { + case "3": + return ( +
+ + +
+ ) + case "2": + case "4": + return ( +
+ + +
+ ) + case "1": + return ( +
+