2023-08-23 12:23:35 +00:00
|
|
|
|
import { Box, Typography, SxProps, Theme, Button } from "@mui/material";
|
2023-05-17 17:05:21 +00:00
|
|
|
|
import cardImageBig from "@root/assets/landing/card1big.png";
|
2023-08-23 12:23:35 +00:00
|
|
|
|
import { PenaLink } from "@frontend/kitui";
|
|
|
|
|
import { Link as RouterLink } from "react-router-dom";
|
|
|
|
|
|
2023-05-17 17:05:21 +00:00
|
|
|
|
interface Props {
|
2023-08-23 12:23:35 +00:00
|
|
|
|
light?: boolean;
|
|
|
|
|
sx?: SxProps<Theme>;
|
2023-05-17 17:05:21 +00:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-23 12:23:35 +00:00
|
|
|
|
export default function WideTemplCard({ light = true, sx }: Props) {
|
2023-08-27 17:46:42 +00:00
|
|
|
|
return (
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
position: "relative",
|
|
|
|
|
display: "flex",
|
|
|
|
|
justifyContent: "space-between",
|
|
|
|
|
py: "40px",
|
|
|
|
|
px: "20px",
|
|
|
|
|
backgroundColor: light ? "#E6E6EB" : "#434657",
|
|
|
|
|
borderRadius: "12px",
|
|
|
|
|
|
|
|
|
|
...sx,
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: "column",
|
|
|
|
|
alignItems: "start",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Typography variant="h5">Шаблонизатор</Typography>
|
|
|
|
|
<Typography mt="20px" maxWidth="552px">
|
|
|
|
|
Текст- это текст, который имеет некоторые характеристики реального письменного текс
|
|
|
|
|
</Typography>
|
|
|
|
|
{light ? (
|
|
|
|
|
<Button variant="pena-contained-light" sx={{ mt: "28px" }}>
|
|
|
|
|
Подробнее
|
|
|
|
|
</Button>
|
|
|
|
|
) : (
|
|
|
|
|
<PenaLink
|
|
|
|
|
component={RouterLink}
|
|
|
|
|
to="/"
|
2023-07-28 15:56:19 +00:00
|
|
|
|
sx={{
|
2023-08-27 17:46:42 +00:00
|
|
|
|
mt: "auto",
|
2023-05-17 17:05:21 +00:00
|
|
|
|
}}
|
2023-08-27 17:46:42 +00:00
|
|
|
|
>
|
|
|
|
|
Подробнее
|
|
|
|
|
</PenaLink>
|
|
|
|
|
)}
|
|
|
|
|
</Box>
|
|
|
|
|
<img
|
|
|
|
|
src={cardImageBig}
|
|
|
|
|
alt=""
|
|
|
|
|
style={{
|
|
|
|
|
display: "block",
|
|
|
|
|
objectFit: "contain",
|
|
|
|
|
pointerEvents: "none",
|
|
|
|
|
marginBottom: "-40px",
|
|
|
|
|
marginTop: "-110px",
|
|
|
|
|
maxWidth: "390px",
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</Box>
|
|
|
|
|
);
|
2023-07-28 15:56:19 +00:00
|
|
|
|
}
|