From 6c749a206911da88994efd9c64b68e316b9cb2bb Mon Sep 17 00:00:00 2001 From: Mattia Simonato Date: Thu, 11 Apr 2024 16:51:15 +0200 Subject: [PATCH] feat(SLB-304): create dedicated stories for form on hero --- .../ui/src/components/Routes/Page.stories.tsx | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/packages/ui/src/components/Routes/Page.stories.tsx b/packages/ui/src/components/Routes/Page.stories.tsx index dc50f159d..6bdb98a5e 100644 --- a/packages/ui/src/components/Routes/Page.stories.tsx +++ b/packages/ui/src/components/Routes/Page.stories.tsx @@ -80,3 +80,24 @@ export const FullHero = { }, }, } satisfies StoryObj; + +export const FormHero = { + ...Default, + args: { + ...Default.args, + page: { + ...Default.args.page, + hero: { + headline: 'Page Hero Headline', + lead: 'A longer lead text that even might break into multiple lines.', + image: { + source: image(Landscape, { width: 2000 }), + alt: 'Stock photo landscape hero.', + }, + ctaUrl: '/test' as Url, + ctaText: 'Call to action', + formUrl: 'webforms/error/index.html' as Url, + }, + }, + }, +} satisfies StoryObj;