front-hub/src/components/landing/Section2.tsx

99 lines
4.1 KiB
TypeScript
Raw Normal View History

2022-11-18 16:51:10 +00:00
import { Box, Typography, useMediaQuery, useTheme } from "@mui/material";
2022-11-17 12:25:23 +00:00
import CardWithLink from "./CardWithLink";
import pena_illustration01 from "../../assets/pena_illustration01.png";
import pena_illustration03 from "../../assets/pena_illustration03.png";
import pena_illustration04 from "../../assets/pena_illustration04.png";
import UnderlinedLink from "../UnderlinedLink";
import SectionWrapper from "../SectionWrapper";
export default function Section2() {
const theme = useTheme();
2022-11-18 16:51:10 +00:00
const upMd = useMediaQuery(theme.breakpoints.up("md"));
2022-11-17 12:25:23 +00:00
return (
<SectionWrapper
component="section"
maxWidth="lg"
2022-11-18 16:51:10 +00:00
outerContainerSx={{
2022-11-17 12:25:23 +00:00
backgroundColor: theme.palette.custom.darkPurple.main,
mb: "-90px",
}}
2022-11-18 16:51:10 +00:00
sx={{
2022-11-17 12:25:23 +00:00
display: "flex",
flexDirection: "column",
2022-11-18 16:51:10 +00:00
alignItems: upMd ? undefined : "center",
gap: upMd ? "93px" : "40px",
pt: upMd ? "90px" : "50px",
2022-11-17 12:25:23 +00:00
pb: "20px",
}}
>
<Box
sx={{
display: "flex",
2022-11-18 16:51:10 +00:00
flexDirection: upMd ? "row" : "column",
gap: "3.5%",
2022-11-17 12:25:23 +00:00
}}
>
2022-11-18 16:51:10 +00:00
<Typography variant="h4"
sx={{
flexGrow: 1,
flexBasis: "31%",
maxWidth: "50%",
}}
>Интеграции, избавляющие от рутины</Typography>
2022-11-17 12:25:23 +00:00
<Box
sx={{
display: "flex",
flexDirection: "column",
gap: "30px",
alignItems: "start",
2022-11-18 16:51:10 +00:00
flexGrow: 1,
flexBasis: "65.5%",
2022-11-17 12:25:23 +00:00
mt: "10px",
}}
>
<Typography>
Сервисы помогают предпринимателям, маркетологам и агентствам
сделать интернет-маркетинг прозрачным и эффективным. С нами не придется
тратить рекламный бюджет впустую и терять клиентов на сайте.
</Typography>
<UnderlinedLink
linkHref="#"
text="Подробнее 🡲"
sx={{
mt: "auto",
}}
/>
</Box>
</Box>
<Box
sx={{
display: "flex",
2022-11-18 16:51:10 +00:00
flexDirection: upMd ? "row" : "column",
gap: upMd ? "40px" : "30px",
2022-11-17 12:25:23 +00:00
}}
>
<CardWithLink
headerText="Шаблонизатор"
text="Текст- это текст, который имеет некоторые характеристики реального письменного текс"
isHighlighted
linkHref="#"
image={pena_illustration03}
/>
<CardWithLink
headerText="Опросник"
text="Текст- это текст, который имеет некоторые характеристики реального письменного текс"
linkHref="#"
image={pena_illustration04}
/>
<CardWithLink
headerText="Сокращатель ссылок"
text="Текст- это текст, который имеет некоторые характеристики реального письменного текс"
linkHref="#"
image={pena_illustration01}
/>
</Box>
</SectionWrapper>
);
}