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

61 lines
2.1 KiB
TypeScript
Raw Normal View History

import { Box, Button, Typography, useMediaQuery, useTheme } from "@mui/material";
import SectionWrapper from "@components/SectionWrapper";
2022-11-17 12:25:23 +00:00
export default function Section5() {
2023-09-01 08:27:14 +00:00
const theme = useTheme();
const upMd = useMediaQuery(theme.breakpoints.up("md"));
const isTablet = useMediaQuery(theme.breakpoints.down(1000));
2022-11-17 12:25:23 +00:00
2023-09-01 08:27:14 +00:00
return (
<SectionWrapper
component="section"
maxWidth="lg"
outerContainerSx={{
backgroundColor: theme.palette.purple.main,
}}
sx={{
pt: upMd ? "101px" : "80px",
pb: upMd ? "100px" : "80px",
px: isTablet ? (upMd ? "40px" : "18px") : "20px",
2023-09-01 08:27:14 +00:00
}}
>
<Box
sx={{
display: "grid",
gridTemplate: upMd ? "auto auto / 1fr 1fr" : "repeat(3, auto) / auto",
}}
>
<Typography variant="h4" sx={{ mb: upMd ? "62px" : "30px" }}>
Остались вопросы?
</Typography>
<Typography
sx={{
maxWidth: upMd ? "79.3%" : "100%",
2023-09-01 08:27:14 +00:00
gridRow: upMd ? "span 2" : "",
justifySelf: upMd ? "end" : "start",
mb: upMd ? undefined : "50px",
}}
>
Сервисы помогают предпринимателям, маркетологам и агентствам {upMd ? <br /> : null}сделать интернет-маркетинг
прозрачным и эффективным. С нами не придется тратить рекламный бюджет впустую и терять клиентов на сайте.
2023-09-01 08:27:14 +00:00
</Typography>
<Box
sx={{
display: "flex",
flexDirection: upMd ? "row" : "column",
alignItems: "start",
gap: upMd ? "24px" : "20px",
}}
2022-11-17 12:25:23 +00:00
>
<Button sx={{ width: "180px" }} variant="pena-outlined-dark">
Подробнее
</Button>
<Button sx={{ width: "180px" }} variant="pena-contained-light">
Подробнее
</Button>
2023-09-01 08:27:14 +00:00
</Box>
</Box>
</SectionWrapper>
);
2023-08-22 10:28:22 +00:00
}