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

Open in your IDE?
  1. {#{{ dump(block) }}#}
  2. {#<img src="{{ sonata_path(block['image_id'], 'reference') }}"/>#}
  3. <figure class="banner my-[80px] md:my-[160px] md:h-[498px] px-[16px] py-[16px] md:px-[48px] md:py-[68px] md:min-h-[498px] rounded-[16px] w-full border border-[#E2E2E9] bg-[#F7F7FA] bg-no-repeat bg-contain bg-right"
  4.         style="background-image: {% if block.image_id is not empty %}url('{{ sonata_path(block['image_id'], 'reference') }}'){% endif %}">
  5.     {% if block.text is not empty %}
  6.         <p class="text-[18px] md:text-[24px] text-[#5B5B5B] font-medium text-left mb-[12px] md:mb-[24px]">{{ block.text }}</p>
  7.     {% endif %}
  8.     {% if block.heading is not empty %}
  9.         <h2 class="text-[24px] md:text-[32px] text-[#1B2028] font-medium text-left mb-[12px] md:mb-[32px] max-w-[770px] leading-[1.2]">{{ block.heading }}</h2>
  10.     {% endif %}
  11.     <div class="flex flex-col md:flex-row gap-[16px]">
  12.         <a href="{{ path('how_it_works') }}" class="min-w-[250px]">
  13.             {% include '@App/shared/ui/button/button.html.twig' with {
  14.                 text: 'Перейти до інструкції'|trans({}, 'order'),
  15.             } %}
  16.         </a>
  17.         <a class="js--scrollTo min-w-[250px] font-medium text-[#fff] text-[16px] min-h-[48px] text-center block" style="color: {{ companyStyles.notFilledButtonTextColor }}; border-color: {{ companyStyles.notFilledButtonTextColor }}">
  18.             <button class=" hover:underline transition ease-in-out duration-150 w-full flex flex-row gap-[8px] justify-center text-center p-[12px] min-h-[48px] bg-transparent border rounded-[10px] font-semibold text-[14px] focus:outline-none"
  19.                     style="color: {{ companyStyles.notFilledButtonTextColor }}; border-color: {{ companyStyles.notFilledButtonTextColor }}">
  20.                 {% trans from 'main' %}Підключитися зараз{% endtrans %}
  21.             </button>
  22.         </a>
  23.     </div>
  24. </figure>