You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

66 lines
1.5 KiB

  1. import {createInfoBanner} from "./InfoBannerComponent";
  2. export default {
  3. title: 'Sections/Infobanner',
  4. parameters: {
  5. layout: 'fullscreen',
  6. },
  7. argTypes: {
  8. kicker: {
  9. name: 'Links',
  10. control: {type: 'text'},
  11. defaultValue: 'Dachzeile des Infobanners',
  12. },
  13. headline: {
  14. name: 'Überschrift',
  15. control: {type: 'text'},
  16. defaultValue: 'Überschrift des Infobanners',
  17. },
  18. copy: {
  19. name: 'Kurztext',
  20. control: {type: 'text'},
  21. defaultValue: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.',
  22. },
  23. buttonText: {
  24. name: 'Button-Text',
  25. control: {type: 'text'},
  26. defaultValue: 'Call to Action',
  27. },
  28. imageSrc: {
  29. name: 'Bild-Url',
  30. control: 'text',
  31. defaultValue: './dummy/placeholder-4-3.svg',
  32. },
  33. imageSrcMobile: {
  34. name: 'Bild-Url mobil',
  35. control: 'text',
  36. defaultValue: './dummy/placeholder-3-2.svg',
  37. },
  38. isCommercial: {
  39. name: 'Ist externe Werbung?',
  40. control: { type: 'boolean' },
  41. }
  42. }
  43. }
  44. const Template = ({...args}) => {
  45. return createInfoBanner({...args});
  46. }
  47. export const BannerFull = Template.bind({});
  48. BannerFull.args = {};
  49. export const BannerWithoutImage = Template.bind({});
  50. BannerWithoutImage.args = {
  51. imageSrc: '',
  52. imageSrcMobile: '',
  53. };
  54. export const BannerWithoutText = Template.bind({});
  55. BannerWithoutText.args = {
  56. kicker: '',
  57. headline: '',
  58. copy: '',
  59. buttonText: '',
  60. isCommercial: true,
  61. };