2023-11-05 23:33:40 +00:00
import { Box , Typography , SxProps , Theme , Button , useTheme , useMediaQuery } from "@mui/material"
import cardImageBig from "@root/assets/landing/card1big.png"
import { PenaLink } from "@frontend/kitui"
import { Link as RouterLink } from "react-router-dom"
2023-08-23 12:23:35 +00:00
2023-05-17 17:05:21 +00:00
interface Props {
2023-09-11 13:06:14 +00:00
light? : boolean ;
sx? : SxProps < Theme > ;
2023-10-24 11:49:39 +00:00
name? : string ;
desc? : string ;
2023-12-30 17:55:53 +00:00
image? : string ;
2024-02-01 22:54:21 +00:00
href? : string ;
2023-05-17 17:05:21 +00:00
}
2024-02-01 22:54:21 +00:00
export default function WideTemplCard ( { light = true , sx , name = "PenaDoc" , desc = "Самый удобный сервис для автоматизации документооборота и заполнения однотипных документов" , image = cardImageBig , href = "#" } : Props ) {
2023-11-05 23:33:40 +00:00
const theme = useTheme ( )
const isTablet = useMediaQuery ( theme . breakpoints . down ( 1000 ) )
2023-09-11 13:06:14 +00:00
2023-11-05 23:33:40 +00:00
return (
< Box
sx = { {
position : "relative" ,
display : "flex" ,
justifyContent : "space-between" ,
2024-02-01 22:54:21 +00:00
p : "40px 20px 20px 20px" ,
2023-11-05 23:33:40 +00:00
backgroundColor : light ? "#E6E6EB" : "#434657" ,
borderRadius : "12px" ,
. . . sx ,
} }
>
< Box
sx = { {
display : "flex" ,
flexDirection : "column" ,
alignItems : "start" ,
2024-02-01 22:54:21 +00:00
justifyContent : "space-between"
2023-11-05 23:33:40 +00:00
} }
>
< Typography variant = "h5" > { name } < / Typography >
2024-02-01 22:54:21 +00:00
< Typography maxWidth = "552px" >
2023-11-05 23:33:40 +00:00
{ desc }
< / Typography >
2024-02-01 22:54:21 +00:00
< Button sx = { { width : "180px" , height : "44px" , p : 0 } }
variant = "pena-contained-light"
target = { "_blank" }
href = { href } >
П о д р о б н е е
< / Button >
2023-11-05 23:33:40 +00:00
< / Box >
< img
2023-12-30 17:55:53 +00:00
src = { image }
2023-11-05 23:33:40 +00:00
alt = ""
style = { {
display : "block" ,
objectFit : "contain" ,
pointerEvents : "none" ,
marginBottom : "-40px" ,
marginTop : "-110px" ,
maxWidth : "390px" ,
} }
/ >
< / Box >
)
2023-07-28 15:56:19 +00:00
}