1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-31 01:39:50 +02:00

Add storybook as docs; add eslint as javascript styleguide with AirBnb Style.

This commit is contained in:
Abdallah Samman
2018-12-04 13:55:52 +02:00
parent 1663f704c1
commit abf0b3597f
4 changed files with 40 additions and 2 deletions

17
docs/index.stories.js Normal file
View File

@@ -0,0 +1,17 @@
import { storiesOf } from '@storybook/html';
import '../css/nes.css';
storiesOf('Containers', module)
.add('default', () => `<div class="container with-title">
<p class="title">Container</p>
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
</div>`)
.add('.is-center', () => `<div class="container with-title is-center">
<p class="title">Container.is-center</p>
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
</div>`)
.add('.is-right', () => `<div class="container with-title is-right">
<p class="title">Container.is-right</p>
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
</div>`);