diff --git a/docs/balloons.stories.js b/docs/balloons.stories.js new file mode 100644 index 0000000..a031a98 --- /dev/null +++ b/docs/balloons.stories.js @@ -0,0 +1,7 @@ +import { storiesOf } from '@storybook/html'; + +import '../css/nes.css'; + +storiesOf('Balloons', module) + .add('.balloon.from-left', () => '

Hello NES.css

') + .add('.balloon.from-right', () => '

Hello NES.css

'); diff --git a/docs/buttons.stories.js b/docs/buttons.stories.js new file mode 100644 index 0000000..ad7e0ed --- /dev/null +++ b/docs/buttons.stories.js @@ -0,0 +1,10 @@ +import { storiesOf } from '@storybook/html'; + +import '../css/nes.css'; + +storiesOf('Buttons', module) + .add('button.btn', () => ' ') + .add('button.btn.is-primary', () => '') + .add('button.btn.is-success', () => '') + .add('button.btn.is-warning', () => '') + .add('button.btn.is-error', () => ''); diff --git a/docs/containers.stories.js b/docs/containers.stories.js new file mode 100644 index 0000000..a17022e --- /dev/null +++ b/docs/containers.stories.js @@ -0,0 +1,37 @@ +import { storiesOf } from '@storybook/html'; + +import '../css/nes.css'; + +storiesOf('Containers', module) + .add('.container.with-title', () => `
+

Container

+

Good morning. Thou hast had a good night's sleep, I hope.

+
`) + .add('.container.with-title.is-center', () => `
+

Container.is-center

+

Good morning. Thou hast had a good night's sleep, I hope.

+
`) + .add('.container.with-title.is-right', () => `
+

Container.is-right

+

Good morning. Thou hast had a good night's sleep, I hope.

+
`) + .add('.container.with-title.is_dark', () => `
+

Container

+

Good morning. Thou hast had a good night's sleep, I hope.

+
`) + .add('.container.with-title.is-center.is-dark', () => `
+

Container.is-center

+

Good morning. Thou hast had a good night's sleep, I hope.

+
`) + .add('.container.with-title.is-right.is-dark', () => `
+

Container.is-right

+

Good morning. Thou hast had a good night's sleep, I hope.

+
`) + .add('.container.is-rounded', () => `
+

Container.is-right

+

Good morning. Thou hast had a good night's sleep, I hope.

+
`) + .add('.container.is-rounded.is-dark', () => `
+

Container.is-right

+

Good morning. Thou hast had a good night's sleep, I hope.

+
`); diff --git a/docs/icons.stories.js b/docs/icons.stories.js new file mode 100644 index 0000000..a52c649 --- /dev/null +++ b/docs/icons.stories.js @@ -0,0 +1,28 @@ +import { storiesOf } from '@storybook/html'; + +import '../css/nes.css'; + +storiesOf('Icons', module) + .add('icon.twitter', () => '') + .add('icon.twitter.is-medium', () => '') + .add('icon.twitter.is-large', () => '') + .add('icon.facebook', () => '') + .add('icon.facebook.is-medium', () => '') + .add('icon.facebook.is-large', () => '') + .add('icon.github', () => '') + .add('icon.github.is-medium', () => '') + .add('icon.github.is-large', () => '') + .add('icon.youtube', () => '') + .add('icon.youtube.is-medium', () => '') + .add('icon.youtube.is-large', () => '') + .add('icon.close', () => '') + .add('icon.close.is-medium', () => '') + .add('icon.close.is-large', () => '') + .add('octocat animate', () => '') + .add('icon.trophy', () => '') + .add('icon.trophy is-medium', () => '') + .add('icon.trophy is-large', () => '') + .add('nes-logo', () => '') + .add('nes-jp-logo', () => '') + .add('snes-logo', () => '') + .add('snes-jp-logo', () => ''); diff --git a/docs/index.stories.js b/docs/index.stories.js deleted file mode 100644 index 820f386..0000000 --- a/docs/index.stories.js +++ /dev/null @@ -1,17 +0,0 @@ -import { storiesOf } from '@storybook/html'; - -import '../css/nes.css'; - -storiesOf('Containers', module) - .add('default', () => `
-

Container

-

Good morning. Thou hast had a good night's sleep, I hope.

-
`) - .add('.is-center', () => `
-

Container.is-center

-

Good morning. Thou hast had a good night's sleep, I hope.

-
`) - .add('.is-right', () => `
-

Container.is-right

-

Good morning. Thou hast had a good night's sleep, I hope.

-
`); diff --git a/docs/inputs.stories.js b/docs/inputs.stories.js new file mode 100644 index 0000000..7ca0f9b --- /dev/null +++ b/docs/inputs.stories.js @@ -0,0 +1,26 @@ +import { storiesOf } from '@storybook/html'; + +import '../css/nes.css'; + +storiesOf('Inputs', module) + .add('input.radio', () => ` + `) + .add('input.checkbox', () => ` + `) + .add('input.input', () => ` + `) + .add('input.input.is-success', () => ` + `) + .add('input.input.is-warning', () => ` + `) + .add('input.input.is-error', () => ` + `); diff --git a/docs/table.stories.js b/docs/table.stories.js new file mode 100644 index 0000000..3d6e650 --- /dev/null +++ b/docs/table.stories.js @@ -0,0 +1,72 @@ +import { storiesOf } from '@storybook/html'; + +import '../css/nes.css'; + +storiesOf('Tables', module) + .add('table.table', () => ` + + + + + + + + + + + + + + + + + + + + +
TableTable.is-borderedTable.is-centered
Thou hast had a good morningThou hast had a good afternoonThou hast had a good night
Thou hast had a good morningThou hast had a good afternoonThou hast had a good night
`) + .add('table.table.is-bordered', () => ` + + + + + + + + + + + + + + + + + + + + +
TableTable.is-borderedTable.is-centered
Thou hast had a good morningThou hast had a good afternoonThou hast had a good night
Thou hast had a good morningThou hast had a good afternoonThou hast had a good night
`) + .add('table.table.is-bordered.is-centered', () => ` + + + + + + + + + + + + + + + + + + + + +
TableTable.is-borderedTable.is-centered
Thou hast had a good morningThou hast had a good afternoonThou hast had a good night
Thou hast had a good morningThou hast had a good afternoonThou hast had a good night
+ `);