2023-10-04 22:21:17 +00:00
|
|
|
|
import React from 'react';
|
|
|
|
|
import Box from '@mui/material/Box';
|
|
|
|
|
import Button from '@mui/material/Button';
|
|
|
|
|
// import logotip from "./image/black_logo_PenaHab.svg";
|
2023-10-10 22:22:03 +00:00
|
|
|
|
import {Typography, useMediaQuery, useTheme} from "@mui/material";
|
2023-10-04 22:21:17 +00:00
|
|
|
|
import abstraction from '../../assets/Quiz-main.png'
|
|
|
|
|
import SectionStyled from './SectionStyled';
|
|
|
|
|
import {styled} from "@mui/material/styles";
|
2023-10-05 06:25:06 +00:00
|
|
|
|
import { Link, redirect } from 'react-router-dom';
|
2023-10-04 22:21:17 +00:00
|
|
|
|
|
|
|
|
|
export default function Component() {
|
2023-10-10 22:22:03 +00:00
|
|
|
|
const theme = useTheme();
|
|
|
|
|
const isMobile = useMediaQuery(theme.breakpoints.down(600));
|
2023-10-11 13:17:10 +00:00
|
|
|
|
const isTablet = useMediaQuery(theme.breakpoints.down(1000))
|
2023-10-04 22:21:17 +00:00
|
|
|
|
return(
|
|
|
|
|
<SectionStyled tag={'section'} bg={'#f2f3f7'} mwidth={'1160px'}
|
|
|
|
|
sxsect={{
|
2023-10-11 13:17:10 +00:00
|
|
|
|
height: isMobile ? '702px' : (isTablet ? '986px' : '660px'),
|
2023-10-04 22:21:17 +00:00
|
|
|
|
}}
|
|
|
|
|
sxcont={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
alignItems: 'center',
|
2023-10-11 13:17:10 +00:00
|
|
|
|
padding: isMobile ? "300px 16px 0 16px" : (isTablet ? "494px 40px 0 40px" : 0),
|
|
|
|
|
marginBottom: isMobile ? '55px' : (isTablet ? 0 : "55px"),
|
2023-10-04 22:21:17 +00:00
|
|
|
|
}}>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
gap: '30px',
|
|
|
|
|
height: '100%',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
alignItems: "flex-start",
|
2023-10-10 22:22:03 +00:00
|
|
|
|
position: 'relative',
|
2023-10-04 22:21:17 +00:00
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Typography variant='h2'>
|
2023-10-10 22:22:03 +00:00
|
|
|
|
Pena Quiz
|
2023-10-04 22:21:17 +00:00
|
|
|
|
</Typography>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
2023-10-11 13:17:10 +00:00
|
|
|
|
maxWidth: isTablet ? '715px' : '420px',
|
2023-10-04 22:21:17 +00:00
|
|
|
|
minHeight: '64px',
|
|
|
|
|
}}>
|
|
|
|
|
<Typography variant='body1'>
|
2023-10-11 13:17:10 +00:00
|
|
|
|
Помогаем посетителю оставить заявку. <br style={{display: isTablet ? 'flex' : "none"}}/> Готовые шаблоны квизов с легкой установкой на любой сайт и социальные сети
|
2023-10-04 22:21:17 +00:00
|
|
|
|
</Typography>
|
|
|
|
|
</Box>
|
2023-10-05 06:25:06 +00:00
|
|
|
|
<Link to="/list" style={{textDecoration: "none"}}>
|
2023-10-04 22:21:17 +00:00
|
|
|
|
<Button variant="contained"
|
|
|
|
|
>
|
|
|
|
|
Попробуйте бесплатно
|
2023-10-05 06:25:06 +00:00
|
|
|
|
|
2023-10-04 22:21:17 +00:00
|
|
|
|
</Button>
|
2023-10-05 06:25:06 +00:00
|
|
|
|
</Link>
|
2023-10-04 22:21:17 +00:00
|
|
|
|
|
|
|
|
|
<Box
|
|
|
|
|
component={"img"}
|
|
|
|
|
src={abstraction}
|
|
|
|
|
sx={{
|
|
|
|
|
position: "absolute",
|
2023-10-11 13:17:10 +00:00
|
|
|
|
bottom: isMobile ? undefined : (isTablet? "138px" : "-291px"),
|
2023-10-10 22:22:03 +00:00
|
|
|
|
width: isMobile ? "430px" : "810px",
|
2023-10-11 13:17:10 +00:00
|
|
|
|
left: isMobile ? "-44px" : (isTablet? "54px" : "401px"),
|
2023-10-10 22:22:03 +00:00
|
|
|
|
top: isMobile ? "-386px" : undefined
|
2023-10-04 22:21:17 +00:00
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</Box>
|
|
|
|
|
</SectionStyled>
|
|
|
|
|
)
|
|
|
|
|
}
|