2022-12-09 11:48:15 +00:00
|
|
|
|
import { Box, Chip, Typography, useTheme } from "@mui/material";
|
|
|
|
|
|
|
|
|
|
interface Props {
|
2023-07-30 21:25:47 +00:00
|
|
|
|
image: string;
|
2022-12-09 11:48:15 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default function QuizTemplateCard({ image }: Props) {
|
2023-07-30 21:25:47 +00:00
|
|
|
|
const theme = useTheme();
|
2022-12-09 11:48:15 +00:00
|
|
|
|
|
2023-07-30 21:25:47 +00:00
|
|
|
|
return (
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
borderRadius: "12px",
|
|
|
|
|
height: "280px",
|
|
|
|
|
width: "360px",
|
|
|
|
|
minWidth: "200px",
|
|
|
|
|
backgroundColor: "white",
|
|
|
|
|
overflow: "hidden",
|
|
|
|
|
boxShadow: `0px 100px 309px rgba(210, 208, 225, 0.24),
|
2022-12-09 11:48:15 +00:00
|
|
|
|
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)`,
|
2023-07-30 21:25:47 +00:00
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
width: "100%",
|
|
|
|
|
height: "219px",
|
|
|
|
|
backgroundImage: `url(${image})`,
|
|
|
|
|
backgroundRepeat: "no-repeat",
|
|
|
|
|
backgroundPosition: "center",
|
|
|
|
|
display: "flex",
|
|
|
|
|
alignItems: "end",
|
|
|
|
|
p: "20px",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexWrap: "wrap",
|
|
|
|
|
gap: "20px",
|
|
|
|
|
}}
|
2022-12-09 11:48:15 +00:00
|
|
|
|
>
|
2023-07-30 21:25:47 +00:00
|
|
|
|
<Chip
|
|
|
|
|
sx={{
|
|
|
|
|
backgroundColor: theme.palette.brightPurple.main,
|
|
|
|
|
color: "white",
|
|
|
|
|
height: "auto",
|
|
|
|
|
px: "10px",
|
|
|
|
|
py: "2px",
|
|
|
|
|
borderRadius: "8px",
|
|
|
|
|
...theme.typography.button,
|
|
|
|
|
"& .MuiChip-label": {
|
|
|
|
|
px: 0,
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
label="Услуги"
|
|
|
|
|
/>
|
|
|
|
|
<Chip
|
|
|
|
|
sx={{
|
|
|
|
|
backgroundColor: theme.palette.brightPurple.main,
|
|
|
|
|
color: "white",
|
|
|
|
|
height: "auto",
|
|
|
|
|
px: "10px",
|
|
|
|
|
py: "2px",
|
|
|
|
|
borderRadius: "8px",
|
|
|
|
|
...theme.typography.button,
|
|
|
|
|
"& .MuiChip-label": {
|
|
|
|
|
px: 0,
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
label="Медицина"
|
|
|
|
|
/>
|
2022-12-09 11:48:15 +00:00
|
|
|
|
</Box>
|
2023-07-30 21:25:47 +00:00
|
|
|
|
</Box>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
p: "20px",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Typography sx={{ color: "#4D4D4D" }}>Название шаблона</Typography>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
);
|
|
|
|
|
}
|