templates/default/slide.html.twig line 1

Open in your IDE?
  1. {# <section id="hero">
  2.     <div id="heroCarousel" data-bs-interval="5000" class="carousel slide carousel-fade" data-bs-ride="carousel">
  3.       <ol class="carousel-indicators" id="hero-carousel-indicators"></ol>
  4.       <div class="carousel-inner" role="listbox">
  5.       
  6.         {% for pub in publications %}
  7.            
  8.             <div class="carousel-item {% if loop.index == 1 %}active{% endif %}" style="background-image: url({% if pub.nomImage %}{{ asset('uploads/pub_' ~ pub.id ~ '/' ~ pub.nomImage ) }}{% endif %})">
  9.                 <div class="carousel-container">
  10.                     <div class="container">
  11.                     <h2 class="animate__animated animate__fadeInDown"> {{ pub.titre }} </h2>
  12.                     <p class="animate__animated animate__fadeInUp"> {{ pub.sousTitre }}</p>
  13.                     <a href="#about" class="btn-get-started animate__animated animate__fadeInUp scrollto">Voir plus</a>
  14.                     </div>
  15.                 </div>
  16.             </div>
  17.         {% endfor %}
  18.       </div>
  19.       <a class="carousel-control-prev" href="#heroCarousel" role="button" data-bs-slide="prev">
  20.         <span class="carousel-control-prev-icon bi bi-chevron-left" aria-hidden="true"></span>
  21.       </a>
  22.       <a class="carousel-control-next" href="#heroCarousel" role="button" data-bs-slide="next">
  23.         <span class="carousel-control-next-icon bi bi-chevron-right" aria-hidden="true"></span>
  24.       </a>
  25.     </div>
  26.   </section> #}
  27. <section id="hero" class="hero section">
  28.     <div id="hero-carousel" class="carousel slide" data-bs-ride="carousel" data-bs-interval="5000">
  29.        
  30.         {% for pub in publications %}
  31.         <div class="carousel-item {% if loop.index == 1 %}active{% endif %}" 
  32.         style="background-image: url({% if pub.nomImage %}{{ asset('uploads/pub_' ~ pub.id ~ '/' ~ pub.nomImage ) }}{% endif %})"
  33.         >
  34.           {# <img src="assets/img/hero-carousel/hero-carousel-1.jpg" alt=""> #}
  35.             <div class="info d-flex align-items-left">
  36.               <div class="container">
  37.                 <div class="row justify-content-left" data-aos="fade-up" data-aos-delay="100">
  38.                   <div class="col-lg-6 text-left">
  39.                     <h2>{{ pub.titre }}</h2>
  40.                     <p style="font-size: 22px !important;">{{ pub.description }}</p>
  41.                       <a href="#" class="btn-get-started" style="margin-left: 0px !important;">Lire plus</a>
  42.                   </div>
  43.                 </div>
  44.               </div>
  45.             </div>
  46.         </div>
  47.         {% endfor %}
  48.         <a class="carousel-control-prev" href="#hero-carousel" role="button" data-bs-slide="prev">
  49.           <span class="carousel-control-prev-icon bi bi-chevron-left" aria-hidden="true"></span>
  50.         </a>
  51.         <a class="carousel-control-next" href="#hero-carousel" role="button" data-bs-slide="next">
  52.           <span class="carousel-control-next-icon bi bi-chevron-right" aria-hidden="true"></span>
  53.         </a>
  54.   </div>
  55. </section>