import { Box, FormControl, Link, MenuItem, Select, TextField, Typography, useTheme } from "@mui/material";
import { useState } from "react";
import CustomCheckbox from "../CustomCheckbox";
import AlignLeftIcon from "../icons/AlignLeftIcon";
import AlignRightIcon from "../icons/AlignRightIcon";
import ArrowDown from "../icons/ArrowDownIcon";
import InfoIcon from "../icons/InfoIcon";
import LayoutCenteredIcon from "../icons/LayoutCenteredIcon";
import LayoutExpandedIcon from "../icons/LayoutExpandedIcon";
import LayoutStandartIcon from "../icons/LayoutStandartIcon";
import MobilePhoneIcon from "../icons/MobilePhoneIcon";
import UploadIcon from "../icons/UploadIcon";
import SelectableButton from "./SelectableButton";
import SelectableIconButton from "./SelectableIconButton";
import UploadBox from "./UploadBox";
const designTypes = [
["Standart", (color: string) => ],
["Expanded", (color: string) => ],
["Centered", (color: string) => ]
] as const;
type DesignType = typeof designTypes[number][0];
type BackgroundType = "image" | "video";
type AlignType = "left" | "right";
export default function StartPageSettings() {
const theme = useTheme();
const [designType, setDesignType] = useState(designTypes[0][0]);
const [backgroundType, setBackgroundType] = useState("image");
const [alignType, setAlignType] = useState("left");
return (
Дизайн
Фон
setBackgroundType("image")}>
Изображение
setBackgroundType("video")}>
Видео
{backgroundType === "image" ?
<>
Изображение
} text="5 MB максимум" />
Размер картинок
мобильная версия
>
:
<>
Добавить видео
}
sx={{
height: "48px",
width: "48px",
}}
/>
Настройки видео
Изображение для мобильной версии
} text="5 MB максимум" />
>
}
Расположение элементов
setAlignType("left")} isActive={alignType === "left"} Icon={AlignLeftIcon} />
setAlignType("right")} isActive={alignType === "right"} Icon={AlignRightIcon} />
{backgroundType === "image" &&
Логотип
}
} text="5 MB максимум" />
Favicon
}
sx={{
height: "48px",
width: "48px",
}}
/>
5 MB максимум
Заголовок
Текст
Текст кнопки
Телефон
Название или слоган компании
Сайт
Юридическая информация
Дополнительно
Mета заголовок
Текст-заполнитель —
это текст, который имеет Текст-заполнитель —
это текст, который имеет Текст-заполнитель —
это текст, который имеет Текст-заполнитель —
это текст, который имеет Текст-заполнитель
);
}
interface CustomTextFieldProps {
placeholder: string;
text: string;
}
function CustomTextField({ placeholder, text }: CustomTextFieldProps) {
const theme = useTheme();
return (
);
}