Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

62 řádky
1.3 KiB

  1. import {teasersData} from "./TeasersData";
  2. import {createTeasersSection} from "./TeasersComponent";
  3. export default {
  4. title: 'Sections/Teasers',
  5. parameters: {
  6. layout: 'fullscreen',
  7. },
  8. args: {
  9. type: 'regular',
  10. background: null,
  11. headline: 'Schwerpunkt: Die Krise als Chance',
  12. teasers: teasersData,
  13. includeChart: false,
  14. includeSocial: false,
  15. },
  16. argTypes: {
  17. type: {
  18. name: 'Teaser-Typ',
  19. control: 'select',
  20. options: ['regular', 'hero', 'fullwidth', 'text', 'magazine'],
  21. },
  22. background: {
  23. name: 'Hintergrundfarbe',
  24. control: 'select',
  25. options: ['white', 'lightblue'],
  26. },
  27. }
  28. }
  29. const Template = ({...args}) => {
  30. return createTeasersSection({...args});
  31. };
  32. export const Teasers = Template.bind({});
  33. Teasers.args = {};
  34. export const HeroTeasers = Template.bind({});
  35. HeroTeasers.args = {
  36. type: 'hero',
  37. };
  38. export const MagazineTeasers = Template.bind({});
  39. MagazineTeasers.args = {
  40. type: 'magazine',
  41. };
  42. export const FullwidthTeaser = Template.bind({});
  43. FullwidthTeaser.args = {
  44. type: 'fullwidth',
  45. headline: null,
  46. };
  47. export const IncludeChartTeaser = Template.bind({});
  48. IncludeChartTeaser.args = {
  49. includeChart: true,
  50. };
  51. export const IncludeSocialTeaser = Template.bind({});
  52. IncludeSocialTeaser.args = {
  53. includeSocial: true,
  54. };