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ů.
 
 
 
 

113 řádky
2.5 KiB

  1. import {createTeaser} from "./TeaserComponent";
  2. export default {
  3. title: 'Components/Teaser',
  4. args: {
  5. type: 'regular',
  6. kicker: 'Fachkräfte',
  7. headline: 'Anteil der Frauen im Bereich Engineering steigt',
  8. copy: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita, no sea takimata sanctus est.',
  9. imageSrc: 'https://source.unsplash.com/-uHVRvDr7pg/420x280',
  10. copyright: '@ shutterstock.com',
  11. showReadingTime: false,
  12. link: '#',
  13. imageSize: 'large',
  14. chartTitle: 'Chart-Titel des Teasers',
  15. linkType: null,
  16. },
  17. argTypes: {
  18. type: {
  19. name: 'Teaser-Typ',
  20. control: 'select',
  21. options: ['regular', 'hero', 'text', 'fullwidth', 'chart'],
  22. },
  23. link: {
  24. name: 'Link',
  25. },
  26. imageSrc: {
  27. name: 'Bild-Url',
  28. },
  29. copyright: {
  30. name: 'Copyright-Text',
  31. },
  32. kicker: {
  33. name: 'Dachzeile',
  34. },
  35. headline: {
  36. name: 'Überschrift',
  37. },
  38. copy: {
  39. name: 'Kurztext',
  40. },
  41. showReadingTime: {
  42. name: 'Lesezeit anzeigen',
  43. },
  44. imageSize: {
  45. name: 'Bildgröße',
  46. control: 'select',
  47. options: ['large', 'medium', 'small'],
  48. },
  49. chartTitle: {
  50. name: 'Chart Titel',
  51. },
  52. linkType: {
  53. name: 'Link Typ',
  54. control: 'select',
  55. options: ['extern', 'download', 'intranet', 'extranet'],
  56. }
  57. }
  58. }
  59. const Template = ({...args}) => {
  60. return createTeaser({...args});
  61. };
  62. export const RegularTeaser = Template.bind({});
  63. RegularTeaser.args = {
  64. type: 'regular',
  65. };
  66. export const HeroTeaser = Template.bind({});
  67. HeroTeaser.args = {
  68. type: 'hero',
  69. };
  70. export const TextTeaser = Template.bind({});
  71. TextTeaser.args = {
  72. type: 'text',
  73. };
  74. export const ChartTeaser = Template.bind({});
  75. ChartTeaser.args = {
  76. type: 'chart',
  77. imageSrc: null,
  78. };
  79. export const ExternalTeaser = Template.bind({});
  80. ExternalTeaser.args = {
  81. linkType: 'extern',
  82. };
  83. export const FullwidthTeaserLarge = Template.bind({});
  84. FullwidthTeaserLarge.args = {
  85. type: 'fullwidth',
  86. showReadingTime: true,
  87. imageSize: 'large',
  88. };
  89. export const FullwidthTeaserMedium = Template.bind({});
  90. FullwidthTeaserMedium.args = {
  91. type: 'fullwidth',
  92. showReadingTime: true,
  93. imageSize: 'medium',
  94. };
  95. export const FullwidthTeaserSmall = Template.bind({});
  96. FullwidthTeaserSmall.args = {
  97. type: 'fullwidth',
  98. showReadingTime: true,
  99. imageSize: 'small',
  100. };