templates/areas/services/view.html.twig line 1

Open in your IDE?
  1. <div class="toolbox-element toolbox-container {{ additionalClassesData|join(' ') }}">
  2.     <div class="relative mx-auto px-4 sm:px-6 lg:px-8{% if not editmode %} max-w-md sm:max-w-3xl lg:max-w-7xl{% endif %}">
  3.         <div class="grid grid-cols-1 gap-3 sm:grid-cols-3">
  4.             {% for service in services %}
  5.                 {% if(loop.index  is even) %}{% set color = "rs-red"  %}{% else %}{% set color = "white"  %}{% endif %}
  6.                 <div class="swiper-slide h-[41rem] relative border-8 mb-4 border-{{ color }}">
  7.                     {% if service.teaserImg|length  %}
  8.                         <img class="absolute top-0 left-0 w-full h-[40rem] object-cover" src="{{ service.teaserImg.getThumbnail('jumpstartImage') }}" />
  9.                     {% endif %}
  10.                     <div class="relative flex flex-col p-7 w-full h-[40rem] bg-gradient-to-l from-[#66666650] to-[#000000]">
  11.                         <h3 class="py-2 text-2xl tracking-tight text-{{ color }} sm:leading-none lg:mt-2 lg:text-3xl break-words">
  12.                             <span class="md:block font-bold">{{ service.title|upper }}</span>
  13.                             <span class="md:block">{{ (service.tags|upper)|replace({"|":", "}) }}</span>
  14.                         </h3>
  15.                         <div class="relative grow">
  16.                             <p class="text-lg text-white sm:text-m lg:text-m xl:text-l">{{ service.teaserDescription }}</p>
  17.                         </div>
  18.                         <a href="/dienstleistungen/{% if service.url|length %}{{ service.url }}{% else %}sid-{{ service.id }}{% endif %}">
  19.                             <button class="robotics-button mb-8 mr-auto">
  20.                                 Mehr zu {{ service.title }}
  21.                             </button>
  22.                         </a>
  23.                     </div>
  24.                 </div>
  25.             {% endfor %}
  26.         </div>
  27.     </div>
  28. </div>