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

91 lines
3.4 KiB
TypeScript
Raw Normal View History

2022-11-17 12:25:23 +00:00
import { Box, Typography, useMediaQuery, useTheme } from "@mui/material";
import pena_illustration02 from "../../assets/pena_illustration02.png";
import Button from "../Button";
2022-11-18 16:51:10 +00:00
import PenaLogo from "../PenaLogo";
2022-11-17 12:25:23 +00:00
import SectionWrapper from "../SectionWrapper";
export default function Section1() {
const theme = useTheme();
2022-11-18 17:45:56 +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.lightPurple.main,
}}
2022-11-18 16:51:10 +00:00
sx={{
2022-11-17 12:25:23 +00:00
display: "flex",
pt: "70px",
2022-11-18 17:45:56 +00:00
pb: upMd ? "40px" : "70px",
justifyContent: "space-between",
flexDirection: upMd ? "row" : "column",
2022-11-17 12:25:23 +00:00
}}
>
<Box
sx={{
display: "flex",
flexDirection: "column",
2022-11-18 17:45:56 +00:00
flexBasis: upMd ? "310px" : undefined,
2022-11-17 12:25:23 +00:00
gap: "70px",
2022-11-18 17:45:56 +00:00
order: upMd ? 1 : 2,
mb: upMd ? undefined : "30px",
2022-11-17 12:25:23 +00:00
}}
>
2022-11-19 20:31:19 +00:00
{upMd && <PenaLogo width={180} theme="dark" />}
2022-11-17 12:25:23 +00:00
<Typography variant="h2">Сервисы прокачки маркетинга</Typography>
</Box>
<Box
sx={{
2022-11-18 17:45:56 +00:00
flexShrink: 1,
2022-11-17 12:25:23 +00:00
textAlign: "center",
2022-11-18 17:45:56 +00:00
order: upMd ? 2 : 1,
mx: upMd ? "30px" : 0,
mt: upMd ? undefined : "-70px",
mb: upMd ? undefined : "-30px",
alignSelf: "center",
aspectRatio: "1 / 1",
width: upMd ? undefined : "100%",
maxWidth: "301px",
maxHeight: "301px",
2022-11-17 12:25:23 +00:00
}}
>
<img
style={{
2022-11-18 17:45:56 +00:00
transform: upMd ? undefined : "rotate(-90deg)",
width: upMd ? "100%" : `${170 / 301 * 100}%`,
2022-11-17 12:25:23 +00:00
}}
src={pena_illustration02}
alt="pena illustration"
/>
</Box>
<Box
sx={{
display: "flex",
flexDirection: "column",
2022-11-18 17:45:56 +00:00
flexBasis: upMd ? "360px" : undefined,
2022-11-17 12:25:23 +00:00
alignItems: "start",
2022-11-18 17:45:56 +00:00
alignSelf: upMd ? "center" : "start",
mt: upMd ? "70px" : undefined,
2022-11-17 12:25:23 +00:00
order: 3,
}}
>
<Box sx={{ mb: "11px" }}>
<Typography>Покажут эффективность рекламы</Typography>
<Typography>Соберут все обращения клиентов</Typography>
<Typography>Повысят конверсию сайта</Typography>
</Box>
<Typography sx={{ mb: "40px" }}>И все это в едином кабинете</Typography>
<Button
variant="contained"
2022-11-19 20:31:19 +00:00
sx={{
backgroundColor: theme.palette.custom.brightPurple.main,
2022-11-21 12:44:50 +00:00
color: theme.palette.primary.main,
2022-11-19 20:31:19 +00:00
}}
2022-11-17 12:25:23 +00:00
>Подробнее</Button>
</Box>
2022-11-18 17:45:56 +00:00
</SectionWrapper >
2022-11-17 12:25:23 +00:00
);
};