2023-03-15 22:56:53 +00:00
|
|
|
|
import React from "react";
|
2023-04-15 09:10:59 +00:00
|
|
|
|
import Stepper from "@ui_kit/Stepper";
|
|
|
|
|
import { Box, Button, IconButton, Typography, Paper, useTheme } from "@mui/material";
|
|
|
|
|
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
|
2023-03-15 22:56:53 +00:00
|
|
|
|
import CustomTextField from "@ui_kit/CustomTextField";
|
2023-05-03 19:21:00 +00:00
|
|
|
|
import OneIcon from "../../assets/icons/questionsPage/OneIcon";
|
|
|
|
|
import PointsIcon from "../../assets/icons/questionsPage/PointsIcon";
|
|
|
|
|
import AddPlus from "../../assets/icons/questionsPage/addPlus";
|
|
|
|
|
import ArrowLeft from "../../assets/icons/questionsPage/arrowLeft";
|
2023-03-15 22:56:53 +00:00
|
|
|
|
import TypeQuestions from "./TypeQuestions";
|
|
|
|
|
import AnswerOptions from "./answerOptions/AnswerOptions";
|
2023-03-30 18:39:59 +00:00
|
|
|
|
import OptionsPicture from "./OptionsPicture/OptionsPicture";
|
|
|
|
|
import OptionsAndPicture from "./OptionsAndPicture/OptionsAndPicture";
|
2023-03-31 15:48:49 +00:00
|
|
|
|
import Emoji from "./Emoji/Emoji";
|
|
|
|
|
import OwnTextField from "./OwnTextField/OwnTextField";
|
|
|
|
|
import DropDown from "./DropDown/DropDown";
|
|
|
|
|
import DataOptions from "./DataOptions/DataOptions";
|
|
|
|
|
import SliderOptions from "./SliderOptions/SliderOptions";
|
|
|
|
|
import UploadFile from "./UploadFile/UploadFile";
|
|
|
|
|
import PageOptions from "./PageOptions/PageOptions";
|
|
|
|
|
import RatingOptions from "./RatingOptions/RatingOptions";
|
2023-03-15 22:56:53 +00:00
|
|
|
|
|
|
|
|
|
export default function QuestionsPage() {
|
2023-04-15 09:10:59 +00:00
|
|
|
|
const [activeStep, setActiveStep] = React.useState(1);
|
2023-03-15 22:56:53 +00:00
|
|
|
|
|
2023-04-15 09:10:59 +00:00
|
|
|
|
const handleNext = () => {
|
|
|
|
|
setActiveStep((prevActiveStep) => prevActiveStep + 1);
|
|
|
|
|
};
|
2023-03-15 22:56:53 +00:00
|
|
|
|
|
2023-04-15 09:10:59 +00:00
|
|
|
|
const handleBack = () => {
|
|
|
|
|
setActiveStep((prevActiveStep) => prevActiveStep - 1);
|
|
|
|
|
};
|
2023-03-15 22:56:53 +00:00
|
|
|
|
|
2023-04-15 09:10:59 +00:00
|
|
|
|
const theme = useTheme();
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
<Stepper activeStep={activeStep} desc={"Задайте вопросы"} />
|
|
|
|
|
<Typography>Заголовок квиза</Typography>
|
|
|
|
|
<Paper sx={{ maxWidth: "796px", width: "100%", borderRadius: "12px", margin: "20px 0" }}>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{ width: "100%", maxWidth: "760px", display: "flex", alignItems: "center", gap: "10px", padding: "20px" }}
|
|
|
|
|
>
|
|
|
|
|
<CustomTextField placeholder="Заголовок вопроса" text={""} />
|
|
|
|
|
<IconButton>
|
|
|
|
|
{" "}
|
|
|
|
|
<ExpandMoreIcon />{" "}
|
|
|
|
|
</IconButton>
|
|
|
|
|
<OneIcon />
|
|
|
|
|
<PointsIcon />
|
|
|
|
|
</Box>
|
2023-03-15 22:56:53 +00:00
|
|
|
|
|
2023-04-15 09:10:59 +00:00
|
|
|
|
<Paper sx={{ display: "flex", flexDirection: "column", padding: 0, borderRadius: "12px" }}>
|
|
|
|
|
<TypeQuestions />
|
|
|
|
|
<AnswerOptions />
|
|
|
|
|
<OptionsPicture />
|
|
|
|
|
<OptionsAndPicture />
|
|
|
|
|
<Emoji />
|
|
|
|
|
<OwnTextField />
|
|
|
|
|
<DropDown />
|
|
|
|
|
<DataOptions />
|
|
|
|
|
<SliderOptions />
|
|
|
|
|
<UploadFile />
|
|
|
|
|
<PageOptions />
|
|
|
|
|
<RatingOptions />
|
|
|
|
|
</Paper>
|
|
|
|
|
</Paper>
|
|
|
|
|
<Box sx={{ display: "flex", justifyContent: "space-between", maxWidth: "796px" }}>
|
|
|
|
|
<IconButton>
|
|
|
|
|
<AddPlus />
|
|
|
|
|
</IconButton>
|
|
|
|
|
<Box sx={{ display: "flex", gap: "8px" }}>
|
|
|
|
|
<Button variant="outlined" sx={{ padding: "10px 20px", borderRadius: "8px" }}>
|
|
|
|
|
<ArrowLeft />
|
|
|
|
|
</Button>
|
|
|
|
|
<Button
|
|
|
|
|
variant="contained"
|
|
|
|
|
sx={{
|
|
|
|
|
padding: "10px 20px",
|
|
|
|
|
borderRadius: "8px",
|
|
|
|
|
background: theme.palette.brightPurple.main,
|
|
|
|
|
fontSize: "18px",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Следующий шаг
|
|
|
|
|
</Button>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|
}
|