frontPanel/src/pages/Landing/Counter.tsx

78 lines
2.9 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, useMediaQuery, useTheme} from "@mui/material";
2023-10-04 22:21:17 +00:00
export default function Counter() {
const theme = useTheme();
const isMobile = useMediaQuery(theme.breakpoints.down(600));
2023-10-04 22:21:17 +00:00
return(
<Box
2023-10-04 22:21:17 +00:00
sx={{
width: '100%',
fontFamily: 'Rubik',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
height: 0,
boxSizing: "border-box",
padding: isMobile ? "0 40px" : undefined,
2023-10-04 22:21:17 +00:00
}}
>
<Box
sx={{
maxWidth: '1160px',
height: isMobile ? "587px": "190px",
2023-10-04 22:21:17 +00:00
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
flexWrap: 'wrap',
backgroundColor: '#7E2AEA',
color: '#ffffff',
borderRadius: '8px',
boxSizing: "border-box",
padding: isMobile ? '10px 60px 30px 35px' : '30px 60px 30px 20px',
2023-10-04 22:21:17 +00:00
width: '100%',
marginTop: isMobile ? "483px" : "106px"
2023-10-04 22:21:17 +00:00
}}
>
<Box
sx={{
width: '203px',
}}
>
<Typography variant='h3' fontSize={isMobile ? '42px' : '50px'} fontWeight={'500'}>14 дней</Typography>
2023-10-04 22:21:17 +00:00
<Typography> бесплатно, полный функционал</Typography>
</Box>
<Box>
<Typography variant='h3' fontSize={isMobile ? '42px' : '50px'} fontWeight={'500'}>5 мин</Typography>
2023-10-04 22:21:17 +00:00
<Box
sx={{
width: '131px',
}}
>
<Typography >для создания квиза</Typography>
</Box>
</Box>
<Box>
<Typography variant='h3' fontSize={isMobile ? '42px' : '50px'} fontWeight={'500'}>482 800</Typography>
2023-10-04 22:21:17 +00:00
<Box
sx={{
width: '200px',
}}
>
<Typography >квизов создано клиентами</Typography>
</Box>
</Box>
<Box
sx={{
width: '177px',
}}
>
<Typography variant='h3' fontSize={isMobile ? '42px' : '50px'} fontWeight={'500'}>760</Typography>
2023-10-04 22:21:17 +00:00
<Typography>готовых шаблонов для разных ниш</Typography>
</Box>
</Box>
</Box>
2023-10-04 22:21:17 +00:00
)
}