templates/gallery/gallerieFront.html.twig line 1

Open in your IDE?
  1. {% extends 'backfront.html.twig' %}
  2. {% block title %}SIP ACADEMY {% endblock %}
  3. {% block body %}
  4.     <style>
  5.         .gallery-area .row {
  6.             display: flex;
  7.             flex-wrap: wrap;
  8.             justify-content: center;
  9.         }
  10.         @media (max-width: 767px) {
  11.             .gallery-area .single-gallery-img {
  12.                 display: flex;
  13.                 justify-content: center;
  14.             }
  15.             .gallery-area .single-gallery-img img {
  16.                 width: 100%; /* Ensure it adapts to mobile screen size */
  17.                 max-width: 365px; /* Maintain the maximum width */
  18.                 height: auto;
  19.             }
  20.         }
  21.     </style>
  22.     <!--Gallery Area Start-->
  23. <div class="gallery-area pt-100 pb-70">
  24.     <div class="container">
  25.         <div class="row">
  26.             <!--Single Gallery Image Start-->
  27.             {% for gallerie in galleries|sort|reverse %}
  28.                 <div class="col-md-4 col-sm-6 d-flex justify-content-center">
  29.                     <div class="single-gallery-img mb-30">
  30.                         <a href="{{asset('uploads/gallery/'~ gallerie.image1  )}}" data-fancybox="images">
  31.                             <img src="{{asset('uploads/gallery/'~ gallerie.image1  )}}" alt="" class="img-fluid" style="height: 300px; width: 365px;">
  32.                         </a>
  33.                     </div>
  34.                 </div>
  35.             {% endfor %}
  36.             <!--Single Gallery Image End-->
  37.             <!--Single Gallery Image Start-->
  38.         </div>
  39.     </div>
  40. </div>
  41. <!--Gallery Area End-->
  42. {% endblock %}