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

51 řádky
1.6 KiB

  1. import './feature.scss';
  2. import {createElement} from "../../_global/scripts/helpers";
  3. import {createLinkList} from "../../components/linklist/LinkListComponent";
  4. export const createFeature = ({
  5. kicker = 'IHK Musterstadt',
  6. headline = 'Ihre IHK – Ihre Vorteile',
  7. copy = 'Wir beraten und helfen Ihnen als gewerbetreibendes Unternehmen zum Beispiel bei folgenden Themen:',
  8. links = [
  9. {
  10. title: 'Wahrnehmung Ihrer Interessen',
  11. link: '#',
  12. },
  13. {
  14. title: 'Fördermöglichkeiten',
  15. link: '#',
  16. },
  17. {
  18. title: 'Durchführung von Prüfungen',
  19. link: '#',
  20. },
  21. {
  22. title: 'Beratung zu Themen der Außenwirtschaft',
  23. link: '#',
  24. },
  25. {
  26. title: 'Beratungen bei Existenzgründung',
  27. link: '#',
  28. },
  29. ],
  30. icon = 'Eule Doktorhut',
  31. }) => {
  32. const section = createElement('section', ['feature'], null);
  33. const container = createElement('div', ['container'], null, section);
  34. const row = createElement('div', ['row'], null, container);
  35. const textCol = createElement('div', ['col'], null, row);
  36. const iconCol = createElement('div', ['col'], null, row);
  37. const textBox = createElement('div', ['text-box'], null, textCol);
  38. createElement('span', ['kicker'], kicker, textBox);
  39. createElement('h2', [], headline, textBox);
  40. createElement('p', [], copy, textBox);
  41. const linkList = createLinkList({links: links});
  42. textBox.appendChild(linkList);
  43. if (icon && icon.length > 0) {
  44. createElement('div', ['icon-box', 'pictogram-' + icon.toLowerCase().split(' ').join('-')], null, iconCol);
  45. }
  46. return section;
  47. }