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 { SocialProofLayouts } from "@sc/plugins/misc/v2/blocks/weblayouts/SocialProof/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"; const content = combineData(defaultData); const settings: ILayoutSettings = { label: SocialProofLayouts.NINE, layout: SocialProofLayouts.NINE, previewImage: "https://sandcastleassets.s3.amazonaws.com/blocks/socialproof/SocialProof09.png", default: { type: ComponentTypes.SECTION, label: PageSectionCategory.SOCIALPROOF, bodyOnly: true, canHaveChildren: false, properties: { ...style.SECTION, ...style.SECTION_INNER, }, children: [ { type: ComponentTypes.HEADLINE, canHaveChildren: false, properties: { ...style.HEADLINE, }, html: startCase(lorem.generateWords(4)), }, { type: ComponentTypes.DIVIDER, canHaveChildren: false, properties: { margin: "0 auto", width: 100, display: "inline-block", textAlign: "center", marginTop: 20, }, color: theme.backgroundColor, size: 3, }, { type: ComponentTypes.COLUMNS, canHaveChildren: false, properties: { width: "100%", marginTop: 35, }, children: [ { type: ComponentTypes.COLUMN, canHaveChildren: true, preventDelete: true, md: parseInt((5 * 100) / 12), properties: { height: "100%", padding: 5, minHeight: 20 }, children: [ getImagePlaceholder({ type: ImagePlaceholderTypes.NONE, src: "https://images.unsplash.com/photo-1582971805810-b24306e0afe7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60", style: { // backgroundColor: theme.backgroundColor, // width: 175, // height: 125, }, }), { type: ComponentTypes.TEXT, canHaveChildren: false, properties: { ...style.TEXT, }, html: startCase(lorem.generateWords(5)), }, ], }, { type: ComponentTypes.COLUMN, canHaveChildren: true, preventDelete: true, md: parseInt((5 * 100) / 12), properties: { height: "100%", padding: 5, minHeight: 20 }, children: [ getImagePlaceholder({ type: ImagePlaceholderTypes.NONE, src: "https://images.unsplash.com/photo-1542178243-bc20204b769f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60", style: { // backgroundColor: theme.backgroundColor, // width: 175, // height: 125, }, }), { type: ComponentTypes.TEXT, canHaveChildren: false, properties: { ...style.TEXT, }, html: startCase(lorem.generateWords(5)), }, ], }, { type: ComponentTypes.COLUMN, canHaveChildren: true, preventDelete: true, md: parseInt((5 * 100) / 12), properties: { height: "100%", padding: 5, minHeight: 20 }, children: [ getImagePlaceholder({ type: ImagePlaceholderTypes.NONE, src: "https://images.unsplash.com/photo-1563701039037-37a8ea2e79be?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60", style: { // backgroundColor: theme.backgroundColor, // width: 175, // height: 125, }, }), { type: ComponentTypes.TEXT, canHaveChildren: false, properties: { ...style.TEXT, }, html: startCase(lorem.generateWords(5)), }, ], }, { type: ComponentTypes.COLUMN, canHaveChildren: true, preventDelete: true, md: parseInt((5 * 100) / 12), properties: { height: "100%", padding: 5, minHeight: 20 }, children: [ getImagePlaceholder({ type: ImagePlaceholderTypes.NONE, src: "https://images.unsplash.com/photo-1577744168855-0391d2ed2b3a?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60", style: { // backgroundColor: theme.backgroundColor, // width: 175, // height: 125, }, }), { type: ComponentTypes.TEXT, canHaveChildren: false, properties: { ...style.TEXT, }, html: startCase(lorem.generateWords(5)), }, ], }, { type: ComponentTypes.COLUMN, canHaveChildren: true, preventDelete: true, md: parseInt((5 * 100) / 12), properties: { height: "100%", padding: 5, minHeight: 20 }, children: [ getImagePlaceholder({ type: ImagePlaceholderTypes.NONE, src: "https://images.unsplash.com/photo-1485893086445-ed75865251e0?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60", style: { // backgroundColor: theme.backgroundColor, // width: 175, // height: 125, }, }), { type: ComponentTypes.TEXT, canHaveChildren: false, properties: { ...style.TEXT, }, html: startCase(lorem.generateWords(5)), }, ], }, ], }, { type: ComponentTypes.COLUMNS, canHaveChildren: false, properties: { width: "90%", margin: "0 auto", marginTop: 40, display: "inline-block", textAlign: "center", }, children: [ { type: ComponentTypes.COLUMN, canHaveChildren: true, preventDelete: true, md: parseInt((4 * 100) / 12), properties: { height: "100%", padding: 5, minHeight: 20 }, children: [ getImagePlaceholder({ type: ImagePlaceholderTypes.NONE, src: "https://images.unsplash.com/photo-1485290334039-a3c69043e517?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60", style: { // backgroundColor: theme.backgroundColor, // width: 175, // height: 125, }, }), { type: ComponentTypes.TEXT, canHaveChildren: false, properties: { ...style.TEXT, }, html: startCase(lorem.generateWords(5)), }, ], }, { type: ComponentTypes.COLUMN, canHaveChildren: true, preventDelete: true, md: parseInt((4 * 100) / 12), properties: { height: "100%", padding: 5, minHeight: 20 }, children: [ getImagePlaceholder({ type: ImagePlaceholderTypes.NONE, src: "https://images.unsplash.com/photo-1542909168-82c3e7fdca5c?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60", style: { // backgroundColor: theme.backgroundColor, // width: 175, // height: 125, }, }), { type: ComponentTypes.TEXT, canHaveChildren: false, properties: { ...style.TEXT, }, html: startCase(lorem.generateWords(5)), }, ], }, { type: ComponentTypes.COLUMN, canHaveChildren: true, preventDelete: true, md: parseInt((4 * 100) / 12), properties: { height: "100%", padding: 5, minHeight: 20 }, children: [ getImagePlaceholder({ type: ImagePlaceholderTypes.NONE, src: "https://images.unsplash.com/photo-1569779213435-ba3167dde7cc?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60", style: { // backgroundColor: theme.backgroundColor, // width: 175, // height: 125, }, }), { type: ComponentTypes.TEXT, canHaveChildren: false, properties: { ...style.TEXT, }, html: startCase(lorem.generateWords(5)), }, ], }, { type: ComponentTypes.COLUMN, canHaveChildren: true, preventDelete: true, md: parseInt((4 * 100) / 12), properties: { height: "100%", padding: 5, minHeight: 20 }, children: [ getImagePlaceholder({ type: ImagePlaceholderTypes.NONE, src: "https://images.unsplash.com/photo-1517365830460-955ce3ccd263?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60", style: { // backgroundColor: theme.backgroundColor, // width: 175, // height: 125, }, }), { type: ComponentTypes.TEXT, canHaveChildren: false, properties: { ...style.TEXT, }, html: startCase(lorem.generateWords(5)), }, ], }, ], }, ], }, }; export default settings;