front-hub/src/pages/Landing/Section5.tsx

59 lines
2.3 KiB
TypeScript
Raw Normal View History

2022-11-18 16:51:10 +00:00
import { Box, Typography, useMediaQuery, useTheme } from "@mui/material";
2022-11-21 17:53:16 +00:00
import Button from "../../components/Button";
import SectionWrapper from "../../components/SectionWrapper";
2022-11-17 12:25:23 +00:00
export default function Section5() {
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.brightPurple.main,
}}
2022-11-18 16:51:10 +00:00
sx={{
pt: upMd ? "100px" : "80px",
pb: upMd ? "100px" : "80px",
2022-11-17 12:25:23 +00:00
}}
>
<Box
sx={{
2022-11-18 16:51:10 +00:00
display: "grid",
gridTemplate: upMd ? "auto auto / 1fr 1fr" : "repeat(3, auto) / auto",
2022-11-17 12:25:23 +00:00
}}
>
2022-11-18 16:51:10 +00:00
<Typography variant="h4" sx={{ mb: upMd ? "62px" : "30px" }}>Остались вопросы?</Typography>
<Typography
sx={{
maxWidth: "79.3%",
gridRow: upMd ? "span 2" : "",
justifySelf: upMd ? "end" : "start",
mb: upMd ? undefined : "50px",
}}
>
Сервисы помогают предпринимателям, маркетологам и агентствам
сделать интернет-маркетинг прозрачным и эффективным. С нами не придется
тратить рекламный бюджет впустую и терять клиентов на сайте.
</Typography>
2022-11-17 12:25:23 +00:00
<Box
sx={{
2022-11-18 16:51:10 +00:00
display: "flex",
flexDirection: upMd ? "row" : "column",
alignItems: "start",
gap: upMd ? "24px" : "20px",
2022-11-17 12:25:23 +00:00
}}
>
2022-11-21 12:44:26 +00:00
<Button
2022-11-18 16:51:10 +00:00
variant="outlined"
2022-11-21 12:44:26 +00:00
>Подробнее</Button>
<Button
2022-11-18 16:51:10 +00:00
variant="contained"
2022-11-21 12:44:26 +00:00
>Подробнее</Button>
2022-11-17 12:25:23 +00:00
</Box>
</Box>
2022-11-18 16:51:10 +00:00
</SectionWrapper >
2022-11-17 12:25:23 +00:00
);
}