templates/home/service.html.twig line 1

Open in your IDE?
  1. {% extends 'front/base.html.twig' %}
  2. {% block title %}Hello MainController!{% endblock %}
  3. {% block body %}
  4.     <!-- WELCOME -->
  5.     <section class="py-10 py-md-14 overlay overlay-black overlay-60 bg-cover"
  6.              style="background-image: url({{ asset('uploads/logistics-transport.jpg') }});background-position: 30% 20%">
  7.         <div class="container">
  8.             <div class="row justify-content-center">
  9.                 <div class="col-12 col-md-10 col-lg-8 text-center">
  10.                     <!-- Heading -->
  11.                     <h1 class="display-2 fw-bold text-white">
  12.                         {{ post.title }}
  13.                     </h1>
  14.                 </div>
  15.             </div> <!-- / .row -->
  16.         </div> <!-- / .container -->
  17.     </section>
  18.     <!-- SHAPE -->
  19.     <div class="position-relative">
  20.         <div class="shape shape-bottom shape-fluid-x text-light">
  21.             <svg viewBox="0 0 2880 48" fill="none" xmlns="http://www.w3.org/2000/svg">
  22.                 <path d="M0 48h2880V0h-720C1442.5 52 720 0 720 0H0v48z" fill="currentColor"/>
  23.             </svg>
  24.         </div>
  25.     </div>
  26.     <div class="container">
  27.         <div class="row">
  28.             <nav aria-label="breadcrumb">
  29.                 <ol class="breadcrumb breadcrumb-scroll">
  30.                     <li class="breadcrumb-item">
  31.                         <a class="text-gray-700" href="{{ path('home') }}">
  32.                             Accueil
  33.                         </a>
  34.                     </li>
  35.                     {% if post.parent is not null %}
  36.                     <li class="breadcrumb-item">
  37.                        <a class="text-gray-700" href="{{ path('service_details',{'slug':post.parent.slug}) }}"> {{ post.parent }}</a>
  38.                     </li>
  39.                     {% endif %}
  40.                     <li class="breadcrumb-item active" aria-current="page">
  41.                         {{ post.title }}
  42.                     </li>
  43.                 </ol>
  44.             </nav>
  45.         </div>
  46.     </div>
  47.     <section class="pt-2 pt-md-2 mb-5">
  48.         <div class="container">
  49.             <div class="row align-items-center mb-5">
  50.                 <div class="col-12 col-md">
  51.                     <!-- Heading -->
  52.                     <h3 class="mb-3">
  53.                         {{ post.title }}
  54.                     </h3>
  55.                     <!-- Text -->
  56.                     <p class="mb-0 text-muted">
  57.                         {{ post.description|raw }}
  58.                     </p>
  59.                 </div>
  60.             </div> <!-- / .row -->
  61.             <div class="row">
  62.                 {% if contentChildren(7) is not null %}
  63.                 {% for child in contentChildren(7) %}
  64.                 <div class="col-12 col-md-6 col-lg-4 d-flex">
  65.                     <!-- Card -->
  66.                     <div class="card mb-6 mb-lg-0 shadow-light-lg lift lift-lg">
  67.                         <!-- Image -->
  68.                         <a class="card-img-top" href="{{ path('service_details',{'slug':child.slug}) }}">
  69.                             <!-- Image -->
  70.                             <img src="{{ child.image }}" alt="{{ child.title }}" class="card-img-top">
  71.                             <!-- Shape -->
  72.                             <div class="position-relative">
  73.                                 <div class="shape shape-bottom shape-fluid-x text-white">
  74.                                     <svg viewBox="0 0 2880 480" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2160 0C1440 240 720 240 720 240H0v240h2880V0h-720z" fill="currentColor"/></svg>                  </div>
  75.                             </div>
  76.                         </a>
  77.                         <!-- Body -->
  78.                         <a class="card-body" href="{{ path('service_details',{'slug':child.slug}) }}">
  79.                             <!-- Heading -->
  80.                             <h3>
  81.                                 {{ child.title }}
  82.                             </h3>
  83.                             <!-- Text -->
  84.                             <div class="mb-0 text-muted">
  85.                                 {{ child.summary|u.truncate(83, '...', false) }}
  86.                             </div>
  87.                         </a>
  88.                         <!-- Meta -->
  89.                         <a class="card-meta mt-auto text-muted" href="{{ path('service_details',{'slug':child.slug}) }}">
  90.                             <!-- Divider -->
  91.                             <hr class="card-meta-divider">
  92.                             <i class="fe fe-eye"></i>  Voir les détails
  93.                         </a>
  94.                     </div>
  95.                 </div>
  96.                 {% endfor %}
  97.                 {% endif %}
  98.             </div> <!-- / .row -->
  99.         </div> <!-- / .container -->
  100.     </section>
  101.     <!-- SHAPE -->
  102.     <div class="position-relative">
  103.         <div class="shape shape-bottom shape-fluid-x text-gray-200">
  104.             <svg viewBox="0 0 2880 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 48h2880V0h-720C1442.5 52 720 0 720 0H0v48z" fill="currentColor"/></svg>      </div>
  105.     </div>
  106. {% endblock %}