25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

28 satır
1.3 KiB

  1. import './election-result-list-item.scss';
  2. import {createElement, createImage} from "../../_global/scripts/helpers";
  3. export const createElectionResultListItem =
  4. ({
  5. image = './dummy/election-list-cover.jpg',
  6. name = 'Lars-Hendrick Pirckensee',
  7. job = 'Grundstücksmakler, Immobilenemakler',
  8. city = 'Kreisfreie Musterstadt, Musterhausen',
  9. }) => {
  10. const electionResultListItem = createElement('div', ['election-result-list-item']);
  11. const topBox = createElement('a', ['top-box'], null, electionResultListItem);
  12. topBox.href = '#';
  13. const imageBox = createElement('div', ['image-box'], null, topBox);
  14. createImage(image, 310, 310, '', [], imageBox);
  15. createElement('span', ['copyright'], name, imageBox);
  16. createElement('h3', [], name, topBox);
  17. const textBox = createElement('div', ['text-box'], null, electionResultListItem);
  18. const jobBox = createElement('div', ['job-box'], null, textBox);
  19. const jobBoxLink = createElement('a', ['icon-small-election-group'], job, jobBox);
  20. jobBoxLink.href = '#';
  21. const cityBox = createElement('div', ['city-box'], null, textBox);
  22. const cityBoxLink = createElement('a', ['icon-small-icon-election-location'], city, cityBox);
  23. cityBoxLink.href = '#';
  24. return electionResultListItem;
  25. }