Skip to content

Commit

Permalink
Added page storybook component
Browse files Browse the repository at this point in the history
  • Loading branch information
MRita443 committed Mar 28, 2024
1 parent 4575213 commit 9e3d0cc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions src/routes/contacts/page.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import Page from './+page.svelte';
import Layout from '@/routes/+layout.svelte';
import LayoutDecorator from '$lib/storybook-utils/LayoutDecorator.svelte';

export default {
title: 'Pages/Contacts',
component: Page,
parameters: {
layout: 'fullscreen',
backgrounds: { default: 'clear' }
},
decorators: [() => Layout, () => LayoutDecorator]
};

export const Contacts = {};
3 changes: 2 additions & 1 deletion src/routes/page.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default {
title: 'Pages/HomePage',
component: Page,
parameters: {
layout: 'fullscreen'
layout: 'fullscreen',
backgrounds: { default: 'clear' }
},
decorators: [() => Layout, () => LayoutDecorator]
};
Expand Down

0 comments on commit 9e3d0cc

Please sign in to comment.