правки формы контактов по обновленному дизайну и мелочи
This commit is contained in:
parent
7ccaf01d2c
commit
d4d56c7808
@ -9,13 +9,11 @@ export default function AddressIcon({ color, backgroundColor }: Props) {
|
|||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
// height: "38px",
|
|
||||||
// width: "24px",
|
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
height: "58px",
|
height: "58px",
|
||||||
width: "42px",
|
width: "45px",
|
||||||
backgroundColor: {backgroundColor},
|
backgroundColor: {backgroundColor},
|
||||||
borderBottomLeftRadius: "12px",
|
borderBottomLeftRadius: "12px",
|
||||||
borderTopLeftRadius: "12px",
|
borderTopLeftRadius: "12px",
|
||||||
|
@ -9,13 +9,11 @@ export default function EmailIcon({ color, backgroundColor }: Props) {
|
|||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
// height: "38px",
|
|
||||||
// width: "24px",
|
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
height: "58px",
|
height: "58px",
|
||||||
width: "42px",
|
width: "45px",
|
||||||
backgroundColor: {backgroundColor},
|
backgroundColor: {backgroundColor},
|
||||||
borderBottomLeftRadius: "12px",
|
borderBottomLeftRadius: "12px",
|
||||||
borderTopLeftRadius: "12px",
|
borderTopLeftRadius: "12px",
|
||||||
|
@ -9,13 +9,11 @@ export default function NameIcon({ color, backgroundColor }: Props) {
|
|||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
// height: "38px",
|
|
||||||
// width: "45px",
|
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
height: "58px",
|
height: "58px",
|
||||||
width: "42px",
|
width: "45px",
|
||||||
backgroundColor: {backgroundColor},
|
backgroundColor: {backgroundColor},
|
||||||
borderBottomLeftRadius: "12px",
|
borderBottomLeftRadius: "12px",
|
||||||
borderTopLeftRadius: "12px",
|
borderTopLeftRadius: "12px",
|
||||||
|
@ -9,13 +9,11 @@ export default function PhoneIcon({ color, backgroundColor }: Props) {
|
|||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
// height: "38px",
|
|
||||||
// width: "24px",
|
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
height: "58px",
|
height: "58px",
|
||||||
width: "42px",
|
width: "45px",
|
||||||
backgroundColor: {backgroundColor},
|
backgroundColor: {backgroundColor},
|
||||||
borderBottomLeftRadius: "12px",
|
borderBottomLeftRadius: "12px",
|
||||||
borderTopLeftRadius: "12px",
|
borderTopLeftRadius: "12px",
|
||||||
|
@ -9,13 +9,11 @@ export default function TextIcon({ color, backgroundColor }: Props) {
|
|||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
// height: "38px",
|
|
||||||
// width: "45px",
|
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
height: "58px",
|
height: "58px",
|
||||||
width: "42px",
|
width: "45px",
|
||||||
backgroundColor: {backgroundColor},
|
backgroundColor: {backgroundColor},
|
||||||
borderBottomLeftRadius: "12px",
|
borderBottomLeftRadius: "12px",
|
||||||
borderTopLeftRadius: "12px",
|
borderTopLeftRadius: "12px",
|
||||||
|
@ -247,6 +247,7 @@ export const ContactForm = ({ currentQuestion, onShowResult }: Props) => {
|
|||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
borderRight: isMobile ? undefined : "1px solid #9A9AAF80",
|
borderRight: isMobile ? undefined : "1px solid #9A9AAF80",
|
||||||
margin: isMobile ? 0 : "40px 0",
|
margin: isMobile ? 0 : "40px 0",
|
||||||
|
padding: isMobile ? "0" : "0 40px"
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
@ -257,14 +258,14 @@ export const ContactForm = ({ currentQuestion, onShowResult }: Props) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
alignItems: "flex-start",
|
alignItems: "flex-start",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
padding: isMobile ? "20px 20px 0 20px" : "0 0 0 40px",
|
padding: isMobile ? "40px 20px 0 20px" : "0",
|
||||||
|
mt: isMobile ? 0 : isTablet ? "-180px" : "-47px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
textAlign: isTablet ? undefined : "center",
|
textAlign: isTablet ? undefined : "center",
|
||||||
m: "20px 0",
|
fontSize: "24px",
|
||||||
fontSize: isTablet ? "24px" : "28px",
|
|
||||||
lineHeight: "normal",
|
lineHeight: "normal",
|
||||||
fontWeight: 501,
|
fontWeight: 501,
|
||||||
color: theme.palette.text.primary,
|
color: theme.palette.text.primary,
|
||||||
@ -292,18 +293,19 @@ export const ContactForm = ({ currentQuestion, onShowResult }: Props) => {
|
|||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: isMobile ? undefined : "center",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
backgroundColor: theme.palette.background.default,
|
backgroundColor: theme.palette.background.default,
|
||||||
p: isMobile ? "40px" : "125px 60px 30px 60px",
|
p: isMobile ? "0 20px" : isTablet ? "0px 40px 30px 60px" : "125px 60px 30px 60px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
my: "20px",
|
mt: isMobile ? "10px" : "20px",
|
||||||
|
mb: "20px"
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Inputs
|
<Inputs
|
||||||
@ -319,30 +321,9 @@ export const ContactForm = ({ currentQuestion, onShowResult }: Props) => {
|
|||||||
setAdress={setAdress}
|
setAdress={setAdress}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{
|
|
||||||
// resultQuestion &&
|
|
||||||
// settings.cfg.resultInfo.when === "after" &&
|
|
||||||
<Button
|
|
||||||
disabled={!(ready && !fire)}
|
|
||||||
variant="contained"
|
|
||||||
onClick={handleShowResultsClick}
|
|
||||||
sx={{
|
|
||||||
border: `1px solid ${theme.palette.primary.main}`,
|
|
||||||
"&:disabled": {
|
|
||||||
border: "1px solid #9A9AAF",
|
|
||||||
color: "#9A9AAF",
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{settings.cfg.formContact?.button || "Получить результаты"}
|
|
||||||
</Button>
|
|
||||||
}
|
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
mt: "20px",
|
|
||||||
width: isMobile ? "300px" : "390px",
|
width: isMobile ? "300px" : "390px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@ -353,8 +334,9 @@ export const ContactForm = ({ currentQuestion, onShowResult }: Props) => {
|
|||||||
}}
|
}}
|
||||||
checked={ready}
|
checked={ready}
|
||||||
colorIcon={theme.palette.primary.main}
|
colorIcon={theme.palette.primary.main}
|
||||||
|
sx={{marginRight: "0"}}
|
||||||
/>
|
/>
|
||||||
<Typography sx={{ color: theme.palette.text.primary }}>
|
<Typography sx={{ color: theme.palette.text.primary, lineHeight: "18.96px" }} fontSize={"16px"} >
|
||||||
С 
|
С 
|
||||||
<Link href={"https://shub.pena.digital/ppdd"} target="_blank">
|
<Link href={"https://shub.pena.digital/ppdd"} target="_blank">
|
||||||
Положением об обработке персональных данных{" "}
|
Положением об обработке персональных данных{" "}
|
||||||
@ -370,6 +352,28 @@ export const ContactForm = ({ currentQuestion, onShowResult }: Props) => {
|
|||||||
 ознакомлен
|
 ознакомлен
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
{
|
||||||
|
// resultQuestion &&
|
||||||
|
// settings.cfg.resultInfo.when === "after" &&
|
||||||
|
<Button
|
||||||
|
disabled={!(ready && !fire)}
|
||||||
|
variant="contained"
|
||||||
|
onClick={handleShowResultsClick}
|
||||||
|
sx={{
|
||||||
|
border: `1px solid ${theme.palette.primary.main}`,
|
||||||
|
margin: isMobile ? "auto" : undefined,
|
||||||
|
mt: "20px",
|
||||||
|
p: "10px 20px",
|
||||||
|
"&:disabled": {
|
||||||
|
border: "1px solid #9A9AAF",
|
||||||
|
color: "#9A9AAF",
|
||||||
|
},
|
||||||
|
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{settings.cfg.formContact?.button || "Получить результаты"}
|
||||||
|
</Button>
|
||||||
|
}
|
||||||
{show_badge && (
|
{show_badge && (
|
||||||
<Box
|
<Box
|
||||||
component={Link}
|
component={Link}
|
||||||
@ -381,14 +385,17 @@ export const ContactForm = ({ currentQuestion, onShowResult }: Props) => {
|
|||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
mt: "55px",
|
mt: "55px",
|
||||||
mb: "50px",
|
mb: "40px",
|
||||||
gap: "15px",
|
gap: "10px",
|
||||||
textDecoration: "none",
|
textDecoration: "none",
|
||||||
|
position: "absolute",
|
||||||
|
bottom: 0,
|
||||||
|
left: isMobile ? "28%" : undefined
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<NameplateLogo
|
<NameplateLogo
|
||||||
style={{
|
style={{
|
||||||
fontSize: "23px",
|
fontSize: "20px",
|
||||||
color: quizThemes[settings.cfg.theme].isLight
|
color: quizThemes[settings.cfg.theme].isLight
|
||||||
? "#151515"
|
? "#151515"
|
||||||
: "#FFFFFF",
|
: "#FFFFFF",
|
||||||
@ -507,7 +514,7 @@ const CustomInput = ({ title, desc, Icon, onChange, mask }: InputProps) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Box m="10px 0">
|
<Box m="10px 0">
|
||||||
<Typography mb="7px" color={theme.palette.text.primary}>
|
<Typography mb="7px" color={theme.palette.text.primary} fontSize={"16px"}>
|
||||||
{title}
|
{title}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
@ -515,8 +522,9 @@ const CustomInput = ({ title, desc, Icon, onChange, mask }: InputProps) => {
|
|||||||
inputRef={ref}
|
inputRef={ref}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
sx={{
|
sx={{
|
||||||
width: isMobile ? "300px" : "390px",
|
width: isMobile ? "100%" : "390px",
|
||||||
backgroundColor: theme.palette.background.default,
|
backgroundColor: theme.palette.background.default,
|
||||||
|
fontSize: "16px",
|
||||||
"& .MuiOutlinedInput-notchedOutline": {
|
"& .MuiOutlinedInput-notchedOutline": {
|
||||||
borderColor: "#9A9AAF80",
|
borderColor: "#9A9AAF80",
|
||||||
borderRadius: "12px",
|
borderRadius: "12px",
|
||||||
@ -524,6 +532,9 @@ const CustomInput = ({ title, desc, Icon, onChange, mask }: InputProps) => {
|
|||||||
"& .MuiInputBase-root": {
|
"& .MuiInputBase-root": {
|
||||||
paddingLeft: 0,
|
paddingLeft: 0,
|
||||||
},
|
},
|
||||||
|
"& .MuiOutlinedInput-input": {
|
||||||
|
paddingLeft: "10px",
|
||||||
|
},
|
||||||
"& .MuiOutlinedInput-root": {
|
"& .MuiOutlinedInput-root": {
|
||||||
"&:hover fieldset": {
|
"&:hover fieldset": {
|
||||||
borderColor: theme.palette.primary.main,
|
borderColor: theme.palette.primary.main,
|
||||||
|
@ -75,17 +75,6 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => {
|
|||||||
mb: "7px",
|
mb: "7px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{settings.cfg.startpage.logo && (
|
|
||||||
<img
|
|
||||||
src={settings.cfg.startpage.logo}
|
|
||||||
style={{
|
|
||||||
height: "40px",
|
|
||||||
maxWidth: "110px",
|
|
||||||
objectFit: "cover",
|
|
||||||
}}
|
|
||||||
alt=""
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
fontSize: "14px",
|
fontSize: "14px",
|
||||||
@ -93,7 +82,7 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => {
|
|||||||
wordBreak: "break-word",
|
wordBreak: "break-word",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{settings.cfg.info.orgname}
|
Ваш результат:
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Box
|
<Box
|
||||||
@ -138,9 +127,9 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => {
|
|||||||
resultQuestion.description !== " " && (
|
resultQuestion.description !== " " && (
|
||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
fontSize: "23px",
|
fontSize: "24px",
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
m: "20px 0",
|
mt: "25px",
|
||||||
color: theme.palette.text.primary,
|
color: theme.palette.text.primary,
|
||||||
wordBreak: "break-word",
|
wordBreak: "break-word",
|
||||||
}}
|
}}
|
||||||
@ -151,7 +140,7 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => {
|
|||||||
|
|
||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
m: "20px 0",
|
mt: "20px",
|
||||||
color: theme.palette.text.primary,
|
color: theme.palette.text.primary,
|
||||||
wordBreak: "break-word",
|
wordBreak: "break-word",
|
||||||
}}
|
}}
|
||||||
@ -164,7 +153,7 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => {
|
|||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
fontSize: "18px",
|
fontSize: "18px",
|
||||||
m: "20px 0",
|
mt: "30px ",
|
||||||
wordBreak: "break-word",
|
wordBreak: "break-word",
|
||||||
color: theme.palette.text.primary,
|
color: theme.palette.text.primary,
|
||||||
}}
|
}}
|
||||||
|
@ -176,7 +176,7 @@ const CenteredLayout = ({
|
|||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
overflow: "auto",
|
overflow: "auto",
|
||||||
padding: "10px 25px 25px",
|
padding: "25px 25px 25px",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
|
@ -94,7 +94,7 @@ export const StartPageViewPublication = () => {
|
|||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
flexWrap: settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center"? "nowrap" : "wrap",
|
flexWrap: settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center"? "nowrap" : "wrap",
|
||||||
gap:"30px",
|
gap:"30px",
|
||||||
mb: "7px",
|
mb: settings.cfg.startpageType === "centered" ? "25px" : "7px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{settings.cfg.startpage.logo &&
|
{settings.cfg.startpage.logo &&
|
||||||
@ -163,13 +163,13 @@ export const StartPageViewPublication = () => {
|
|||||||
? "center"
|
? "center"
|
||||||
: "start"
|
: "start"
|
||||||
: "start",
|
: "start",
|
||||||
marginTop: "28px",
|
marginTop: settings.cfg.startpageType === "centered" ? "30px" : "5px",
|
||||||
width:settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" && !isMobile? "50%" : settings.cfg.startpageType === "centered" && !isMobile? "50%" : "100%",
|
width:settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" && !isMobile? "50%" : settings.cfg.startpageType === "centered" && !isMobile? "50%" : "100%",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
fontWeight: "500",
|
fontWeight: "700",
|
||||||
fontSize: "26px",
|
fontSize: "26px",
|
||||||
fontStyle: "normal",
|
fontStyle: "normal",
|
||||||
fontStretch: "normal",
|
fontStretch: "normal",
|
||||||
@ -244,14 +244,14 @@ export const StartPageViewPublication = () => {
|
|||||||
: 0,
|
: 0,
|
||||||
gap: "20px",
|
gap: "20px",
|
||||||
alignItems: "flex-end",
|
alignItems: "flex-end",
|
||||||
justifyContent: settings.cfg.startpageType === "centered" && isMobile? "center" :"space-between",
|
justifyContent: settings.cfg.startpageType === "centered" || settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" && isMobile? "center" : "space-between",
|
||||||
width: "100%",
|
width: "100%",
|
||||||
flexWrap: settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center"? "nowrap" :"wrap",
|
flexWrap: settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" ? isMobile ? "wrap-reverse" : "nowrap" : "wrap",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center"&& !isMobile && quizHeaderBlock}
|
{settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" && !isMobile && quizHeaderBlock}
|
||||||
<Box sx={{ maxWidth: "300px",
|
<Box sx={{ maxWidth: "300px",
|
||||||
display: settings.cfg.startpageType === "centered" && isMobile? "flex" : "block",
|
display: settings.cfg.startpageType === "centered" || settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" && isMobile ? "flex" : "block",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
order: settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center"? "2" : "0"}}>
|
order: settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center"? "2" : "0"}}>
|
||||||
@ -346,7 +346,7 @@ export const StartPageViewPublication = () => {
|
|||||||
sx={{
|
sx={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
gap: "15px",
|
gap: "7px",
|
||||||
textDecoration: "none",
|
textDecoration: "none",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@ -363,7 +363,7 @@ export const StartPageViewPublication = () => {
|
|||||||
/>
|
/>
|
||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
fontSize: "14px",
|
fontSize: "13px",
|
||||||
color:
|
color:
|
||||||
settings.cfg.startpageType === "expanded"
|
settings.cfg.startpageType === "expanded"
|
||||||
? "#F5F7FF"
|
? "#F5F7FF"
|
||||||
|
Loading…
Reference in New Issue
Block a user