選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

68 行
1.4 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. includeLinklist: false,
  16. },
  17. argTypes: {
  18. type: {
  19. name: 'Teaser-Typ',
  20. control: 'select',
  21. options: ['regular', 'hero', 'fullwidth', 'text', 'magazine'],
  22. },
  23. background: {
  24. name: 'Hintergrundfarbe',
  25. control: 'select',
  26. options: ['white', 'lightblue'],
  27. },
  28. }
  29. }
  30. const Template = ({...args}) => {
  31. return createTeasersSection({...args});
  32. };
  33. export const Teasers = Template.bind({});
  34. Teasers.args = {};
  35. export const HeroTeasers = Template.bind({});
  36. HeroTeasers.args = {
  37. type: 'hero',
  38. };
  39. export const MagazineTeasers = Template.bind({});
  40. MagazineTeasers.args = {
  41. type: 'magazine',
  42. };
  43. export const FullwidthTeaser = Template.bind({});
  44. FullwidthTeaser.args = {
  45. type: 'fullwidth',
  46. headline: null,
  47. };
  48. export const IncludeChartTeaser = Template.bind({});
  49. IncludeChartTeaser.args = {
  50. includeChart: true,
  51. };
  52. export const IncludeSocialTeaser = Template.bind({});
  53. IncludeSocialTeaser.args = {
  54. includeSocial: true,
  55. };
  56. export const IncludeLinklistTeaser = Template.bind({});
  57. IncludeLinklistTeaser.args = {
  58. includeLinklist: true,
  59. };