2022-12-09 11:48:15 +00:00
|
|
|
import { Box, Typography } from "@mui/material";
|
|
|
|
|
|
|
|
interface Props {
|
2023-10-18 13:27:45 +00:00
|
|
|
header: string;
|
|
|
|
text: string;
|
|
|
|
image: any;
|
|
|
|
border?: string;
|
2022-12-09 11:48:15 +00:00
|
|
|
}
|
|
|
|
|
2023-10-18 13:27:45 +00:00
|
|
|
export default function CreationCard({ header, text, image, border }: Props) {
|
|
|
|
return (
|
|
|
|
<Box
|
|
|
|
sx={{
|
|
|
|
minWidth: "315px",
|
2023-12-30 20:31:49 +00:00
|
|
|
maxWidth: "560px",
|
|
|
|
height: "100%",
|
2023-10-18 13:27:45 +00:00
|
|
|
flexGrow: 1,
|
|
|
|
backgroundColor: "white",
|
|
|
|
p: "20px",
|
|
|
|
border: { border },
|
|
|
|
borderRadius: "12px",
|
|
|
|
display: "flex",
|
|
|
|
flexDirection: "column",
|
|
|
|
boxShadow: "0 10px 15px rgba(0, 0, 0, 0.1)",
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<Typography variant="h5" sx={{ textAlign: "left" }}>
|
|
|
|
{header}
|
|
|
|
</Typography>
|
|
|
|
<Typography
|
|
|
|
sx={{
|
|
|
|
color: "#4D4D4D",
|
|
|
|
mt: "20px",
|
|
|
|
mb: "35px",
|
|
|
|
width: "95%",
|
|
|
|
textAlign: "left",
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
{text}
|
|
|
|
</Typography>
|
|
|
|
<img
|
|
|
|
src={image}
|
|
|
|
alt="quiz creation"
|
|
|
|
style={{
|
|
|
|
display: "block",
|
|
|
|
width: "100%",
|
|
|
|
marginTop: "auto",
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</Box>
|
|
|
|
);
|
|
|
|
}
|