Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 

31 рядки
1.3 KiB

  1. import {createElement} from "../../_global/scripts/helpers";
  2. import {createHeader} from "../../components/header/HeaderComponent";
  3. import {createParticipationStage} from "../../sections/participation-stage/ParticipationStageComponent";
  4. import {createParticipationTeasers} from "../../sections/participation-teasers/ParticipationTeasersComponent";
  5. import {createSurvey} from "../../sections/survey/SurveyComponent";
  6. import {createInfoBanner} from "../../sections/infobanner/InfoBannerComponent";
  7. import {createFooter} from "../../components/footer/FooterComponent";
  8. import {createParticipationMap} from "../../sections/participation-map/ParticipationMapComponent";
  9. export const createParticipationStartPage = ({
  10. stageWithImage = false,
  11. }) => {
  12. const page = createElement('div', ['page']);
  13. page.appendChild(createHeader({}));
  14. const wrapper = createElement('div', ['page-wrapper'], null, page);
  15. const pageContent = createElement('div', ['page-content'], null, wrapper);
  16. pageContent.appendChild(createParticipationStage({
  17. imageSrc: stageWithImage ? './dummy/placeholder-4-3.svg' : null,
  18. }));
  19. pageContent.appendChild(createParticipationTeasers({}));
  20. pageContent.appendChild(createInfoBanner({}));
  21. pageContent.appendChild(createSurvey({}));
  22. pageContent.appendChild(createParticipationMap({}));
  23. page.appendChild(createFooter({}))
  24. return page;
  25. }