images.stories.js 1.0 KB

12345678910111213141516171819
  1. import React from 'react';
  2. import centered from '@storybook/addon-centered/react';
  3. import { storiesOf } from '@storybook/react';
  4. import AthensImage from '../../src/assets/images/athens.png';
  5. import SpartaImage from '../../src/assets/images/sparta.png';
  6. import RomeImage from '../../src/assets/images/rome.png';
  7. import ConstantinopleImage from '../../src/assets/images/constantinople.png';
  8. import FaviconImage from '../../src/assets/images/favicon.png';
  9. const imageStyle = { height: '50vh', maxWidth: '100%' };
  10. storiesOf('Assets|Images', module)
  11. .addDecorator(centered)
  12. .add('Athens map', () => <img src={AthensImage} alt="Athens" style={imageStyle} />)
  13. .add('Sparta map', () => <img src={SpartaImage} alt="Sparta" style={imageStyle} />)
  14. .add('Rome map', () => <img src={RomeImage} alt="Rome" style={imageStyle} />)
  15. .add('Constantinople map', () => <img src={ConstantinopleImage} alt="Constantinople" style={imageStyle} />)
  16. .add('favicon', () => <img src={FaviconImage} alt="JoyStream" style={imageStyle} />);