2023-08-03 14:27:48 +00:00
|
|
|
|
import { Box, Typography, Button, SxProps, Theme } from "@mui/material";
|
2023-05-17 17:05:21 +00:00
|
|
|
|
import ArrowForwardIcon from "@mui/icons-material/ArrowForward";
|
|
|
|
|
import UnderlinedLink from "@components/UnderlinedLink";
|
|
|
|
|
import cardImageBig from "@root/assets/landing/card1big.png";
|
|
|
|
|
|
|
|
|
|
interface Props {
|
2023-07-28 15:56:19 +00:00
|
|
|
|
light?: boolean;
|
|
|
|
|
sx?: SxProps<Theme>;
|
2023-05-17 17:05:21 +00:00
|
|
|
|
}
|
|
|
|
|
|
2023-07-28 15:56:19 +00:00
|
|
|
|
export default function ({ light = true, sx }: Props) {
|
|
|
|
|
return (
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
2023-05-17 17:05:21 +00:00
|
|
|
|
position: "relative",
|
|
|
|
|
display: "flex",
|
|
|
|
|
justifyContent: "space-between",
|
|
|
|
|
py: "40px",
|
|
|
|
|
px: "20px",
|
|
|
|
|
backgroundColor: light ? "#E6E6EB" : "#434657",
|
|
|
|
|
borderRadius: "12px",
|
2023-07-28 15:56:19 +00:00
|
|
|
|
boxShadow: "0 10px 0 -5px #BABBC8",
|
|
|
|
|
...sx,
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: "column",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Typography variant="h5">Шаблонизатор</Typography>
|
|
|
|
|
<Typography mt="20px" maxWidth="552px">
|
|
|
|
|
Текст- это текст, который имеет некоторые характеристики реального
|
|
|
|
|
письменного текс
|
|
|
|
|
</Typography>
|
|
|
|
|
{light ? (
|
|
|
|
|
<Button
|
|
|
|
|
sx={{
|
|
|
|
|
mt: "28px",
|
|
|
|
|
width: "180px",
|
|
|
|
|
paddingTop: "10px",
|
|
|
|
|
paddingBottom: "10px",
|
|
|
|
|
borderRadius: "8px",
|
|
|
|
|
boxShadow: "none",
|
|
|
|
|
backgroundColor: "white",
|
|
|
|
|
color: "black",
|
|
|
|
|
"&:hover": {
|
|
|
|
|
backgroundColor: "#581CA7",
|
|
|
|
|
color: "white",
|
|
|
|
|
},
|
|
|
|
|
"&:active": {
|
|
|
|
|
backgroundColor: "black",
|
|
|
|
|
color: "white",
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
variant="contained"
|
|
|
|
|
>
|
|
|
|
|
Подробнее
|
|
|
|
|
</Button>
|
|
|
|
|
) : (
|
|
|
|
|
<UnderlinedLink
|
|
|
|
|
linkHref="#"
|
|
|
|
|
text="Подробнее"
|
|
|
|
|
endIcon={
|
|
|
|
|
<ArrowForwardIcon sx={{ height: "20px", width: "20px" }} />
|
2023-05-17 17:05:21 +00:00
|
|
|
|
}
|
2023-07-28 15:56:19 +00:00
|
|
|
|
sx={{
|
|
|
|
|
mt: "auto",
|
2023-05-17 17:05:21 +00:00
|
|
|
|
}}
|
2023-07-28 15:56:19 +00:00
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
</Box>
|
|
|
|
|
<img
|
|
|
|
|
src={cardImageBig}
|
|
|
|
|
alt=""
|
|
|
|
|
style={{
|
|
|
|
|
display: "block",
|
|
|
|
|
objectFit: "contain",
|
|
|
|
|
pointerEvents: "none",
|
|
|
|
|
marginBottom: "-40px",
|
|
|
|
|
marginTop: "-110px",
|
|
|
|
|
maxWidth: "390px",
|
|
|
|
|
}}
|
|
|
|
|
/>
|
2023-05-17 17:05:21 +00:00
|
|
|
|
</Box>
|
2023-07-28 15:56:19 +00:00
|
|
|
|
);
|
|
|
|
|
}
|