import { get, startCase, uniqueId } from "lodash"; import { ILayoutSettings, PageSectionCategory, } from "@sc/plugins/misc/v2/blocks/weblayouts/types"; import { ComponentTypes } from "@sc/plugins/webcomponents/v2/types"; import { combineData, lorem } from "../../utils"; import { default as defaultData } from "./data.json"; import { style } from "./style"; import { getImagePlaceholder, ImagePlaceholderTypes, getVideoPlaceholder, VideoPlaceholderTypes, } from "../../Placeholders"; import theme from "../../theme"; import { FormLayouts } from "../types"; import { FormFieldTypes } from "@sc/modules/v2/CRUD/FormBuilder/types"; import { FieldNamePresets } from "@sc/modules/v2/CRUD/FormBuilder/EditFormField/types"; const content = combineData(defaultData); const settings: ILayoutSettings = { label: FormLayouts.ONE, layout: FormLayouts.ONE, previewImage: "", default: { type: ComponentTypes.SECTION, label: PageSectionCategory.FORM, bodyOnly: true, canHaveChildren: false, properties: { ...style.SECTION, ...style.SECTION_INNER, }, children: [ { type: ComponentTypes.COLUMNS, canHaveChildren: false, properties: { width: "100%", }, children: [ { type: ComponentTypes.COLUMN, canHaveChildren: true, preventDelete: true, md: parseInt((8 * 100) / 12), properties: { height: "100%", padding: 0, minHeight: 20 }, children: [ { type: ComponentTypes.CONTAINER, canHaveChildren: true, properties: { backgroundColor: theme.backgroundColor, // padding: "250px 35pxpx 250px 150px", padding: 150, }, children: [ { type: ComponentTypes.HEADLINE, canHaveChildren: false, properties: { ...style.HEADLINE, ...get(content, "main_headline.style", {}), }, html: "Don't waste your time join us", }, { type: ComponentTypes.TEXT, canHaveChildren: false, properties: { ...style.TEXT, ...get(content, "sub_headline.style", {}), }, html: "The goal is to facilitate usability and efficiency as much as possible. Common elements found in interface design", }, ], }, ], }, { type: ComponentTypes.COLUMN, canHaveChildren: true, preventDelete: true, md: parseInt((4 * 100) / 12), properties: { height: "100%", padding: 0, minHeight: 20, }, children: [ { type: ComponentTypes.CONTAINER, canHaveChildren: true, properties: { padding: 30, borderRadius: 5, marginTop: 50, marginLeft: -250, maxWidth: 400, backgroundColor: theme.foregroundColor, }, children: [ { type: ComponentTypes.HEADLINE, canHaveChildren: false, properties: { ...style.HEADLINE, color: "black", textAlign: "center", fontSize: "16pt", paddingBottom: 0, }, html: "Create new account", }, { type: ComponentTypes.TEXT, canHaveChildren: false, properties: { ...style.TEXT, color: "black", textAlign: "center", }, html: "The goal is to facilitate usability and efficieny as much as possible", }, { type: ComponentTypes.FORM, data: [ { type: FormFieldTypes.TEXT, name: "name", placeholder: "Name", preset: FieldNamePresets.NAME, }, { type: FormFieldTypes.TEXT, name: "email", placeholder: "Email", preset: FieldNamePresets.EMAIL, }, { type: FormFieldTypes.PASSWORD, name: "password", placeholder: "Password", preset: FieldNamePresets.PASSWORD, }, ], properties: { containerStyle: style.FORM_FIELD.style, inputStyle: style.FORM_FIELD.inputStyle, }, }, { type: ComponentTypes.BUTTON, canHaveChildren: false, properties: { ...style.BUTTON.style, marginTop: 40, }, caption1: "Sign up", caption1style: style.BUTTON.caption1, }, ], }, ], }, ], }, ], }, }; export default settings;