2025-05-25 13:21:19 +00:00
|
|
|
|
import { Box, Container, Typography, TextField, Button, List, ListItem, IconButton } from "@mui/material";
|
|
|
|
|
import { InfoPopover } from '@ui_kit/InfoPopover';
|
|
|
|
|
import CopyIcon from "@/assets/icons/CopyIcon";
|
|
|
|
|
import GenderAndAgeSelector from "./GenderAndAgeSelector";
|
2025-06-01 14:05:41 +00:00
|
|
|
|
import { useEffect, useState } from "react";
|
2025-05-25 13:21:19 +00:00
|
|
|
|
import CustomTextField from "@ui_kit/CustomTextField";
|
|
|
|
|
import Collapse from '@mui/material/Collapse';
|
|
|
|
|
import { ArrowDownIcon } from "../../assets/icons/questionsPage/ArrowDownIcon";
|
|
|
|
|
import { useTheme } from "@mui/material";
|
2025-06-01 14:05:41 +00:00
|
|
|
|
import { auditoryAdd, auditoryGet } from "@/api/auditory";
|
|
|
|
|
import { useCurrentQuiz } from "@/stores/quizes/hooks";
|
|
|
|
|
import { AuditoryList } from "./AuditoryList";
|
2025-05-25 13:21:19 +00:00
|
|
|
|
|
|
|
|
|
const PURPLE = "#7E2AEA";
|
|
|
|
|
|
|
|
|
|
export default function PersonalizationAI() {
|
|
|
|
|
const theme = useTheme();
|
2025-06-01 14:05:41 +00:00
|
|
|
|
const [gender, setGender] = useState('');
|
2025-05-25 13:21:19 +00:00
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Container id="PersonalizationAI" maxWidth={false} sx={{ minHeight: "100%", p: "20px" }}>
|
|
|
|
|
<Typography variant="h5" color={theme.palette.grey3.main} fontWeight={700} sx={{ fontSize: 24, letterSpacing: "-0.2px" }}>
|
|
|
|
|
Персонализация вопросов с помощью AI
|
|
|
|
|
</Typography>
|
|
|
|
|
<Typography sx={{
|
|
|
|
|
color: theme.palette.grey3.main, fontSize: "18px", maxWidth: 796, m: 0,
|
|
|
|
|
mt: "19px",
|
|
|
|
|
letterSpacing: "0.009px",
|
|
|
|
|
wordSpacing: "0.1px",
|
|
|
|
|
lineHeight: "21.4px"
|
|
|
|
|
}}>
|
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
|
|
|
</Typography>
|
|
|
|
|
|
|
|
|
|
{/* Первый белый блок */}
|
|
|
|
|
<Box sx={{
|
|
|
|
|
bgcolor: "#fff",
|
|
|
|
|
borderRadius: "12px",
|
|
|
|
|
mt: "40px",
|
|
|
|
|
p: "20px 20px 30px",
|
|
|
|
|
boxShadow: "none",
|
|
|
|
|
maxWidth: "796px"
|
|
|
|
|
}}>
|
|
|
|
|
<GenderAndAgeSelector gender={gender} setGender={setGender} />
|
|
|
|
|
|
|
|
|
|
{/* Ссылка */}
|
|
|
|
|
<Box sx={{ mt: "34px" }}>
|
|
|
|
|
<Box sx={{ display: 'flex', alignItems: 'center', gap: '6px' }}>
|
|
|
|
|
<Typography sx={{ color: theme.palette.grey3.main, fontSize: "18px", fontWeight: 500 }}>Ссылка</Typography>
|
|
|
|
|
<InfoPopover />
|
|
|
|
|
</Box>
|
|
|
|
|
<Typography
|
|
|
|
|
sx={{
|
|
|
|
|
fontSize: "14px",
|
|
|
|
|
lineHeight: "100%",
|
|
|
|
|
letterSpacing: "0 %",
|
|
|
|
|
color: theme.palette.grey2.main,
|
|
|
|
|
mt: "16px"
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Вставьте ссылку со всеми utm-метками
|
|
|
|
|
</Typography>
|
|
|
|
|
<Box sx={{ display: 'flex', gap: 2, alignItems: 'center', mt: "6px" }}>
|
|
|
|
|
<CustomTextField
|
|
|
|
|
placeholder="linkexample.com"
|
|
|
|
|
maxLength={5}
|
|
|
|
|
sxForm={{
|
|
|
|
|
width: "615px",
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
<Button
|
|
|
|
|
variant="contained"
|
|
|
|
|
sx={{
|
|
|
|
|
bgcolor: PURPLE,
|
|
|
|
|
borderRadius: "8px",
|
|
|
|
|
width: "130px",
|
|
|
|
|
height: "48px",
|
|
|
|
|
boxShadow: "none",
|
|
|
|
|
textTransform: "none",
|
|
|
|
|
fontSize: "18px",
|
|
|
|
|
'&:hover': { bgcolor: PURPLE },
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Ок
|
|
|
|
|
</Button>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
|
2025-06-01 14:05:41 +00:00
|
|
|
|
<AuditoryList />
|
2025-05-25 13:21:19 +00:00
|
|
|
|
|
|
|
|
|
</Container>
|
|
|
|
|
);
|
|
|
|
|
}
|