diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-11-09 08:28:09 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-11-09 08:28:09 +0100 |
commit | dec87e2a665c5cd1c75686dda388c042a1b042f6 (patch) | |
tree | 3c4be4f258e7767c56dd1be5a4258ebf389d4bb4 /components/TheHeader.stories.js | |
parent | 2103c12d42a7d10ef15886119929ef7326822833 (diff) | |
download | puszcza-dec87e2a665c5cd1c75686dda388c042a1b042f6.tar.gz puszcza-dec87e2a665c5cd1c75686dda388c042a1b042f6.zip |
Add stories for Header & JoinUs
Diffstat (limited to 'components/TheHeader.stories.js')
-rw-r--r-- | components/TheHeader.stories.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/components/TheHeader.stories.js b/components/TheHeader.stories.js new file mode 100644 index 0000000..ee320b7 --- /dev/null +++ b/components/TheHeader.stories.js @@ -0,0 +1,24 @@ +import { storiesOf } from '@storybook/vue' +import { routes } from './TheFooter.stories' + +import TheHeader from './TheHeader' + +const header = { + routes, + title: '19 PDH Puszcza', + logo: '/assets/krajka-logo.svg' +} + +const alwaysTop = () => ({ + template: `<div style="display:flex;flex-direction:column;min-height:100vh"><story/><div style="flex:1"></div></div>` +}) + +storiesOf('TheHeader', module) + .addDecorator(alwaysTop) + .add('default', () => { + return { + components: { TheHeader }, + template: `<the-header :routes="routes" :title="title" :logo="logo"/>`, + data: () => header + } + }) |