templates/pages/partenaires.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{ settings[0].siteName }} : partenaires{% endblock %}
  3. {% block body %}
  4. <div class="container pt-5 pb-4">
  5.     <div class="row">
  6.         <div class="col text-center py-5 rounded bg-blue">
  7.             <h1 class="fw-bold text-uppercase roboto text-white">{{ settings[0].sitePartenairesmaintitle }}
  8.         </div>
  9.     </div>
  10. </div>
  11. <div class="container pb-5">
  12.     {% if partenaires == null %}
  13.         <div class="row mb-3 d-flex align-items-center">
  14.             <div class="col text-center py-4">
  15.                 <h2>Il n'y a aucune entreprise actuellement...</h2>
  16.             </div>
  17.         </div>
  18.     {% endif %}
  19.     {% for part in partenaires %}
  20.         <div class="row bg-white rounded border mb-3 d-flex align-items-center">
  21.             <div class="col-lg-3 col-sm-12">
  22.                 <img class="img-fluid d-block mx-auto" src="{{ asset('assets/img/partenaires/' ~ part.image ) }}" alt="{{ part.title }}" style="max-width: 200px; width: 100%; object-fit: scale-down;">
  23.             </div>
  24.             <div class="col-lg-9 col-sm-12">
  25.                 <h4 class="title-partenaires">
  26.                     {{ part.title }}
  27.                     <a href="{{ part.siteweb }}" class="text-decoration-none" target="_blank">
  28.                         <svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M3.464 20.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536C19.072 2 16.714 2 12 2S4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535ZM9.5 8.75A3.25 3.25 0 1 0 12.75 12a.75.75 0 0 1 1.5 0A4.75 4.75 0 1 1 9.5 7.25a.75.75 0 0 1 0 1.5ZM17.75 12a3.25 3.25 0 0 1-3.25 3.25a.75.75 0 0 0 0 1.5A4.75 4.75 0 1 0 9.75 12a.75.75 0 0 0 1.5 0a3.25 3.25 0 0 1 6.5 0Z" clip-rule="evenodd"/></svg>
  29.                     </a>
  30.                     <a href="mailto:{{ part.contact }}" class="text-decoration-none" target="_blank">
  31.                         <svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 24 24"><path fill="currentColor" d="M12 22q-2.05 0-3.875-.788t-3.188-2.15q-1.362-1.362-2.15-3.187T2 12q0-2.075.788-3.888t2.15-3.174Q6.3 3.575 8.124 2.788T12 2q2.075 0 3.888.788t3.174 2.15q1.363 1.362 2.15 3.175T22 12v1.45q0 1.475-1.012 2.513T18.5 17q-.9 0-1.675-.4t-1.275-1.05q-.675.675-1.588 1.063T12 17q-2.075 0-3.538-1.463T7 12q0-2.075 1.463-3.538T12 7q2.075 0 3.538 1.463T17 12v1.45q0 .725.45 1.137T18.5 15q.6 0 1.05-.413T20 13.45V12q0-3.275-2.363-5.638T12 4Q8.725 4 6.362 6.363T4 12q0 3.275 2.363 5.638T12 20h5v2h-5Zm0-7q1.25 0 2.125-.875T15 12q0-1.25-.875-2.125T12 9q-1.25 0-2.125.875T9 12q0 1.25.875 2.125T12 15Z"/></svg>
  32.                     </a>
  33.                     <a href="{{ part.facebook }}" class="text-decoration-none" target="_blank">
  34.                         <svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 24 24"><path fill="currentColor" d="M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z"/></svg>
  35.                     </a>
  36.                 </h4>
  37.                 <p>{{ part.intro|replace({'<div>':'', '</div>':'', })|raw }}</p>
  38.                 <p>{{ part.content|replace({'<div>':'', '</div>':'', })|raw }}</p>
  39.             </div>
  40.         </div>
  41.     {% endfor %}
  42. </div>
  43. {% endblock %}