2024-01-08 21:00:40 +00:00
import React , { useState } from "react" ;
2023-12-31 02:53:25 +00:00
import Box from "@mui/material/Box" ;
2024-01-09 11:34:09 +00:00
import { Fade , Typography , Zoom , useMediaQuery , useTheme } from "@mui/material" ;
2023-12-31 02:53:25 +00:00
import SectionStyled from "./SectionStyled" ;
import Link from "@mui/material/Link" ;
import { styled } from "@mui/material/styles" ;
2023-10-07 07:09:00 +00:00
import Notebook from "../../assets/LandingPict/notebook" ;
import BigBlock from "./images/bigblock.png" ;
2024-01-08 21:00:40 +00:00
import businessTasks2 from "./images/businessTasks2.png" ;
import businessTasks3 from "./images/businessTasks3.png" ;
import businessTasks4 from "./images/businessTasks4.png" ;
2023-10-04 22:21:17 +00:00
import Button from "@mui/material/Button" ;
// import Note from './image/note.png'
2023-12-31 02:53:25 +00:00
import ArrowBackIcon from "@mui/icons-material/ArrowBack" ;
import ArrowForwardIcon from "@mui/icons-material/ArrowForward" ;
2023-10-04 22:21:17 +00:00
// import CalendarW from './image/calendar-W.svg'
// import CalendarP from './image/calendar-P.svg'
import CalendarIcon from "../../assets/LandingPict/calendarIcon" ;
2024-01-08 21:00:40 +00:00
import { PieС hartIcon } from "@icons/PieС hartIcon" ;
import { SegmentationIcon } from "@icons/SegmentationIcon" ;
import { TestingIcon } from "@icons/TestingIcon" ;
import { EcommerceIcon } from "@icons/EcommerceIcon" ;
2024-01-09 11:34:09 +00:00
import { DesktopQuizCard } from "./DesktopQuizCard" ;
import { MobileQuizCard } from "./MobileQuizCard" ;
2023-10-04 22:21:17 +00:00
2023-10-10 22:22:03 +00:00
// const BoxUse = styled('div')(({ theme }) => ({
// [theme.breakpoints.down('md')]: {
// justifyContent: 'center',
// },
// }));
//
// const BoxButtons = styled('div')(({ theme }) => ({
// [theme.breakpoints.down('md')]: {
// flexDirection: 'column',
// alignItems: 'center',
// height: '100px',
// width: '260px'
// },
// }));
2023-10-04 22:21:17 +00:00
2023-12-31 02:53:25 +00:00
const BoxQuiz = styled ( "div" ) ( ( { theme } ) = > ( {
[ theme . breakpoints . down ( "md" ) ] : {
maxWidth : "530px" ,
} ,
2023-10-04 22:21:17 +00:00
} ) ) ;
2024-01-08 21:00:40 +00:00
const businessTasks = {
research : {
header : "Исследуйте аудиторию и проверяйте гипотезы" ,
text : "Опросник помогает проверять гипотезы и принимать грамотные решения основанные на данных. Создавайте опросы, собирайте обратную связь и анализируйте ответы в удобной аналитике в личном кабинете. " ,
image : BigBlock ,
} ,
segmentation : {
header :
"Лучше узнайте свою аудиторию, сегментируйте и собирайте заявки с помощью квиза" ,
text : "Квиз легко создать самому за 10 минут: настроить логику вопросов, результаты и получить готовую ссылку." ,
image : businessTasks2 ,
} ,
testing : {
header :
"Создавайте интерактивные тесты, показывайте правильные и неправильные ответы" ,
text : "Тест в игровой форме увеличит вовлеченность пользователей. Создать е г о легко: задайте вопрос и отметьте правильные варианты ответов." ,
image : businessTasks3 ,
} ,
eс ommerce : {
header :
"Консультируйте клиентов по ассортименту и помогите определиться с выбором" ,
text : "Тест в игровой форме увеличит вовлеченность пользователей. Создать е г о легко: задайте вопрос и отметьте правильные варианты ответов." ,
image : businessTasks4 ,
} ,
} ;
2023-12-31 02:53:25 +00:00
function Quiz() {
return (
< BoxQuiz
sx = { {
maxWidth : "360px" ,
height : "462px" ,
backgroundColor : "#ffffff" ,
borderRadius : "12px" ,
display : "flex" ,
flexDirection : "column" ,
// justifyContent: 'space-around',
alignItems : "center" ,
padding : "20px 20px 10px 20px" ,
marginTop : "36px" ,
gap : "25px" ,
boxSizing : "border-box" ,
} }
>
< Box >
< Notebook / >
< / Box >
< Box
sx = { {
minHeight : "86px" ,
display : "flex" ,
flexDirection : "column" ,
justifyContent : "space-between" ,
} }
>
< Typography variant = "h6" > О б у ч е н и е а н г л и й с к о м у < / Typography >
< Typography color = { "#4D4D4D" } >
К в и з в с т о р и с д л я б л о г е р а п р е п о д а в а т е л я а н г л и й с к о г о я з ы к а .
< / Typography >
< / Box >
< Box
sx = { {
display : "flex" ,
justifyContent : "space-between" ,
width : "100%" ,
} }
>
< Box
sx = { {
display : "flex" ,
flexDirection : "column" ,
} }
>
< Typography fontWeight = { 600 } > п е р и о д : < / Typography >
< Typography fontWeight = { 600 } > т р а ф и к : < / Typography >
< Typography fontWeight = { 600 } > р е з у л ь т а т : < / Typography >
< / Box >
< Box
sx = { {
display : "flex" ,
flexDirection : "column" ,
alignItems : "end" ,
} }
>
< Typography > 24 ч а с а < / Typography >
< Typography > С т о р и с ы < / Typography >
< Typography > 386 з а я в о к < / Typography >
< / Box >
< / Box >
< Box
sx = { {
width : "100%" ,
display : "flex" ,
justifyContent : "start" ,
} }
>
< Link
href = "#"
sx = { {
color : "#7E2AEA" ,
textUnderlineOffset : "7px" ,
fontSize : "16px" ,
fontWeight : "500" ,
lineHeight : "20px" ,
textAlign : "center" ,
} }
>
П о д р о б н е е →
< / Link >
< / Box >
< / BoxQuiz >
) ;
}
export default function Component() {
const theme = useTheme ( ) ;
const isMobile = useMediaQuery ( theme . breakpoints . down ( 600 ) ) ;
const isTablet = useMediaQuery ( theme . breakpoints . down ( 1000 ) ) ;
2024-01-08 21:00:40 +00:00
const [ task , setTask ] = useState <
"research" | "segmentation" | "testing" | "eс ommerce"
> ( "research" ) ;
2024-01-09 11:34:09 +00:00
const [ open , setOpen ] = useState < boolean > ( false ) ;
2023-12-31 02:53:25 +00:00
return (
< SectionStyled
tag = { "section" }
bg = { "#f2f3f7" }
mwidth = { "1160px" }
2024-01-09 11:34:09 +00:00
sxsect = { {
minHeight : isMobile ? "auto" : "809px" ,
alignItems : "flex-start" ,
} }
2023-12-31 02:53:25 +00:00
sxcont = { {
display : "flex" ,
flexDirection : "column" ,
justifyContent : "space-between" ,
height : "100%" ,
padding : isMobile
? "70px 16px 70px 16px"
: isTablet
? "16px 40px 50px 40px"
: "81px 0 50px 0" ,
} }
>
{ /*<Box*/ }
{ /* sx={{*/ }
{ /* height: '50%',*/ }
{ /* display: 'flex',*/ }
{ /* flexDirection: 'column',*/ }
{ /* justifyContent: 'space-around',*/ }
{ /* marginTop: '34px',*/ }
{ /* width:'100%',*/ }
{ /* }}*/ }
{ /*>*/ }
{ /* <BoxUse*/ }
{ /* sx={{*/ }
{ /* display: 'flex',*/ }
{ /* flexWrap: 'wrap',*/ }
{ /* justifyContent: 'space-between',*/ }
{ /* marginTop: '20px',*/ }
{ /* }}*/ }
{ /* >*/ }
{ /* <Box*/ }
{ /* sx={{*/ }
{ /* display: 'flex',*/ }
{ /* flexDirection: 'column',*/ }
{ /* gap: '20px'*/ }
{ /* }}*/ }
{ /* >*/ }
{ /* <Typography variant='h6' fontSize={'36px'}>Как используют квиз</Typography>*/ }
{ /* <Typography marginBottom={'10px'} fontSize={'18px'}>В крупном и малом бизнесе</Typography>*/ }
{ /* </Box>*/ }
{ /* <BoxButtons*/ }
{ /* sx={{*/ }
{ /* display: 'flex',*/ }
{ /* justifyContent: 'space-between',*/ }
{ /* alignItems: 'center',*/ }
{ /* flexWrap: 'wrap',*/ }
{ /* marginBottom: '40px',*/ }
{ /* maxWidth: '357px',*/ }
{ /* width: '100%',*/ }
{ /* }}*/ }
{ /* >*/ }
{ /* <Button variant='outlined'*/ }
{ /* sx={{*/ }
{ /* color: '#000000',*/ }
{ /* borderColor: '#000000',*/ }
{ /* }}*/ }
{ /* >*/ }
{ /* Посмотреть все кейсы*/ }
{ /* </Button>*/ }
{ /* <Box>*/ }
{ /* <Button variant='contained'*/ }
{ /* sx={{*/ }
{ /* height: '44px',*/ }
{ /* width: '44px',*/ }
{ /* borderRadius: '50%',*/ }
{ /* minWidth: '44px',*/ }
{ /* marginRight: '10px',*/ }
{ /* }}*/ }
{ /* ><ArrowBackIcon/></Button>*/ }
{ /* <Button variant='contained'*/ }
{ /* sx={{*/ }
{ /* height: '44px',*/ }
{ /* width: '44px',*/ }
{ /* borderRadius: '50%',*/ }
{ /* minWidth: '44px',*/ }
{ /* }}*/ }
{ /* ><ArrowForwardIcon/></Button>*/ }
{ /* </Box>*/ }
{ /* </BoxButtons>*/ }
{ /* </BoxUse>*/ }
{ /* <BoxUse*/ }
{ /* sx={{*/ }
{ /* display: 'flex',*/ }
{ /* justifyContent: 'space-between',*/ }
{ /* flexWrap: 'wrap',*/ }
{ /* minHeight: '530px',*/ }
{ /* marginTop: '6px',*/ }
{ /* }}*/ }
{ /* >*/ }
{ /* <Quiz/>*/ }
{ /* <Quiz/>*/ }
{ /* <Quiz/>*/ }
{ /* </BoxUse>*/ }
{ /*</Box>*/ }
< Box
sx = { {
height : "50%" ,
display : "flex" ,
flexDirection : "column" ,
justifyContent : "space-around" ,
} }
>
< Box
sx = { {
display : "flex" ,
flexDirection : "column" ,
gap : "16px" ,
maxWidth : isMobile ? "273px" : undefined ,
} }
>
< Typography
variant = "h6"
fontSize = { "36px" }
maxWidth = { "420px" }
lineHeight = { "42.66px" }
>
Ч т о е щ е м о ж н о д е л а т ь с О п р о с н и к о м
< / Typography >
< Typography fontSize = { "18px" } >
И з я щ н о е р е ш е н и е и с с л е д о в а т е л ь с к и х и б и з н е с - з а д а ч
< / Typography >
< / Box >
2024-01-09 11:34:09 +00:00
{ ! isTablet && (
< Box
2024-01-08 21:00:40 +00:00
sx = { {
display : "flex" ,
2024-01-09 11:34:09 +00:00
justifyContent : "space-between" ,
width : "100%" ,
gap : "20px" ,
marginTop : "60px" ,
2024-01-08 21:00:40 +00:00
} }
>
2024-01-09 11:34:09 +00:00
< Button
onClick = { ( ) = > setTask ( "research" ) }
2024-01-08 21:00:40 +00:00
sx = { {
2024-01-09 11:34:09 +00:00
width : "275px" ,
height : "66px" ,
borderRadius : "12px" ,
display : "flex" ,
2024-01-08 21:00:40 +00:00
alignItems : "center" ,
2024-01-09 11:34:09 +00:00
gap : "15px" ,
justifyContent : "flex-start" ,
textTransform : "none" ,
backgroundColor : task !== "research" ? "white" : "#7e2aea" ,
color : task !== "research" ? "black" : "#ffffff" ,
2024-01-08 21:00:40 +00:00
} }
>
2024-01-09 11:34:09 +00:00
< Box
sx = { {
borderRadius : "8px" ,
minWidth : "36px" ,
height : "36px" ,
background : task !== "research" ? "#7E2AEA" : "white" ,
display : " flex" ,
justifyContent : "center" ,
alignItems : "center" ,
2024-01-08 21:00:40 +00:00
} }
2024-01-09 11:34:09 +00:00
>
< PieС hartIcon
style = { {
color : task !== "research" ? "white" : "#7E2AEA" ,
fontSize : "24px" ,
} }
/ >
< / Box >
2024-01-08 21:00:40 +00:00
2024-01-09 11:34:09 +00:00
< Typography > И с с л е д о в а н и я < / Typography >
< / Button >
< Button
onClick = { ( ) = > setTask ( "segmentation" ) }
2024-01-08 21:00:40 +00:00
sx = { {
2024-01-09 11:34:09 +00:00
width : "275px" ,
height : "66px" ,
borderRadius : "12px" ,
display : "flex" ,
gap : "15px" ,
2024-01-08 21:00:40 +00:00
alignItems : "center" ,
2024-01-09 11:34:09 +00:00
justifyContent : "flex-start" ,
textTransform : "none" ,
backgroundColor : task !== "segmentation" ? "white" : "#7e2aea" ,
color : task !== "segmentation" ? "black" : "#ffffff" ,
2024-01-08 21:00:40 +00:00
} }
>
2024-01-09 11:34:09 +00:00
< Box
sx = { {
borderRadius : "8px" ,
minWidth : "36px" ,
height : "36px" ,
background : task !== "segmentation" ? "#7E2AEA" : "white" ,
display : " flex" ,
justifyContent : "center" ,
alignItems : "center" ,
2024-01-08 21:00:40 +00:00
} }
2024-01-09 11:34:09 +00:00
>
< SegmentationIcon
style = { {
color : task !== "segmentation" ? "white" : "#7E2AEA" ,
fontSize : "24px" ,
} }
/ >
< / Box >
2024-01-08 21:00:40 +00:00
2024-01-09 11:34:09 +00:00
< Typography > С е г м е н т а ц и я < / Typography >
< / Button >
< Button
onClick = { ( ) = > setTask ( "testing" ) }
2024-01-08 21:00:40 +00:00
sx = { {
2024-01-09 11:34:09 +00:00
width : "275px" ,
height : "66px" ,
borderRadius : "12px" ,
display : "flex" ,
gap : "15px" ,
2024-01-08 21:00:40 +00:00
alignItems : "center" ,
2024-01-09 11:34:09 +00:00
justifyContent : "flex-start" ,
textTransform : "none" ,
backgroundColor : task !== "testing" ? "white" : "#7e2aea" ,
color : task !== "testing" ? "black" : "#ffffff" ,
2024-01-08 21:00:40 +00:00
} }
>
2024-01-09 11:34:09 +00:00
< Box
sx = { {
borderRadius : "8px" ,
minWidth : "36px" ,
height : "36px" ,
background : task !== "testing" ? "#7E2AEA" : "white" ,
display : " flex" ,
justifyContent : "center" ,
alignItems : "center" ,
2024-01-08 21:00:40 +00:00
} }
2024-01-09 11:34:09 +00:00
>
< TestingIcon
style = { {
color : task !== "testing" ? "white" : "#7E2AEA" ,
fontSize : "24px" ,
} }
/ >
< / Box >
2024-01-08 21:00:40 +00:00
2024-01-09 11:34:09 +00:00
< Typography > Т е с т и р о в а н и е < / Typography >
< / Button >
< Button
onClick = { ( ) = > setTask ( "eс ommerce" ) }
2024-01-08 21:00:40 +00:00
sx = { {
2024-01-09 11:34:09 +00:00
width : "275px" ,
height : "66px" ,
borderRadius : "12px" ,
display : "flex" ,
gap : "15px" ,
2024-01-08 21:00:40 +00:00
alignItems : "center" ,
2024-01-09 11:34:09 +00:00
justifyContent : "flex-start" ,
textTransform : "none" ,
backgroundColor : task !== "eс ommerce" ? "white" : "#7e2aea" ,
color : task !== "eс ommerce" ? "black" : "#ffffff" ,
2024-01-08 21:00:40 +00:00
} }
>
2024-01-09 11:34:09 +00:00
< Box
sx = { {
borderRadius : "8px" ,
minWidth : "36px" ,
height : "36px" ,
background : task !== "eс ommerce" ? "#7E2AEA" : "white" ,
display : " flex" ,
justifyContent : "center" ,
alignItems : "center" ,
2024-01-08 21:00:40 +00:00
} }
2024-01-09 11:34:09 +00:00
>
< EcommerceIcon
style = { {
color : task !== "eс ommerce" ? "white" : "#7E2AEA" ,
fontSize : "24px" ,
} }
/ >
< / Box >
< Typography > E - commerce < / Typography >
< / Button >
< / Box >
) }
2024-01-08 21:00:40 +00:00
2024-01-09 11:34:09 +00:00
{ isTablet ? (
2023-12-31 02:53:25 +00:00
< Box
2023-10-04 22:21:17 +00:00
sx = { {
2023-12-31 02:53:25 +00:00
display : "flex" ,
flexDirection : "column" ,
2024-01-09 11:34:09 +00:00
gap : "30px" ,
mt : isMobile ? "40px" : "50px" ,
2023-12-31 02:53:25 +00:00
} }
>
2024-01-09 11:34:09 +00:00
< MobileQuizCard
header = { businessTasks . research . header }
image = { businessTasks . research . image }
text = { businessTasks . research . text }
textIcon = "Исследования"
icon = {
< PieС hartIcon
style = { {
color : "white" ,
fontSize : "24px" ,
} }
/ >
}
/ >
< MobileQuizCard
header = { businessTasks . segmentation . header }
image = { businessTasks . segmentation . image }
text = { businessTasks . segmentation . text }
textIcon = "Сегментация"
icon = {
< SegmentationIcon
style = { {
color : "white" ,
fontSize : "24px" ,
} }
/ >
}
/ >
< MobileQuizCard
header = { businessTasks . testing . header }
image = { businessTasks . testing . image }
text = { businessTasks . testing . text }
textIcon = "Тестирование"
icon = {
< TestingIcon
style = { {
color : "white" ,
fontSize : "24px" ,
} }
/ >
}
/ >
< MobileQuizCard
header = { businessTasks . eс ommerce . header }
image = { businessTasks . eс ommerce . image }
text = { businessTasks . eс ommerce . text }
textIcon = "E-commerce"
icon = {
< EcommerceIcon
style = { {
color : "white" ,
fontSize : "24px" ,
} }
/ >
}
2023-12-31 02:53:25 +00:00
/ >
< / Box >
2024-01-09 11:34:09 +00:00
) : (
< >
< DesktopQuizCard
isOpen = { task === "research" }
header = { businessTasks . research . header }
image = { businessTasks . research . image }
text = { businessTasks . research . text }
/ >
< DesktopQuizCard
isOpen = { task === "segmentation" }
header = { businessTasks . segmentation . header }
image = { businessTasks . segmentation . image }
text = { businessTasks . segmentation . text }
/ >
< DesktopQuizCard
isOpen = { task === "testing" }
header = { businessTasks . testing . header }
image = { businessTasks . testing . image }
text = { businessTasks . testing . text }
/ >
< DesktopQuizCard
isOpen = { task === "eс ommerce" }
header = { businessTasks . eс ommerce . header }
image = { businessTasks . eс ommerce . image }
text = { businessTasks . eс ommerce . text }
/ >
< / >
) }
2023-12-31 02:53:25 +00:00
< / Box >
< / SectionStyled >
) ;
2023-10-04 22:21:17 +00:00
}