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

99 lines
3.8 KiB
TypeScript
Raw Normal View History

2022-11-17 12:25:23 +00:00
import { Box, Typography, useMediaQuery, useTheme } from "@mui/material";
2022-11-22 21:44:42 +00:00
import CustomButton from "../../components/CustomButton";
2022-11-21 17:53:16 +00:00
import PenaLogo from "../../components/PenaLogo";
import SectionWrapper from "../../components/SectionWrapper";
2022-12-24 12:36:05 +00:00
import mainShapeVideo from "../../assets/animations/main.webm";
import previewMain from "../../assets/animations/preview_main.png";
2022-11-17 12:25:23 +00:00
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-24 19:22:30 +00:00
backgroundColor: theme.palette.lightPurple.main,
2022-11-17 12:25:23 +00:00
}}
2022-11-18 16:51:10 +00:00
sx={{
2022-11-17 12:25:23 +00:00
display: "flex",
2022-12-24 12:36:05 +00:00
pt: upMd ? "70px" : "20px",
pb: "70px",
2022-11-18 17:45:56 +00:00
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-24 18:08:51 +00:00
{upMd && <PenaLogo width={180} />}
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,
2022-12-24 12:36:05 +00:00
// mt: upMd ? undefined : "-70px",
// mb: upMd ? undefined : "-30px",
2022-11-18 17:45:56 +00:00
alignSelf: "center",
aspectRatio: "1 / 1",
width: upMd ? undefined : "100%",
maxWidth: "301px",
maxHeight: "301px",
2022-11-17 12:25:23 +00:00
}}
>
2022-12-24 12:36:05 +00:00
<video
autoPlay
loop
muted
playsInline
poster={previewMain}
2022-11-17 12:25:23 +00:00
style={{
2022-12-24 12:36:05 +00:00
width: "100%",
height: "100%",
// transform: upMd ? undefined : "rotate(-90deg)",
2022-11-17 12:25:23 +00:00
}}
2022-12-24 12:36:05 +00:00
>
<source src={mainShapeVideo} type="video/webm" />
Your browser doesn't support HTML5 video tag.
</video>
2022-11-17 12:25:23 +00:00
</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>
2022-11-22 21:44:42 +00:00
<CustomButton
2022-11-17 12:25:23 +00:00
variant="contained"
2022-11-19 20:31:19 +00:00
sx={{
2022-11-24 19:22:30 +00:00
backgroundColor: theme.palette.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-22 21:44:42 +00:00
>Подробнее</CustomButton>
2022-11-17 12:25:23 +00:00
</Box>
2022-11-18 17:45:56 +00:00
</SectionWrapper >
2022-11-17 12:25:23 +00:00
);
};