templates/components/sir-trevor/advantages/advantages.html.twig line 1

Open in your IDE?
  1. {#{{ dump(block) }}#}
  2. {#<img src="{{ sonata_path(block['add_feature'][0][0]['add_feature_block_image'], 'reference') }}"/>#}
  3. <figure class="my-[80px] md:my-[160px] md:h-[416px] md:min-h-[416px] w-full">
  4.     {% if block.title is not empty %}
  5.         <h2 class="text-[32px] md:text-[48px] text-[#1B2028] font-medium text-left leading-[1.2]">{{ block.title|raw }}</h2>
  6.     {% endif %}
  7.     {% if block.description is not empty %}
  8.         <p class="text-[18px] md:text-[24px] text-[#5B5B5B] font-medium text-left mb-[56px]">{{ block.description|raw }}</p>
  9.     {% endif %}
  10.     <div class="flex flex-col md:flex-row gap-[16px] items-center justify-between">
  11.         {% if block.add_feature is not empty %}
  12.             {% for feature_group in block.add_feature %}
  13.                 {% for feature in feature_group %}
  14.                     <div class="flex flex-col gap-[32px] items-center max-w-[348px]">
  15.                         <div class="w-[100px] h-[100px] max-w-[100px] border-[#F1F1F7] border-[10px] rounded-[50%] p-[16px] relative" style="background-color: {{ companyStyles.buttonColor }}">
  16.                             <img class="mx-auto" src="{{ sonata_path(feature.add_feature_block_image, 'reference') }}" alt="{{ feature.add_feature_block_name }}">
  17.                             {% if loop.parent.loop.index0 == 1 %}
  18.                                 <svg class="hidden lg:block absolute top-[-77px] max-w-[300px] right-[105px] w-[calc(100vw/4.7)]" style="stroke: {{ companyStyles.buttonColor }}; stroke-width: 2">
  19.                                     <use href="{{ asset('build/sprite.svg#features_after_1') }}"></use>
  20.                                 </svg>
  21.                                 <svg class="hidden lg:block absolute bottom-[-77px] max-w-[300px] left-[110px] w-[calc(100vw/4.7)]" style="stroke: {{ companyStyles.buttonColor }}; stroke-width: 2">
  22.                                     <use href="{{ asset('build/sprite.svg#features_after_2') }}"></use>
  23.                                 </svg>
  24.                             {% endif %}
  25.                             {% if loop.parent.loop.index0 == 2 %}
  26.                                 <svg class="hidden lg:block w-[80px] h-[80px] absolute top-[-67px] right-[-50px]" style="stroke: {{ companyStyles.buttonColor }}; stroke-width: 2">
  27.                                     <use href="{{ asset('build/sprite.svg#features_after_3') }}"></use>
  28.                                 </svg>
  29.                             {% endif %}
  30.                         </div>
  31.                         <div class="flex flex-col gap-[16px] text-center">
  32.                             <h3 class="text-[#1B2028] font-semibold text-[24px]">{{ feature.add_feature_block_name }}</h3>
  33.                             <p class="text-[#5B5B5B] font-medium text-[16px]">{{ feature.add_feature_block_desc }}</p>
  34.                         </div>
  35.                     </div>
  36.                 {% endfor %}
  37.             {% endfor %}
  38.         {% endif %}
  39.     </div>
  40. </figure>