import * as React from "react";
import { GRP } from "storybook/GRP";
import { withKnobs, text, boolean, number } from "@storybook/addon-knobs";
import { CTALayouts } from "./types";
import Layout from "../Layout";
import {
EditorWithCustomData,
buildContentData,
mobileStateData,
} from "@sc/modules/page/Builder/Builder.stories";
import {
settings01,
settings02,
settings03,
settings04,
settings05,
settings06,
settings07,
settings08,
settings09,
settings10,
settings11,
settings12,
settings13,
settings14,
settings15,
settings16,
settings17,
settings18,
settings19,
settings20,
settings21,
settings22,
} from "./";
export default {
title: "Plugins|Web Layouts/CTA",
decorators: [withKnobs],
};
export const CTA01: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA02: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA03: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA04: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA05: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA06: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA07: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA08: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA10: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA11: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA12: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA13: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA14: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA15: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA16: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA17: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA18: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA19: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA20: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA21: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const CTA22: React.FC = () => {
return (
<>
{boolean("Show Section", false) && (
)}
{boolean("Show inspiration", false) && (
)}
{boolean("In the Editor", true) && (
)}
>
);
};
export const InTheEditor: React.FC = () => {
return (
);
};
export const AllCallsToAction: React.FC = () => {
const data = {
section: {
pageMargin: number("Page Margin", 980, {
range: true,
min: 500,
max: 2000,
}),
},
main_headline: {
html: text("Main Headline Text", "I have overrided the text"),
render: boolean("Show Main Headline", true),
},
sub_headline: {
render: boolean("Show Sub Headline", true),
},
hero_video: {
render: boolean("Show Hero Video", true),
},
cta_button: {
render: boolean("Show Button (If Present)", true),
},
};
return (
<>
>
);
};