From 2103c12d42a7d10ef15886119929ef7326822833 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Mon, 21 Oct 2019 20:35:16 +0200 Subject: Add footer stories --- components/TheFooter.stories.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 components/TheFooter.stories.js (limited to 'components/TheFooter.stories.js') diff --git a/components/TheFooter.stories.js b/components/TheFooter.stories.js new file mode 100644 index 0000000..ceb5015 --- /dev/null +++ b/components/TheFooter.stories.js @@ -0,0 +1,29 @@ +import { storiesOf } from '@storybook/vue' +import { action } from '@storybook/addon-actions' + +import TheFooter from './TheFooter' + +export const routes = [ + { path: '/', name: 'Strona główna' }, + { path: '/download', name: 'Do pobrania' }, + { path: '/kontakt', name: 'Kontakt' }, + { path: '/kronika', name: 'Kronika' } +] + +const footer = { + routes +} + +const alwaysBottom = () => ({ + template: `
` +}) + +storiesOf('TheFooter', module) + .addDecorator(alwaysBottom) + .add('default', () => { + return { + components: { TheFooter }, + template: ``, + data: () => footer + } + }) -- cgit 1.4.1