templates/frontend/component/list.html.twig line 1

Open in your IDE?
  1. {% extends 'frontend/base.html.twig' %}
  2. {% block body %}
  3.     {% include 'frontend/partials/_breadcrumb.html.twig' %}
  4.     <section class="space-1">
  5.         <div class="container">
  6.             <div class="position-relative mb-4">
  7.                 <div class="d-lg-none">
  8.                     <figure class="media equal-1-1">
  9.                         <span style="background-image: url('{{ componentConfiguration.cover.publicUrl }}')"></span>
  10.                     </figure>
  11.                 </div>
  12.                 <div class="d-none d-lg-block">
  13.                     <figure class="media equal-2-1">
  14.                         <span style="background-image: url('{{ componentConfiguration.cover.publicUrl }}')"></span>
  15.                     </figure>
  16.                 </div>
  17.             </div>
  18.         </div>
  19.     </section>
  20.     <section class="space-1">
  21.         <div class="container">
  22.             <h4>Componenti piscine</h4>
  23.             <p>
  24.                 {{ componentConfiguration.introduction|block_editor_render }}
  25.             </p>
  26.         </div>
  27.     </section>
  28.     <section class="space-2">
  29.         <div class="container">
  30.             {% for section in componentConfiguration.sections %}
  31.                 <div class="row align-items-center justify-content-center space-top-1 space-top-lg-2 space-bottom-lg-1">
  32.                     <div class="col-lg-5 ps-lg-5 {{ loop.index % 2 == 0 ? 'order-lg-1' }}">
  33.                         <h3 class="text-uppercase text-primary display-5 fw-bold mb-2 mb-lg-4" style="line-height: 1">
  34.                             {{ section.custom ? section.title : section.component.name }}
  35.                         </h3>
  36.                         <p class="fs-lg">
  37.                             {{ section.custom ? section.description : section.component.introduction }}
  38.                         </p>
  39.                         <a href="{{ section.custom ? section.link : path('frontend_component_index', {component: section.component.slug}) }}"
  40.                            class="btn btn-primary text-uppercase fw-bold mb-4 mb-lg-0"
  41.                            aria-label="{{ section.custom ? section.title : section.component.name }}"
  42.                         >Scopri di più</a>
  43.                     </div>
  44.                     <div class="col-lg-5 {{ loop.index % 2 == 0 ? 'order-lg-0' }}">
  45.                         <img src="{{ section.custom ? section.cover.publicUrl : section.component.cover.publicUrl }}" alt="{{ section.custom ? section.title : section.component.name }}"
  46.                              class="img-fluid">
  47.                     </div>
  48.                 </div>
  49.             {% endfor %}
  50.         </div>
  51.     </section>
  52.     <section class="space-bottom-2">
  53.         <div class="container">
  54.             <div class="row justify-content-center">
  55.                 {% for componentConfigurationCallToAction in componentConfiguration.componentConfigurationCallToActions %}
  56.                     {% include 'frontend/partials/_call_to_action_card.html.twig' with {callToAction: componentConfigurationCallToAction.callToAction, size: componentConfigurationCallToAction.size} %}
  57.                 {% endfor %}
  58.             </div>
  59.         </div>
  60.     </section>
  61. {% endblock %}