templates/home/services.html.twig line 1

Open in your IDE?
  1. <section class="py-10 py-md-7 mb-5 overlay overlay-black overlay-60 bg-cover" style="background-image: url({{ getPostByTitle('Nos Services').image }});">
  2.     <div class="container">
  3.         <div class="row justify-content-center">
  4.             <div class="col-12 col-md-10 col-lg-8 text-center">
  5.                 <!-- Heading -->
  6.                 <h1 class="display-2 fw-bold text-white">
  7.                     {% if getPostByTitle('Nos Services') is not null %}
  8.                         {{ getPostByTitle('Nos Services').title }}
  9.                     {% endif %}
  10.                 </h1>
  11.                 <!-- Text -->
  12.                 <div class="lead text-white-75 mb-0 text-left">
  13.                     {{ getPostByTitle('Nos Services').description|raw }}
  14.                 </div>
  15.             </div>
  16.         </div> <!-- / .row -->
  17.     </div> <!-- / .container -->
  18.     <div class="container pt-5">
  19.         <div class="row">
  20.             <div class="col-12">
  21.                 <!-- Divider -->
  22.                 <!-- Categories -->
  23.                 <div class="row">
  24.                     {% if contentChildren(7) is not null %}
  25.                         {% for child in contentChildren(7) %}
  26.                     <div class="col-12 col-md-6 col-lg-4" data-aos="fade-up">
  27.                         <!-- Card -->
  28.                         <div class="card card-border border-dark shadow-lg mb-6 mb-md-8 mb-lg-0 lift lift-lg">
  29.                             <div class="card-body text-center">
  30.                                 <!-- Icon -->
  31.                                 <div class="icon-circle bg-transparent border-1 border-warning text-white mb-5 text-center" style="width: 50%;height: 50%;border: 1px solid #f19100">
  32.                                     <img src="{{ child.icon }}" loading="lazy" alt="{{ child.title }}" class="img-fluid rounded border-1 border-warning w-100 text-center">
  33.                                 </div>
  34.                                 <!-- Heading -->
  35.                                 <h4 class="fw-bold" >
  36.                                     {{ child.title }}
  37.                                 </h4>
  38.                                 <!-- Text -->
  39.                                 <p class="text-gray-700 mb-5 text-left" style="text-align: left">
  40.                                     {{ child.summary|u.truncate(50, '...', false) }}
  41.                                 </p>
  42.                                 <!-- Badge -->
  43.                                 <span class="badge rounded-pill bg-dark-soft">
  44.                                   <span class="h6 text-uppercase">
  45.                                   <a href="{{ path('service_details',{'slug':child.slug}) }}">Lire la suite</a>
  46.                                   </span>
  47.                                 </span>
  48.                             </div>
  49.                         </div>
  50.                     </div>
  51.                         {% endfor %}
  52.                     {% endif %}
  53.                 </div> <!-- / .row -->
  54.             </div>
  55.         </div> <!-- / .row -->
  56.     </div> <!-- / .container -->
  57. </section>
  58. <div class="position-relative">
  59.     <div class="shape shape-bottom shape-fluid-x text-light">
  60.         <svg viewBox="0 0 2880 48" fill="none" xmlns="http://www.w3.org/2000/svg">
  61.             <path d="M0 48h2880V0h-720C1442.5 52 720 0 720 0H0v48z" fill="currentColor"/>
  62.         </svg>
  63.     </div>
  64. </div>