From ca45e8a22560656bf1aee90377db552b96d82996 Mon Sep 17 00:00:00 2001 From: Vadym Bavorovskyi Date: Wed, 6 Mar 2024 17:06:43 +0200 Subject: [PATCH] switch game to quiz --- src/components/header/header.scss | 2 +- src/{constants => functions}/shuffleArray.ts | 0 src/pages/memorization.page/quiz/quiz.scss | 4 +--- src/pages/memorization.page/quiz/quiz.tsx | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) rename src/{constants => functions}/shuffleArray.ts (100%) diff --git a/src/components/header/header.scss b/src/components/header/header.scss index f9dd253..e772eb8 100644 --- a/src/components/header/header.scss +++ b/src/components/header/header.scss @@ -3,7 +3,7 @@ .header { border-bottom: 0.5px solid $divider-color; - margin: 8px; + margin: 0 8px 8px 8px; &__logo { font-size: 14px; diff --git a/src/constants/shuffleArray.ts b/src/functions/shuffleArray.ts similarity index 100% rename from src/constants/shuffleArray.ts rename to src/functions/shuffleArray.ts diff --git a/src/pages/memorization.page/quiz/quiz.scss b/src/pages/memorization.page/quiz/quiz.scss index d1f1327..297dd84 100644 --- a/src/pages/memorization.page/quiz/quiz.scss +++ b/src/pages/memorization.page/quiz/quiz.scss @@ -1,8 +1,6 @@ @import '../../../style/utils.scss'; .quiz { - position: relative; - &__article { width: 100%; max-width: 450px; @@ -79,7 +77,7 @@ .result { position: absolute; - top: 10px; + top: 0; left: 0; right: 0; bottom: 0; diff --git a/src/pages/memorization.page/quiz/quiz.tsx b/src/pages/memorization.page/quiz/quiz.tsx index 61e06a3..622cfd1 100644 --- a/src/pages/memorization.page/quiz/quiz.tsx +++ b/src/pages/memorization.page/quiz/quiz.tsx @@ -4,7 +4,7 @@ import { useNavigate, useParams } from "react-router-dom"; import { RootState } from "../../../store/store"; import classNames from "classnames"; -import { shuffleArray } from "../../../constants/shuffleArray"; +import { shuffleArray } from "../../../functions/shuffleArray"; import { COUNT_OPTINALS, COUNT_TASKS } from "../../../constants/game"; import { NotFoundPage } from "../../not.found.page";