2023-06-23 13:42:35 +00:00
|
|
|
|
import {
|
|
|
|
|
Button,
|
|
|
|
|
Modal,
|
|
|
|
|
Box,
|
|
|
|
|
useTheme,
|
|
|
|
|
Typography,
|
|
|
|
|
Table,
|
|
|
|
|
TableCell,
|
|
|
|
|
TableBody,
|
|
|
|
|
TableContainer,
|
2023-07-01 22:55:32 +00:00
|
|
|
|
TableRow, IconButton, Link,
|
2023-06-23 13:42:35 +00:00
|
|
|
|
} from "@mui/material";
|
2023-07-01 22:55:32 +00:00
|
|
|
|
import CloseIcon from '@mui/icons-material/Close';
|
2023-06-17 22:26:12 +00:00
|
|
|
|
import * as React from "react";
|
|
|
|
|
import {useState} from "react";
|
|
|
|
|
|
|
|
|
|
export default function ModalSizeImage () {
|
|
|
|
|
const theme = useTheme();
|
|
|
|
|
const [open, setOpen] = useState(false);
|
|
|
|
|
const handleOpen = () => setOpen(true);
|
|
|
|
|
const handleClose = () => setOpen(false);
|
2023-06-23 13:42:35 +00:00
|
|
|
|
|
|
|
|
|
function createData(
|
|
|
|
|
name: string,
|
|
|
|
|
size: string
|
|
|
|
|
) {
|
|
|
|
|
return { name, size };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const rows = [
|
|
|
|
|
createData('Прямая ссылка/домен', "1792х1509 px"),
|
2023-07-01 22:55:32 +00:00
|
|
|
|
createData('Модальное окно на сайте', "1380х1300 px"),
|
2023-06-23 13:42:35 +00:00
|
|
|
|
createData('Во ВКонтакте', "1166х1200 px"),
|
|
|
|
|
createData('Версия для планшета', "767х220 px"),
|
|
|
|
|
createData('Мобильная версия', "400х220 px"),
|
|
|
|
|
createData('Картинка для дизайна Centered', "900х490 px"),
|
|
|
|
|
createData('Картинка для дизайна Expanded', "1920х1080 px"),
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const rows2 = [
|
|
|
|
|
createData('Вертикальный вариант', "180х240 px"),
|
|
|
|
|
createData('Квадратные', "240х240 px"),
|
|
|
|
|
createData('Варианты и картинка', "380х307 px"),
|
|
|
|
|
createData('Консультант', "140х140 px"),
|
|
|
|
|
createData('Логотип', "107х37 px"),
|
|
|
|
|
createData('Результаты',"1100х600 px"),
|
|
|
|
|
createData('Бонус', "200х60 px"),
|
|
|
|
|
createData('Картинка для формата вопроса "Страница"', "860х1250 px"),
|
|
|
|
|
];
|
|
|
|
|
|
2023-06-17 22:26:12 +00:00
|
|
|
|
return (
|
|
|
|
|
<>
|
2023-07-01 22:55:32 +00:00
|
|
|
|
<Link
|
|
|
|
|
component='button'
|
2023-06-17 22:26:12 +00:00
|
|
|
|
sx={{
|
|
|
|
|
mt: "20px",
|
|
|
|
|
fontSize: "16px",
|
|
|
|
|
lineHeight: "19px",
|
2023-07-01 22:55:32 +00:00
|
|
|
|
textAlign: 'left',
|
2023-06-17 22:26:12 +00:00
|
|
|
|
color: theme.palette.orange.main,
|
|
|
|
|
textDecorationColor: theme.palette.orange.main
|
|
|
|
|
}}
|
2023-07-01 22:55:32 +00:00
|
|
|
|
onClick={handleOpen}>Размер картинок</Link>
|
2023-06-17 22:26:12 +00:00
|
|
|
|
<Modal
|
|
|
|
|
open={open}
|
|
|
|
|
onClose={handleClose}
|
|
|
|
|
aria-labelledby="modal-modal-title"
|
|
|
|
|
aria-describedby="modal-modal-description"
|
|
|
|
|
>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
position: "absolute" as "absolute",
|
|
|
|
|
top: "50%",
|
|
|
|
|
left: "50%",
|
|
|
|
|
transform: "translate(-50%, -50%)",
|
|
|
|
|
maxWidth: "540px",
|
|
|
|
|
width: "100%",
|
|
|
|
|
minHeight: "632px",
|
|
|
|
|
bgcolor: "background.paper",
|
|
|
|
|
borderRadius: "12px",
|
|
|
|
|
boxShadow: 24,
|
|
|
|
|
p: 0,
|
|
|
|
|
}}
|
|
|
|
|
>
|
2023-06-23 13:42:35 +00:00
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
justifyContent: "space-between",
|
2023-07-01 22:55:32 +00:00
|
|
|
|
alignItems: "baseline",
|
2023-06-23 13:42:35 +00:00
|
|
|
|
backgroundColor: theme.palette.background.default,
|
2023-07-01 22:55:32 +00:00
|
|
|
|
padding: "10px 9px 17px 20px",
|
2023-06-23 13:42:35 +00:00
|
|
|
|
borderRadius: "12px 12px 0px 0px"
|
|
|
|
|
}}>
|
2023-07-01 22:55:32 +00:00
|
|
|
|
<Typography variant={"h5"}>Размеры картинок</Typography>
|
|
|
|
|
<IconButton onClick={handleClose}><CloseIcon/></IconButton>
|
2023-06-17 22:26:12 +00:00
|
|
|
|
</Box>
|
2023-07-01 22:55:32 +00:00
|
|
|
|
<Box sx={{padding: "15px 20px 0px"}}>
|
|
|
|
|
<Typography variant={"body2"} sx={{color: theme.palette.grey2.main, fontWeight: 400}}>Рекомендованный размер зависит от того, как вы будете чаще использовать квиз:</Typography>
|
|
|
|
|
</Box>
|
|
|
|
|
<Box sx={{padding: "15px 40px 30px"}}>
|
2023-06-23 13:42:35 +00:00
|
|
|
|
|
2023-07-01 22:55:32 +00:00
|
|
|
|
{rows.map((row) => (
|
|
|
|
|
<Box sx={{display: "flex", justifyContent: "space-between", width: "100%", paddingBottom: "5px"}}>
|
|
|
|
|
<Box sx={{display: "block ruby", height: "20px"}}><Typography variant={"body2"} fontWeight={400}>{row.name}</Typography></Box>
|
|
|
|
|
<Box sx={{borderBottom: "solid 1px #F2F3F7", width: "100%", margin: "0 7px"}}></Box>
|
|
|
|
|
<Box sx={{display: "block ruby", height: "20px"}}><Typography variant={"body2"}>{row.size}</Typography></Box>
|
|
|
|
|
</Box>
|
|
|
|
|
))}
|
2023-06-23 13:42:35 +00:00
|
|
|
|
</Box>
|
|
|
|
|
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
backgroundColor: theme.palette.background.default,
|
|
|
|
|
padding: "20px"
|
|
|
|
|
}}
|
|
|
|
|
>
|
2023-07-01 22:55:32 +00:00
|
|
|
|
<Typography variant={"h5"}>Размеры изображений в квизе</Typography>
|
|
|
|
|
</Box>
|
|
|
|
|
<Box sx={{padding: "15px 40px 20px"}}>
|
|
|
|
|
{rows2.map((row) => (
|
|
|
|
|
<Box sx={{display: "flex", justifyContent: "space-between", width: "100%", paddingBottom: "5px"}}>
|
|
|
|
|
<Box sx={{display: "block ruby", height: "20px"}}><Typography variant={"body2"} fontWeight={400}>{row.name}</Typography></Box>
|
|
|
|
|
<Box sx={{borderBottom: "solid 1px #F2F3F7", width: "100%", margin: "0 7px"}}></Box>
|
|
|
|
|
<Box sx={{display: "block ruby", height: "20px"}}><Typography variant={"body2"}>{row.size}</Typography></Box>
|
|
|
|
|
</Box>
|
|
|
|
|
))}
|
2023-06-17 22:26:12 +00:00
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
</Modal>
|
|
|
|
|
</>
|
|
|
|
|
|
|
|
|
|
);
|
|
|
|
|
}
|