templates/themes/theme/services/service.html.twig line 1

Open in your IDE?
  1. <section class="sector-service-block">
  2.     {% if service.image %}
  3.         <div class="banner-block pb-6 lazyBackgroundImage" data-mobile="{{ imageCache('/' ~ service.fullImagePath, 'zoomCrop', 900, 405) }}" data-desktop="{{ imageCache('/' ~ service.fullImagePath, 'zoomCrop', 3200, 1440) }}">
  4.             <div class="container h-full">
  5.                 <div class="flex items-end h-full">
  6.                     <h1>{{ service.title }}</h1>
  7.                 </div>
  8.             </div>
  9.         </div>
  10.     {% endif %}
  11.     <div class="overflow-x-hidden">
  12.         <div class="container">
  13.             <div class="row flex">
  14.                 <div class="lg:col-6 p-0 relative flex justify-center items-center">
  15.                     <div class="service-image img-full">
  16.                         <div class="service-content lg:pr-32 py-24 lg:py-12 pl-[15px]">
  17.                             {{ service.content|raw }}
  18.                         </div>
  19.                         <style scoped>
  20.                             .service-image:after {
  21.                                 background-image:url('{{ imageCache('/' ~ service.fullImage2Path, 'zoomCrop', 1500, 675) }}');
  22.                             }
  23.                             @media screen and (min-width: 767px) {
  24.                                 .service-image:after {
  25.                                     background-image:url('{{ imageCache('/' ~ service.fullImage2Path, 'zoomCrop', 3200, 1440) }}');
  26.                                 }
  27.                             }
  28.                         </style>
  29.                     </div>
  30.                 </div>
  31.                 <div class="lg:col-6 p-0 h-full">
  32.                     <div class="bg-black black-full h-full text-white px-[15px] lg:px-10 py-12 lg:py-32 xl:py-48">
  33.                         <div class="service-icon mb-6 lg:mb-0">
  34.                             {{ service.iconClass|raw }}
  35.                         </div>
  36.                         <div class="service-content2 lg:ml-16 lg:pl-20 lg:py-16">
  37.                             {{ service.content2|raw }}
  38.                         </div>
  39.                     </div>
  40.                 </div>
  41.             </div>
  42.         </div>
  43.     </div>
  44.     {# <ul>
  45.         {% for item in allServices %}
  46.             <li class="{{ item.id == service.id ? 'active' }}">
  47.                 <a href="{{ generatePath( app.request, item.linkedPageId, {'service_slug' : item.slug } ) }}">{{ item.title }}</a>
  48.                 {% if item.activeChildren %}
  49.                     <ul>
  50.                     {% for child in item.activeChildren %}
  51.                         <li>
  52.                             <a href="{{ generatePath( app.request, child.linkedPageId, {'service_slug' : child.slug } ) }}">{{ child.title }}</a>
  53.                         </li>
  54.                     {% endfor %}
  55.                     </ul>
  56.                 {% endif %}
  57.             </li>
  58.         {% endfor %}
  59.     </ul> #}
  60. </section>