import { SectionTypes } from "@sc/modules/v2/Properties/types"; import { IComponentSettings, ComponentTypes } from "../types"; import { IconSource } from "@sc/plugins/webcomponents/v2/Icon/types"; import { faFacebookF, // faTwitter, // faReddit, } from "@fortawesome/free-brands-svg-icons"; const settings: IComponentSettings = { id: ComponentTypes.FACEBOOKLOGIN, name: "FB Optin", description: "", thumbnail: { style: { background: "#4267B2", color: `rgb(255,255,255,0.85)`, fontFamily: "Roboto", fontSize: "8pt", textAlign: "center", paddingTop: 15, }, iconSource: IconSource.FONTAWESOME, icon: faFacebookF, iconStyle: { fontSize: "20pt" }, }, default: { type: ComponentTypes.FACEBOOKLOGIN, properties: { backgroundColor: "#2761FF", // width: "100%", display: "inline-block", fontSize: "14pt", color: "white", padding: 5, borderRadius: 4, border: "none", }, buttonSettings: { caption1: "Continue with Facebook", icon: faFacebookF, iconSource: IconSource.FONTAWESOME, iconStyle: { padding: "0 5px", }, }, }, properties: { main: { tabs: ["Basic"], sections: [ { tab: "Basic", type: SectionTypes.CAPTION, id: "appId", sectionWrap: true, settings: { label: "Facebook App Id", icon: "build", text: "App Id", isExpanded: true, }, }, { tab: "Basic", type: SectionTypes.CAPTION, id: "caption", sectionWrap: true, settings: { label: "Button Caption", icon: "format_size", text: "Caption", }, }, { tab: "Basic", type: SectionTypes.COLORPICKER, sectionWrap: true, settings: { label: "Button Color", icon: "colorize", }, }, { tab: "Basic", type: SectionTypes.POSITIONPADDING, settings: {}, }, { tab: "Basic", type: SectionTypes.WIDTH, sectionWrap: true, settings: { label: "Button Width", text: "Width", icon: "swap_horiz", }, }, { tab: "Basic", type: SectionTypes.ALIGNMENT, settings: { verticalAlign: false, marginAlign: false, textAlign: true, }, }, // { // tab: "Advanced", // type: SectionTypes.BORDERSSHADOW, // settings: { // isExpanded: true // }, // }, { tab: "Basic", type: SectionTypes.ACTIONS, settings: { label: "Actions (Optin Succeeded)", onlyTheseActions: ["TRIGGER_NEXT_NODE", "GO_TO_URL"], }, }, // { // tab: "Advanced", // type: SectionTypes.ACTIONS, // settings: { // label: "Actions (Optin Canceled)", // onlyTheseActions: ["TRIGGER_NEXT_NODE", "GO_TO_URL"], // }, // }, ], }, }, }; export default settings;