diff --git a/src/pages/DesignPage/DesignFilling.tsx b/src/pages/DesignPage/DesignFilling.tsx index 9c4e702c..df0c1173 100644 --- a/src/pages/DesignPage/DesignFilling.tsx +++ b/src/pages/DesignPage/DesignFilling.tsx @@ -105,12 +105,12 @@ export const DesignFilling = ({ @@ -118,63 +118,79 @@ export const DesignFilling = ({ - - - updateQuiz(quiz?.id, (quiz) => { - quiz.config.design = false; - quiz.config.theme = name; - }) - } - /> - - updateQuiz(quiz?.id, (quiz) => { - quiz.config.design = false; - quiz.config.theme = name; - }) - } - /> - - - - - - - updateQuiz(quiz?.id, (quiz) => { - quiz.config.design = true; - quiz.config.theme = name; - }) - } - /> - - updateQuiz(quiz?.id, (quiz) => { - quiz.config.design = true; - quiz.config.theme = name; - }) - } - /> + + + + updateQuiz(quiz?.id, (quiz) => { + quiz.config.design = false; + quiz.config.theme = name; + }) + } + /> + + updateQuiz(quiz?.id, (quiz) => { + quiz.config.design = false; + quiz.config.theme = name; + }) + } + /> + + + + + + + updateQuiz(quiz?.id, (quiz) => { + quiz.config.design = true; + quiz.config.theme = name; + }) + } + /> + + updateQuiz(quiz?.id, (quiz) => { + quiz.config.design = true; + quiz.config.theme = name; + }) + } + /> + diff --git a/src/pages/DesignPage/DesignPage.tsx b/src/pages/DesignPage/DesignPage.tsx index 23aaa5ea..f73e20dc 100644 --- a/src/pages/DesignPage/DesignPage.tsx +++ b/src/pages/DesignPage/DesignPage.tsx @@ -3,10 +3,8 @@ import { Box, useMediaQuery, useTheme, Skeleton } from "@mui/material"; import { setQuizes, setCurrentStep } from "@root/quizes/actions"; import { useCurrentQuiz } from "@root/quizes/hooks"; import { useQuizStore } from "@root/quizes/store"; -import Sidebar from "@ui_kit/Sidebar/Sidebar"; import { useEffect, useState } from "react"; import { useNavigate } from "react-router-dom"; -import { SidebarMobile } from "../../ui_kit/Sidebar/SidebarMobile"; import { cleanQuestions, setQuestions } from "@root/questions/actions"; import { updateModalInfoWhyCantCreate, @@ -17,7 +15,6 @@ import { questionApi } from "@api/question"; import { useUiTools } from "@root/uiTools/store"; import { ConfirmLeaveModal } from "../startPage/ConfirmLeaveModal"; -import { Header } from "@ui_kit/Header/Header"; import { DesignFilling } from "./DesignFilling"; import { createPortal } from "react-dom"; import QuizPreview from "@ui_kit/QuizPreview/QuizPreview"; diff --git a/src/pages/InstallQuiz/InstallQuiz.tsx b/src/pages/InstallQuiz/InstallQuiz.tsx index b4ba07dd..d63f3257 100644 --- a/src/pages/InstallQuiz/InstallQuiz.tsx +++ b/src/pages/InstallQuiz/InstallQuiz.tsx @@ -1,22 +1,23 @@ import React, { useState } from "react"; import { - Box, - Button, - ButtonBase, - FormControl, - IconButton, - InputAdornment, - Link, - MenuItem, - Modal, - OutlinedInput, - Paper, - Select, - SelectChangeEvent, - TextField, - Typography, - Tooltip, - useTheme, useMediaQuery, + Box, + Button, + ButtonBase, + FormControl, + IconButton, + InputAdornment, + Link, + MenuItem, + Modal, + OutlinedInput, + Paper, + Select, + SelectChangeEvent, + TextField, + Typography, + Tooltip, + useTheme, + useMediaQuery, } from "@mui/material"; import LinkIcon from "../../assets/icons/LinkIcon"; import InfoIcon from "../../assets/icons/InfoIcon"; @@ -41,7 +42,11 @@ import InBodyInstall from "./InBodyInstall"; import AutoOpenInstall from "./AutoOpenInstall"; import VidjetInstall from "./VidjetInstall"; import InstallQzCode from "./InstallQzCode"; -import {decrementCurrentStep, incrementCurrentStep, updateQuiz} from "@root/quizes/actions"; +import { + decrementCurrentStep, + incrementCurrentStep, + updateQuiz, +} from "@root/quizes/actions"; import { useCurrentQuiz } from "@root/quizes/hooks"; import { useDomainDefine } from "@utils/hooks/useDomainDefine"; import NumberTwo from "@icons/NumberTwo"; @@ -56,7 +61,6 @@ export default function InstallQuiz() { setDisplay(event.target.value); }; - const [openVk, setOpenVk] = React.useState(false); const [stepState, setStepState] = React.useState("step1"); const handleOpenVk = () => setOpenVk(true); @@ -70,6 +74,7 @@ export default function InstallQuiz() { const theme = useTheme(); const isMobile = useMediaQuery(theme.breakpoints.down(600)); + const isSmallMonitor = useMediaQuery(theme.breakpoints.down(1065)); const CopyLink = () => { let one = document.getElementById("inputLinkone").value; let text = document.getElementById("inputLink").value; @@ -101,16 +106,22 @@ export default function InstallQuiz() { "0px 100px 309px rgba(210, 208, 225, 0.24), 0px 41.7776px 129.093px rgba(210, 208, 225, 0.172525), 0px 22.3363px 69.0192px rgba(210, 208, 225, 0.143066), 0px 12.5216px 38.6916px rgba(210, 208, 225, 0.12), 0px 6.6501px 20.5488px rgba(210, 208, 225, 0.0969343), 0px 2.76726px 8.55082px rgba(210, 208, 225, 0.0674749)", }} > - - - - Ссылка на quiz + + + + Ссылка на quiz - {/* - + - Установка квизов на сайте + Установка quiz на сайте { @@ -382,9 +400,9 @@ export default function InstallQuiz() { gap: "20px", }} > - 1. Код вставки опросника + 1. Код вставки quiz - Установите код в то место, где должен быть опросник + Установите код в то место, где должен быть quiz