templates/pages/homepage.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block content %}
  3.     {{ include('@components/hero-header.html.twig', {
  4.         image: content.image.url,
  5.         text: content.heroImageText
  6.     }) }}
  7.     {{ include('@components/image-text-section.html.twig', {
  8.         image: content.teaserImage.url,
  9.         text: content.teaserText|raw,
  10.         order: {
  11.             text: '1',
  12.             image: '2'
  13.         },
  14.         button: {
  15.             withIcon: true,
  16.             text: content.teaserUrlTitle,
  17.             link: content.teaserUrl
  18.         }
  19.     }) }}
  20.     <div class="bg-grey py-5">
  21.         <div class="container">
  22.             <div class="row">
  23.                 <div class="col-12">
  24.                     <h2>{{ content.bigButtonsTitle|raw }}</h2>
  25.                     {{ content.bigButtonsText|raw }}
  26.                 </div>
  27.             </div>
  28.             <div class="row mt-4">
  29.             {% for bigButtonsDetail in content.bigButtonsDetails %}
  30.                 <div class="col-12 col-lg-4">
  31.                     <a href="{{ bigButtonsDetail.bigButtonsUrl }}">
  32.                         <span class="d-flex align-items-center justify-content-center my-2 my-lg-0 py-3 text-white" style="background-color: {{ bigButtonsDetail.bigButtonsColor }}">
  33.                             <span class="fs-2 fw-bold">{{ bigButtonsDetail.bigButtonsTitle }}</span>
  34.                         </span>
  35.                     </a>
  36.                 </div>
  37.             {% endfor %}
  38.             </div>
  39.         </div>
  40.     </div>
  41.     {% if content.video is not null %}
  42.         {{ include('@components/video-section.html.twig', {
  43.             title: content.videoTitle,
  44.             url: content.video.url,
  45.             background: 'grey',
  46.             order: {
  47.                 video: '1'
  48.             }
  49.         }) }}
  50.     {% endif %}
  51.     <div class="container pt-5">
  52.         <div class="row mb-5">
  53.             <div class="col-12">
  54.                 <h2 class="point light">{{ content.overviewTitle|raw }}</h2>
  55.                 {{ content.overviewText|raw }}
  56.             </div>
  57.         </div>
  58.         <div class="row match-height-card-small g-3" data-match-height-group="card-small-group">
  59.             {% for overviewDetail in content.overviewDetails %}
  60.                 <div class="col-12 col-md-6 col-lg-4 col-xl-3">
  61.                     {{ include('@components/card-small.html.twig', {
  62.                         title: overviewDetail.overviewBlockTitle,
  63.                         text: overviewDetail.overviewBlockText,
  64.                         image: overviewDetail.overviewBlockImage.formats['440x200'],
  65.                         link: overviewDetail.overviewBlockUrl,
  66.                         customLink: overviewDetail.customLink,
  67.                         customAnchor: overviewDetail.customAnchor
  68.                     }) }}
  69.                 </div>
  70.             {% endfor %}
  71.         </div>
  72.     </div>
  73.     {{ include('@components/we-in-numbers.html.twig', {
  74.         title: content.numbersTitle,
  75.         items: content.numbersDetails
  76.     }) }}
  77.     <div class="container my-5">
  78.         <div class="row">
  79.             <div class="col-12">
  80.                 <h2 class="point light mb-4">{{ content.carouselMainTitle|raw }}</h2>
  81.             </div>
  82.             <div class="col-12">
  83.                 <div class="swiper-testimonials-wrapper">
  84.                     <div class="swiper-testimonials">
  85.                         <div class="swiper-wrapper">
  86.                             {% for carouselItem in content.carouselDetails %}
  87.                                 <div class="swiper-slide">
  88.                                     <div class="fw-bold">{{ carouselItem.carouselTitle }}</div>
  89.                                     <div class="position-relative mt-4">
  90.                                         <div class="swiper-text">{{ carouselItem.carouselText }}</div>
  91.                                     </div>
  92.                                 </div>
  93.                             {% endfor %}
  94.                         </div>
  95.                     </div>
  96.                     <div class="swiper-button-next button-next"></div>
  97.                     <div class="swiper-button-prev button-prev"></div>
  98.                 </div>
  99.             </div>
  100.         </div>
  101.     </div>
  102. {% endblock %}