blob: ceb5015f1a9191c39265877a6c80c9dacdac22cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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: `<div style="display:flex;flex-direction:column;min-height:100vh"><div style="flex:1"></div><story/></div>`
})
storiesOf('TheFooter', module)
.addDecorator(alwaysBottom)
.add('default', () => {
return {
components: { TheFooter },
template: `<the-footer :routes="routes" />`,
data: () => footer
}
})
|