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 { GuaranteeLayouts } from "../types"; import { IconTypes } from "@sc/plugins/webcomponents/v2/Icon"; const content = combineData(defaultData); const settings: ILayoutSettings = { label: GuaranteeLayouts.THREE, layout: GuaranteeLayouts.THREE, previewImage: "https://sandcastleassets.s3.amazonaws.com/blocks/guarantees/Guarantee03.png", default: { type: ComponentTypes.SECTION, label: PageSectionCategory.GUARANTEE, 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((6 * 100) / 12), properties: { height: "100%", padding: 0, minHeight: 20 }, children: [ { type: ComponentTypes.LISTITEM, canHaveChildren: false, html: `
30 Day Guarantee
_
${lorem.generateSentences(1)}
`, icon: IconTypes.Security, iconStyle: { paddingRight: 20, fontSize: "56pt", color: theme.backgroundColor, }, }, ], }, { type: ComponentTypes.COLUMN, canHaveChildren: true, preventDelete: true, md: parseInt((6 * 100) / 12), properties: { height: "100%", padding: 0, minHeight: 20 }, children: [ { type: ComponentTypes.LISTITEM, canHaveChildren: false, html: `30 Day Guarantee
_
${lorem.generateSentences(1)}
`, icon: IconTypes.Lock, iconStyle: { paddingRight: 20, fontSize: "56pt", color: theme.backgroundColor, }, }, ], }, ], }, ], }, }; export default settings;