2023-12-18 11:33:51 +00:00
|
|
|
|
import { Box, Button, ButtonBase, Link, Paper, Typography, useMediaQuery, useTheme } from "@mui/material";
|
2023-12-13 20:36:17 +00:00
|
|
|
|
import { useCurrentQuiz } from "@root/quizes/hooks";
|
|
|
|
|
import YoutubeEmbedIframe from "../../ui_kit/StartPagePreview/YoutubeEmbedIframe";
|
|
|
|
|
import { QuizStartpageAlignType, QuizStartpageType } from "@model/quizSettings";
|
|
|
|
|
import { notReachable } from "../../utils/notReachable";
|
|
|
|
|
import { useUADevice } from "../../utils/hooks/useUADevice";
|
2023-12-18 11:33:51 +00:00
|
|
|
|
import { NameplateLogo } from "@icons/NameplateLogo";
|
2023-12-25 23:46:28 +00:00
|
|
|
|
import {modes} from "../../utils/themes/Publication/themePublication";
|
2023-11-30 17:39:57 +00:00
|
|
|
|
|
2023-12-13 23:50:39 +00:00
|
|
|
|
interface Props {
|
2023-12-18 11:33:51 +00:00
|
|
|
|
setVisualStartPage: (a: boolean) => void;
|
2023-12-13 23:50:39 +00:00
|
|
|
|
}
|
|
|
|
|
|
2023-12-18 11:33:51 +00:00
|
|
|
|
export const StartPageViewPublication = ({ setVisualStartPage }: Props) => {
|
2023-12-13 20:36:17 +00:00
|
|
|
|
const theme = useTheme();
|
|
|
|
|
const quiz = useCurrentQuiz();
|
2023-12-25 23:46:28 +00:00
|
|
|
|
const mode = modes;
|
2023-12-13 20:36:17 +00:00
|
|
|
|
const { isMobileDevice } = useUADevice();
|
2023-12-27 18:52:05 +00:00
|
|
|
|
const isMobile = useMediaQuery(theme.breakpoints.down(650));
|
2023-11-30 17:39:57 +00:00
|
|
|
|
|
2023-12-13 20:36:17 +00:00
|
|
|
|
if (!quiz) return null;
|
2023-11-30 17:39:57 +00:00
|
|
|
|
|
2023-12-20 21:56:14 +00:00
|
|
|
|
console.log(quiz);
|
|
|
|
|
|
2023-12-13 20:36:17 +00:00
|
|
|
|
const handleCopyNumber = () => {
|
|
|
|
|
navigator.clipboard.writeText(quiz.config.info.phonenumber);
|
|
|
|
|
};
|
2023-11-30 17:39:57 +00:00
|
|
|
|
|
2023-12-18 11:33:51 +00:00
|
|
|
|
const background =
|
|
|
|
|
quiz.config.startpage.background.type === "image" ? (
|
|
|
|
|
quiz.config.startpage.background.desktop ? (
|
2023-12-13 20:36:17 +00:00
|
|
|
|
<img
|
|
|
|
|
src={quiz.config.startpage.background.desktop}
|
|
|
|
|
alt=""
|
|
|
|
|
style={{
|
|
|
|
|
width: "100%",
|
|
|
|
|
height: "100%",
|
|
|
|
|
objectFit: "cover",
|
2023-12-18 11:33:51 +00:00
|
|
|
|
overflow: "hidden",
|
2023-12-13 20:36:17 +00:00
|
|
|
|
}}
|
|
|
|
|
/>
|
2023-12-18 11:33:51 +00:00
|
|
|
|
) : null
|
|
|
|
|
) : quiz.config.startpage.background.type === "video" ? (
|
|
|
|
|
quiz.config.startpage.background.video ? (
|
|
|
|
|
<YoutubeEmbedIframe
|
|
|
|
|
videoUrl={quiz.config.startpage.background.video}
|
|
|
|
|
containerSX={{
|
|
|
|
|
width:
|
|
|
|
|
quiz.config.startpageType === "centered"
|
|
|
|
|
? "550px"
|
|
|
|
|
: quiz.config.startpageType === "expanded"
|
|
|
|
|
? "100vw"
|
|
|
|
|
: "100%",
|
|
|
|
|
height:
|
|
|
|
|
quiz.config.startpageType === "centered"
|
|
|
|
|
? "275px"
|
|
|
|
|
: quiz.config.startpageType === "expanded"
|
|
|
|
|
? "100vh"
|
|
|
|
|
: "100%",
|
|
|
|
|
borderRadius: quiz.config.startpageType === "centered" ? "10px" : "0",
|
|
|
|
|
overflow: "hidden",
|
|
|
|
|
"& iframe": {
|
|
|
|
|
width: "100%",
|
|
|
|
|
height: "100%",
|
|
|
|
|
transform:
|
|
|
|
|
quiz.config.startpageType === "centered"
|
|
|
|
|
? ""
|
|
|
|
|
: quiz.config.startpageType === "expanded"
|
|
|
|
|
? "scale(1.5)"
|
|
|
|
|
: "scale(2.4)",
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
) : null
|
|
|
|
|
) : null;
|
2023-11-30 17:39:57 +00:00
|
|
|
|
|
|
|
|
|
return (
|
2023-12-18 11:33:51 +00:00
|
|
|
|
<Paper
|
|
|
|
|
className="quiz-preview-draghandle"
|
2023-11-30 17:39:57 +00:00
|
|
|
|
sx={{
|
|
|
|
|
height: "100vh",
|
2023-12-18 16:27:13 +00:00
|
|
|
|
width: "100vw",
|
2023-12-27 21:30:41 +00:00
|
|
|
|
background:
|
|
|
|
|
quiz.config.startpageType === "expanded" && !isMobile
|
|
|
|
|
? quiz.config.startpage.position === "left"
|
|
|
|
|
? "linear-gradient(90deg,#272626,transparent)"
|
|
|
|
|
: quiz.config.startpage.position === "center"
|
|
|
|
|
? "linear-gradient(180deg,transparent,#272626)"
|
|
|
|
|
: "linear-gradient(270deg,#272626,transparent)"
|
|
|
|
|
: theme.palette.background.default,
|
2023-12-18 16:27:13 +00:00
|
|
|
|
|
2023-12-18 11:33:51 +00:00
|
|
|
|
color: quiz.config.startpageType === "expanded" ? "white" : "black",
|
|
|
|
|
}}
|
|
|
|
|
>
|
2023-12-13 20:36:17 +00:00
|
|
|
|
<QuizPreviewLayoutByType
|
2023-12-18 11:33:51 +00:00
|
|
|
|
quizHeaderBlock={
|
|
|
|
|
<Box p={quiz.config.startpageType === "standard" ? "" : "16px"}>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
gap: "20px",
|
|
|
|
|
mb: "7px",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{quiz.config.startpage.logo && (
|
|
|
|
|
<img
|
|
|
|
|
src={quiz.config.startpage.logo}
|
|
|
|
|
style={{
|
|
|
|
|
height: "37px",
|
|
|
|
|
maxWidth: "43px",
|
|
|
|
|
objectFit: "cover",
|
|
|
|
|
}}
|
|
|
|
|
alt=""
|
|
|
|
|
/>
|
|
|
|
|
)}
|
2023-12-27 21:30:41 +00:00
|
|
|
|
<Typography sx={{ fontSize: "14px", color: quiz.config.startpageType === "expanded" && !isMobile ? "white" : theme.palette.text.primary}}>{quiz.config.info.orgname}</Typography>
|
2023-12-18 11:33:51 +00:00
|
|
|
|
</Box>
|
|
|
|
|
<Link mb="16px" href={quiz.config.info.site}>
|
2023-12-21 00:08:58 +00:00
|
|
|
|
<Typography sx={{ fontSize: "16px", color: theme.palette.primary.main }}>
|
2023-12-18 11:33:51 +00:00
|
|
|
|
{quiz.config.info.site}
|
|
|
|
|
</Typography>
|
|
|
|
|
</Link>
|
2023-12-13 20:36:17 +00:00
|
|
|
|
</Box>
|
2023-12-18 11:33:51 +00:00
|
|
|
|
}
|
|
|
|
|
quizMainBlock={
|
|
|
|
|
<>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: "column",
|
|
|
|
|
justifyContent: "center",
|
|
|
|
|
alignItems:
|
|
|
|
|
quiz.config.startpageType === "centered"
|
|
|
|
|
? "center"
|
|
|
|
|
: quiz.config.startpageType === "expanded"
|
|
|
|
|
? quiz.config.startpage.position === "center"
|
|
|
|
|
? "center"
|
|
|
|
|
: "start"
|
|
|
|
|
: "start",
|
|
|
|
|
mt: "28px",
|
|
|
|
|
width: "100%",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Typography
|
|
|
|
|
sx={{
|
|
|
|
|
fontWeight: "bold",
|
|
|
|
|
fontSize: "26px",
|
|
|
|
|
fontStyle: "normal",
|
|
|
|
|
fontStretch: "normal",
|
|
|
|
|
lineHeight: "1.2",
|
2023-12-18 15:04:09 +00:00
|
|
|
|
overflowWrap: "break-word",
|
|
|
|
|
width: "100%",
|
|
|
|
|
textAlign: quiz.config.startpageType === "centered" ? "center" : "-moz-initial",
|
2023-12-27 21:30:41 +00:00
|
|
|
|
color: quiz.config.startpageType === "expanded" && !isMobile ? "white" : theme.palette.text.primary
|
2023-12-18 11:33:51 +00:00
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{quiz.name}
|
|
|
|
|
</Typography>
|
|
|
|
|
<Typography
|
2023-12-13 20:36:17 +00:00
|
|
|
|
sx={{
|
|
|
|
|
fontSize: "16px",
|
2023-12-18 11:33:51 +00:00
|
|
|
|
m: "16px 0",
|
2023-12-18 15:04:09 +00:00
|
|
|
|
overflowWrap: "break-word",
|
|
|
|
|
width: "100%",
|
|
|
|
|
textAlign: quiz.config.startpageType === "centered" ? "center" : "-moz-initial",
|
2023-12-13 20:36:17 +00:00
|
|
|
|
}}
|
|
|
|
|
>
|
2023-12-18 11:33:51 +00:00
|
|
|
|
{quiz.config.startpage.description}
|
|
|
|
|
</Typography>
|
|
|
|
|
<Box width={quiz.config.startpageType === "standard" ? "100%" : "auto"}>
|
|
|
|
|
<Button
|
|
|
|
|
variant="contained"
|
|
|
|
|
sx={{
|
|
|
|
|
fontSize: "16px",
|
|
|
|
|
padding: "10px 15px",
|
|
|
|
|
width: quiz.config.startpageType === "standard" ? "100%" : "auto",
|
|
|
|
|
}}
|
|
|
|
|
onClick={() => setVisualStartPage(true)}
|
|
|
|
|
>
|
|
|
|
|
{quiz.config.startpage.button.trim() ? quiz.config.startpage.button : "Пройти тест"}
|
|
|
|
|
</Button>
|
|
|
|
|
</Box>
|
2023-12-13 20:36:17 +00:00
|
|
|
|
</Box>
|
2023-12-18 11:33:51 +00:00
|
|
|
|
|
|
|
|
|
<Box
|
2023-12-27 18:52:05 +00:00
|
|
|
|
sx={{
|
|
|
|
|
mt: "46px",
|
|
|
|
|
display: "flex",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
justifyContent: "space-between",
|
|
|
|
|
width: "100%",
|
|
|
|
|
flexDirection: isMobile ? "column" : "row"
|
|
|
|
|
}}
|
2023-12-18 11:33:51 +00:00
|
|
|
|
>
|
2023-12-18 15:04:09 +00:00
|
|
|
|
<Box sx={{ maxWidth: "300px" }}>
|
2023-12-18 11:33:51 +00:00
|
|
|
|
{quiz.config.info.clickable ? (
|
|
|
|
|
isMobileDevice ? (
|
|
|
|
|
<Link href={`tel:${quiz.config.info.phonenumber}`}>
|
2023-12-21 00:08:58 +00:00
|
|
|
|
<Typography sx={{ fontSize: "16px", color: theme.palette.primary.main }}>
|
2023-12-18 11:33:51 +00:00
|
|
|
|
{quiz.config.info.phonenumber}
|
|
|
|
|
</Typography>
|
|
|
|
|
</Link>
|
|
|
|
|
) : (
|
|
|
|
|
<ButtonBase onClick={handleCopyNumber}>
|
2023-12-21 00:08:58 +00:00
|
|
|
|
<Typography sx={{ fontSize: "16px", color: theme.palette.primary.main }}>
|
2023-12-18 11:33:51 +00:00
|
|
|
|
{quiz.config.info.phonenumber}
|
|
|
|
|
</Typography>
|
|
|
|
|
</ButtonBase>
|
|
|
|
|
)
|
|
|
|
|
) : (
|
2023-12-21 00:08:58 +00:00
|
|
|
|
<Typography sx={{ fontSize: "16px", color: theme.palette.primary.main }}>
|
2023-12-13 20:36:17 +00:00
|
|
|
|
{quiz.config.info.phonenumber}
|
|
|
|
|
</Typography>
|
2023-12-18 11:33:51 +00:00
|
|
|
|
)}
|
2023-12-18 15:04:09 +00:00
|
|
|
|
<Typography sx={{ width: "100%", overflowWrap: "break-word", fontSize: "12px", textAlign: "end" }}>
|
|
|
|
|
{quiz.config.info.law}
|
|
|
|
|
</Typography>
|
2023-12-18 11:33:51 +00:00
|
|
|
|
</Box>
|
|
|
|
|
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
alignItems: "center",
|
2023-12-25 23:46:28 +00:00
|
|
|
|
gap: "15px"
|
2023-12-18 11:33:51 +00:00
|
|
|
|
}}
|
|
|
|
|
>
|
2023-12-27 21:30:41 +00:00
|
|
|
|
<NameplateLogo style={{ fontSize: "34px", color: quiz.config.startpageType === "expanded" && !isMobile ? "#FFFFFF" : (mode[quiz.config.theme] ? "#151515" : "#FFFFFF") }} />
|
|
|
|
|
<Typography sx={{ fontSize: "20px", color: quiz.config.startpageType === "expanded" && !isMobile ? "#F5F7FF" : (mode[quiz.config.theme] ? "#4D4D4D" : "#F5F7FF"), whiteSpace: "nowrap", }}>
|
2023-12-18 11:33:51 +00:00
|
|
|
|
Сделано на PenaQuiz
|
|
|
|
|
</Typography>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
</>
|
|
|
|
|
}
|
2023-12-13 20:36:17 +00:00
|
|
|
|
backgroundBlock={background}
|
|
|
|
|
startpageType={quiz.config.startpageType}
|
|
|
|
|
alignType={quiz.config.startpage.position}
|
|
|
|
|
/>
|
|
|
|
|
</Paper>
|
2023-11-30 17:39:57 +00:00
|
|
|
|
);
|
2023-12-18 11:33:51 +00:00
|
|
|
|
};
|
2023-12-13 20:36:17 +00:00
|
|
|
|
|
2023-12-18 11:33:51 +00:00
|
|
|
|
function QuizPreviewLayoutByType({
|
|
|
|
|
quizHeaderBlock,
|
|
|
|
|
quizMainBlock,
|
|
|
|
|
backgroundBlock,
|
|
|
|
|
startpageType,
|
|
|
|
|
alignType,
|
|
|
|
|
}: {
|
2023-12-13 20:36:17 +00:00
|
|
|
|
quizHeaderBlock: JSX.Element;
|
|
|
|
|
quizMainBlock: JSX.Element;
|
|
|
|
|
backgroundBlock: JSX.Element | null;
|
|
|
|
|
startpageType: QuizStartpageType;
|
|
|
|
|
alignType: QuizStartpageAlignType;
|
|
|
|
|
}) {
|
|
|
|
|
const theme = useTheme();
|
2023-12-27 18:52:05 +00:00
|
|
|
|
const isMobile = useMediaQuery(theme.breakpoints.down(650));
|
|
|
|
|
function StartPageMobile() {
|
|
|
|
|
return(
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: "column-reverse",
|
|
|
|
|
flexGrow: 1,
|
|
|
|
|
justifyContent: "flex-end",
|
|
|
|
|
height: "100vh",
|
|
|
|
|
"&::-webkit-scrollbar": { width: 0 },
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
width: "100%",
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: "column",
|
|
|
|
|
justifyContent: "space-between",
|
|
|
|
|
alignItems: "flex-start",
|
|
|
|
|
p: "25px",
|
|
|
|
|
height: "80%"
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{quizHeaderBlock}
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
height: "80%",
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: "column",
|
|
|
|
|
justifyContent: "space-between",
|
|
|
|
|
width: "100%"
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{quizMainBlock}
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
width: "100%",
|
|
|
|
|
overflow: "hidden",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{backgroundBlock}
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2023-12-13 20:36:17 +00:00
|
|
|
|
|
|
|
|
|
switch (startpageType) {
|
|
|
|
|
case null:
|
|
|
|
|
case "standard": {
|
|
|
|
|
return (
|
2023-12-27 18:52:05 +00:00
|
|
|
|
<>
|
|
|
|
|
{isMobile ? (
|
|
|
|
|
<StartPageMobile/>
|
|
|
|
|
) : (
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: alignType === "left" ? (isMobile ? "column-reverse" : "row") : "row-reverse",
|
|
|
|
|
flexGrow: 1,
|
|
|
|
|
justifyContent: isMobile ? "flex-end" : undefined,
|
|
|
|
|
height: "100vh",
|
|
|
|
|
"&::-webkit-scrollbar": { width: 0 },
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
width: isMobile ? "100%" : "40%",
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: "column",
|
|
|
|
|
justifyContent: "space-between",
|
|
|
|
|
alignItems: "flex-start",
|
|
|
|
|
p: "25px",
|
|
|
|
|
height: isMobile ? "80%" : undefined
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{quizHeaderBlock}
|
|
|
|
|
{quizMainBlock}
|
|
|
|
|
</Box>
|
|
|
|
|
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
width: isMobile ? "100%" : "60%",
|
|
|
|
|
overflow: "hidden",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{backgroundBlock}
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
</>
|
2023-12-18 11:33:51 +00:00
|
|
|
|
|
2023-12-13 20:36:17 +00:00
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
case "expanded": {
|
|
|
|
|
return (
|
2023-12-27 18:52:05 +00:00
|
|
|
|
<>
|
|
|
|
|
{isMobile ? (
|
|
|
|
|
<StartPageMobile/>
|
|
|
|
|
) : (
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
position: "relative",
|
|
|
|
|
display: "flex",
|
|
|
|
|
justifyContent: startpageAlignTypeToJustifyContent[alignType],
|
|
|
|
|
flexGrow: 1,
|
|
|
|
|
height: "100%",
|
|
|
|
|
"&::-webkit-scrollbar": { width: 0 },
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
width: "40%",
|
|
|
|
|
position: "relative",
|
|
|
|
|
padding: "16px",
|
|
|
|
|
zIndex: 3,
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: "column",
|
|
|
|
|
justifyContent: "space-between",
|
|
|
|
|
alignItems: alignType === "center" ? "center" : "start",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{quizHeaderBlock}
|
|
|
|
|
{quizMainBlock}
|
|
|
|
|
</Box>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
position: "absolute",
|
|
|
|
|
zIndex: -1,
|
|
|
|
|
left: 0,
|
|
|
|
|
top: 0,
|
|
|
|
|
height: "100%",
|
|
|
|
|
width: "100%",
|
|
|
|
|
overflow: "hidden",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{backgroundBlock}
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
</>
|
|
|
|
|
|
2023-12-13 20:36:17 +00:00
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
case "centered": {
|
|
|
|
|
return (
|
2023-12-27 18:52:05 +00:00
|
|
|
|
<>
|
|
|
|
|
{isMobile ? (
|
|
|
|
|
<StartPageMobile/>
|
|
|
|
|
) : (
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
padding: "16px",
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: "column",
|
|
|
|
|
justifyContent: "center",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
height: "100%",
|
|
|
|
|
"&::-webkit-scrollbar": { width: 0 },
|
|
|
|
|
overflow: "hidden",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{quizHeaderBlock}
|
|
|
|
|
{backgroundBlock && (
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
width: "60%",
|
|
|
|
|
overflow: "hidden",
|
2023-12-29 04:10:08 +00:00
|
|
|
|
display: "flex",
|
|
|
|
|
justifyContent: "center"
|
2023-12-27 18:52:05 +00:00
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{backgroundBlock}
|
|
|
|
|
</Box>
|
|
|
|
|
)}
|
|
|
|
|
{quizMainBlock}
|
|
|
|
|
</Box>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
</>
|
|
|
|
|
|
2023-12-13 20:36:17 +00:00
|
|
|
|
);
|
|
|
|
|
}
|
2023-12-18 11:33:51 +00:00
|
|
|
|
default:
|
|
|
|
|
notReachable(startpageType);
|
2023-12-13 20:36:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const startpageAlignTypeToJustifyContent: Record<QuizStartpageAlignType, "start" | "center" | "end"> = {
|
|
|
|
|
left: "start",
|
|
|
|
|
center: "center",
|
|
|
|
|
right: "end",
|
2023-11-30 17:39:57 +00:00
|
|
|
|
};
|