Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

35 linhas
1.4 KiB

  1. import './social.scss';
  2. import {createElement} from "../../_global/scripts/helpers";
  3. import {createSocialIcons} from "../../atoms/social-icons/SocialIconsComponent";
  4. export const createSocialSection = ({
  5. kicker = 'Aktuelles aus Social Media',
  6. headline = '#ihkmusterstadt',
  7. copy = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Optio magnam, fugiat maxime sapiente sit similique quis officia minus. Dolore, repellat.',
  8. visitUs = 'Besuchen Sie uns auf:',
  9. }) => {
  10. const section = createElement('section', ['social'])
  11. const container = createElement('div', ['container'], null, section);
  12. const wrapper = createElement('div', ['social-wrapper'], null, container);
  13. const iconWrapper = createElement('div', ['social-profiles'], visitUs && visitUs.length > 0 ? '<p>' + visitUs + '</p>' : null, wrapper);
  14. const icons = createSocialIcons({title: visitUs});
  15. iconWrapper.appendChild(icons);
  16. const textBox = createElement('div', ['text-box'], null, wrapper);
  17. if (kicker && kicker.length > 0) {
  18. createElement('span', ['kicker'], kicker, textBox);
  19. }
  20. if (headline && headline.length > 0) {
  21. createElement('h2', [], headline, textBox);
  22. }
  23. if (copy && copy.length > 0) {
  24. createElement('p', [], copy, textBox);
  25. }
  26. const socialBox = createElement('div', ['social-box'], null, wrapper);
  27. socialBox.innerHTML = '<iframe src="./html/twitter.html" width="100%" height="100%" frameborder="0"></iframe>';
  28. return section;
  29. }