You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

42 lines
1.4 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 {createSearchResults} from "../../components/search-results/SearchResultsComponent";
  5. import {createSearchForm} from "../../components/search-form/SearchFormComponent";
  6. import {createTabs} from "../../atoms/tabs/TabsComponent";
  7. export const createSearchPage = ({
  8. }) => {
  9. const page = createSidebarPage({addPageDetails: false});
  10. const main = page.main;
  11. const aside = page.aside;
  12. main.appendChild(createSearchForm({}));
  13. main.appendChild(createTabs({
  14. data: [
  15. {
  16. label: 'Alle <strong>105 Treffer</strong>',
  17. link: '#',
  18. }, {
  19. label: 'Downloads <strong>29</strong>',
  20. link: '#',
  21. },
  22. {
  23. label: 'Veranstaltungen <strong>29</strong>',
  24. link: '#',
  25. }
  26. ]
  27. }))
  28. const results = createElement('div', ['search-results'], null, main);
  29. createElement('h2', ['search-hits'], '105 Treffer', results);
  30. results.appendChild(createSearchResults({type: 'no-border'}));
  31. results.appendChild(createSearchResults({type: 'downloads'}));
  32. results.appendChild(createSearchResults({type: 'events'}));
  33. results.appendChild(createSearchResults({type: 'no-border'}));
  34. aside.appendChild(createContact({headline: 'Kontakt', contacts: SingleContactData}));
  35. return page.page;
  36. }