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"; import { IconTypes } from "@sc/plugins/webcomponents/v2/Icon"; const content = combineData(defaultData); const settings: ILayoutSettings = { label: SocialProofLayouts.TWO, layout: SocialProofLayouts.TWO, previewImage: "https://sandcastleassets.s3.amazonaws.com/blocks/socialproof/SocialProof02.png", default: { type: ComponentTypes.SECTION, label: PageSectionCategory.SOCIALPROOF, bodyOnly: true, canHaveChildren: false, properties: { ...style.SECTION, ...style.SECTION_INNER, }, children: [ { type: ComponentTypes.CONTAINER, canHaveChildren: true, properties: { textAlign: "center", margin: "0 auto", width: 480, display: "inline-block", mobile: { desktop: { width: 480 }, smartphone: { width: "100%" }, }, }, children: [ { type: ComponentTypes.HEADLINE, canHaveChildren: false, properties: { ...style.HEADLINE, }, html: `"Hands down the best process I've seen in the last 11 years. Thank you!!"`, }, { type: ComponentTypes.TEXT, canHaveChildren: false, properties: { ...style.TEXT, }, html: `Jacob McDonald, VP Marketing`, }, { type: ComponentTypes.CONTAINER, canHaveChildren: true, properties: { paddingLeft: 0, margin: "0 auto", maxWidth: 200, marginTop: 30, display: "inline-block", textAlign: "center", }, children: [ { type: ComponentTypes.LISTITEM, canHaveChildren: false, html: `

Jacob McDonald

VP Marketing

`, icon: IconTypes.AccountCircle, iconStyle: { padding: 5, paddingRight: 15, fontSize: "28pt", color: theme.backgroundColor, }, }, ], }, ], }, ], }, }; export default settings;