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 { PricingLayouts } from "@sc/plugins/misc/v2/blocks/weblayouts/Pricing/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: PricingLayouts.ONE, layout: PricingLayouts.ONE, previewImage: "https://sandcastleassets.s3.amazonaws.com/blocks/pricing/Pricing01.png", default: { type: ComponentTypes.SECTION, label: PageSectionCategory.PRICING, 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.CONTAINER, canHaveChildren: true, properties: { borderRadius: 5, backgroundColor: "#f5f5f5", padding: 75, mobile: { desktop: { padding: 75 }, smartphone: { padding: 25 }, }, }, children: [ { type: ComponentTypes.TEXT, canHaveChildren: false, properties: { ...style.TEXT, }, html: "Basic", }, { type: ComponentTypes.HEADLINE, canHaveChildren: false, properties: { ...style.HEADLINE, }, html: "$37", }, { type: ComponentTypes.TEXT, canHaveChildren: false, properties: { ...style.TEXT, }, html: `Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo`, }, { type: ComponentTypes.CONTAINER, canHaveChildren: true, properties: { textAlign: "center", }, children: [ { type: ComponentTypes.BUTTON, canHaveChildren: false, properties: { ...style.BUTTON.style, backgroundColor: "transparent", border: `1px solid ${theme.backgroundColor}`, }, caption1: "Purchase", caption1style: { ...style.BUTTON.caption1, 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.CONTAINER, canHaveChildren: true, properties: { borderRadius: 5, backgroundColor: theme.backgroundColor, padding: 75, mobile: { desktop: { padding: 75 }, smartphone: { padding: 25 }, }, }, children: [ { type: ComponentTypes.TEXT, canHaveChildren: false, properties: { ...style.TEXT, color: theme.foregroundColor }, html: "Elite", }, { type: ComponentTypes.HEADLINE, canHaveChildren: false, properties: { ...style.HEADLINE, color: theme.foregroundColor, }, html: "$97", }, { type: ComponentTypes.TEXT, canHaveChildren: false, properties: { ...style.TEXT, color: theme.foregroundColor }, html: `Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo`, }, { type: ComponentTypes.CONTAINER, canHaveChildren: true, properties: { textAlign: "center", }, children: [ { type: ComponentTypes.BUTTON, canHaveChildren: false, properties: { ...style.BUTTON.style, backgroundColor: theme.foregroundColor, }, caption1: "Purchase", caption1style: { ...style.BUTTON.caption1, color: theme.backgroundColor, }, }, ], }, ], }, ], }, ], }, ], }, }; export default settings;