import * as React from "react"; import { withKnobs, select } from "@storybook/addon-knobs"; import Section from "./live"; import { Container, Headline } from "@sc/plugins/webcomponents/v2"; import { themeSettings, styleData } from "@sc/plugins/webcomponents/v2/theme"; import { getClipPath, ClipPathTypes } from "@sc/plugins/utilities/clipPaths"; // import theme from "@sc/plugins/misc/v2/blocks/weblayouts/theme"; // import Shapes from "../Shapes"; // import { Shape, ShapeTypes } from "../Shapes/component"; // import { Image } from ".."; import { BODY } from "@sc/modules/v2/Editor/types"; import settings from "./settings"; import { sampleContentData, EditorWithCustomData, } from "@sc/modules/page/Builder/Builder.stories"; export default { title: "Plugins|Web Components/Simple/Section", component: Section, decorators: [withKnobs], }; // const bg = require("@sc/lsvt/src/images/background.png"); const style = { SECTION: { backgroundColor: themeSettings.default.primaryColor, // backgroundImage: `url(${bg})`, backgroundSize: "cover", // minHeight: "100vh" }, HEADLINE: { fontFamily: "Poppins", padding: 25, fontSize: "42pt", fontWeight: "bold", color: themeSettings.default.lightTextColor, lineHeight: "60px", }, }; export const Default: React.FC = () => { return (
This is a section
); }; export const WithClipPaths: React.FC = () => ( //
This is a section
); export const InTheEditor: React.FC = () => { const containerId = "u5j1r64m5rf"; return ( itm.id !== containerId), ]} /> ); };