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 { IconSource } from "@sc/plugins/webcomponents/v2/Icon/live"; import { faFacebookF, faGoogle, faTwitter, faInstagram, } from "@fortawesome/free-brands-svg-icons"; import { FooterLayouts } from "../types"; import { LinkDisplayTypes, LinkLayoutStyles, } from "@sc/plugins/webcomponents/v2/Navigation/types"; const content = combineData(defaultData); const settings: ILayoutSettings = { label: FooterLayouts.EIGHT, layout: FooterLayouts.EIGHT, previewImage: "https://sandcastleassets.s3.amazonaws.com/blocks/footers/Footer08.png", default: { type: ComponentTypes.SECTION, label: PageSectionCategory.FOOTER, 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((3 * 100) / 12), properties: { height: "100%", padding: 20, minHeight: 20 }, children: [ getImagePlaceholder({ type: ImagePlaceholderTypes.NONE, src: theme.logoIcon, style: { width: 75, }, }), ], }, { type: ComponentTypes.COLUMN, canHaveChildren: true, preventDelete: true, md: parseInt((6 * 100) / 12), properties: { height: "100%", padding: 20, minHeight: 20 }, children: [ { type: ComponentTypes.NAVIGATION, canHaveChildren: false, linkStyle: style.NAVIGATION.linkStyle, layoutStyle: LinkLayoutStyles.HORIZONTAL, properties: { padding: 20, textAlign: "center", display: "inline-block", }, data: [ { id: uniqueId(), caption: "Home", linkDisplayType: LinkDisplayTypes.TEXT, }, { id: uniqueId(), caption: "FAQs", linkDisplayType: LinkDisplayTypes.TEXT, }, { id: uniqueId(), caption: "Blog", linkDisplayType: LinkDisplayTypes.TEXT, }, { id: uniqueId(), caption: "About Us", linkDisplayType: LinkDisplayTypes.TEXT, }, { id: uniqueId(), caption: "Contact Us", linkDisplayType: LinkDisplayTypes.TEXT, }, ], }, ], }, { type: ComponentTypes.COLUMN, canHaveChildren: true, preventDelete: true, md: parseInt((3 * 100) / 12), properties: { height: "100%", padding: 20, minHeight: 20 }, children: [ { type: ComponentTypes.NAVIGATION, canHaveChildren: false, linkStyle: { ...style.NAVIGATION.linkStyle, padding: "30px 10px", }, layoutStyle: LinkLayoutStyles.HORIZONTAL, properties: { display: "inline-block", textAlign: "right", }, data: [ { id: uniqueId(), caption: " ", linkDisplayType: LinkDisplayTypes.ICON, label: " ", icon: "Twitter", }, { id: uniqueId(), caption: " ", linkDisplayType: LinkDisplayTypes.ICON, label: " ", icon: "Facebook", }, { id: uniqueId(), caption: " ", linkDisplayType: LinkDisplayTypes.ICON, label: " ", icon: "Instagram", }, ], }, ], }, ], }, ], }, }; export default settings;