frontPanel/src/pages/Landing/Questions.tsx

129 lines
5.3 KiB
TypeScript
Raw Normal View History

2023-10-04 22:21:17 +00:00
import React from 'react';
import Box from "@mui/material/Box";
import Typography from '@mui/material/Typography';
import Button from "@mui/material/Button";
import SectionStyled from './SectionStyled';
import {styled} from "@mui/material/styles";
import {useMediaQuery, useTheme} from "@mui/material";
2023-10-04 22:21:17 +00:00
const BoxSpan = styled('div')(({ theme }) => ({
[theme.breakpoints.down('lg')]: {
alignItems: 'center',
justifyContent: 'center',
textAlign: 'center',
paddingTop: '20px',
width: '100%',
},
}));
const BoxButtons = styled('div')(({ theme }) => ({
[theme.breakpoints.down('xs')]: {
justifyContent: 'center',
}
}));
export default function Component() {
const theme = useTheme();
const isMobile = useMediaQuery(theme.breakpoints.down(600));
2023-10-04 22:21:17 +00:00
return(
<SectionStyled tag={'section'} bg={'#7E2AEA'} mwidth={'1160px'}
sxsect={{
minHeight: '350px',
}}
sxcont={{
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-between',
alignItems: 'center',
padding: isMobile ? '85px 16px 50px 16px' : 0,
2023-10-04 22:21:17 +00:00
}}>
<Box
2023-10-04 22:21:17 +00:00
sx={{
display: 'flex',
flexDirection: 'column',
}}
>
<Typography variant='h1' color={'#FFFFFF'}
sx={{
fontSize: isMobile ? '24px' : '36px',
2023-10-04 22:21:17 +00:00
fontWeight: '500',
lineHeight: '43px',
}}
>
Остались вопросы?
</Typography>
{isMobile &&
<Typography color={'#FFFFFF'} fontSize={'18px'} marginTop={'20px'}>
Сервисы помогают предпринимателям, маркетологам и агентствам сделать
интернет-маркетинг прозрачным и эффективным. С нами не придется тратить
рекламный бюджет впустую и терять клиентов на сайте.
</Typography>
}
2023-10-04 22:21:17 +00:00
<BoxButtons
sx={{
display: 'flex',
flexWrap: 'wrap',
paddingTop: '25px',
}}
>
<Button variant="outlined"
sx={{
width: '180px',
marginTop: isMobile ? '25px' : '40px',
2023-10-04 22:21:17 +00:00
border: '1px solid #ffffff',
color: '#ffffff',
backgroundColor: "transparent",
textTransform: 'none',
fontWeight: '400',
fontSize: '18px',
lineHeight: '24px',
padding: '10px 40px',
borderRadius: '8px',
}}
>
Подробнее
</Button>
<Button variant="contained"
sx={{
width: '180px',
marginTop: isMobile ? '20px' : '40px',
marginLeft: isMobile ? 0 : '22px',
2023-10-04 22:21:17 +00:00
backgroundColor: '#FFFFFF',
color: '#252734',
textTransform: 'none',
fontWeight: '400',
fontSize: '18px',
lineHeight: '24px',
padding: '10px 40px',
borderRadius: '8px',
}}
>
Подробнее
</Button>
</BoxButtons>
</Box>
2023-10-04 22:21:17 +00:00
<BoxSpan
sx={{
display: 'flex',
justifyContent: 'end',
}}
>
<Box
sx={{
display: isMobile ? "none" : "flex",
2023-10-04 22:21:17 +00:00
minHeight: '139px',
maxWidth: '460px',
}}
>
<Typography color={'#FFFFFF'} fontSize={'18px'}>
Сервисы помогают предпринимателям, маркетологам и агентствам сделать
интернет-маркетинг прозрачным и эффективным. С нами не придется тратить
рекламный бюджет впустую и терять клиентов на сайте.
2023-10-04 22:21:17 +00:00
</Typography>
</Box>
</BoxSpan>
</SectionStyled>
)
}