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.
 
 
 
 

50 satır
1.6 KiB

  1. import {createElement, createSidebarPage} from "../../_global/scripts/helpers";
  2. import {createContact} from "../../components/contact/ContactComponent";
  3. import {SingleContactData} from "../../components/contact/ContactData";
  4. import {createPagination} from "../../atoms/pagination/PaginationComponent";
  5. import {createTabs} from "../../atoms/tabs/TabsComponent";
  6. import {createPrintShare} from "../../components/print-share/PrintShareComponent";
  7. import {ParticipationTeasersData} from "../../sections/participation-teasers/ParticipationTeasersData";
  8. import {createParticipationListItem} from "../../components/participation-list-item/ParticipationListItemComponent";
  9. export const createParticipationListPage = ({
  10. items = ParticipationTeasersData,
  11. }) => {
  12. const page = createSidebarPage({breadcrumb: ['Start', 'Mitmachen', 'Aktuelle Beteiligungen']});
  13. const main = page.main;
  14. const aside = page.aside;
  15. createElement('h1', [], 'Aktuelle Beteiligungen', main);
  16. main.appendChild(createTabs({
  17. data: [
  18. {
  19. label: 'Alle <strong>(47)</strong>',
  20. link: '#',
  21. },
  22. {
  23. label: 'Eine Rubrik <strong>(9)</strong>',
  24. link: '#',
  25. },
  26. {
  27. label: 'Eine andere Rubrik <strong>(19)</strong>',
  28. link: '#',
  29. }
  30. ]
  31. }))
  32. const list = createElement('div', ['participation-list'], null, main);
  33. items.map((item) => {
  34. item.isListItem = true;
  35. list.appendChild(createParticipationListItem({
  36. ...item,
  37. }));
  38. })
  39. main.appendChild(createPagination({}));
  40. main.appendChild(createPrintShare({}));
  41. aside.appendChild(createContact({headline: 'Kontakt', contacts: SingleContactData}));
  42. return page.page;
  43. }