templates/galerie/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Arvernus - Galery{% endblock %}
  3. {% block body %}
  4.     <!-- Lightbox2 CSS -->
  5.     <link href="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.3/css/lightbox.min.css" rel="stylesheet">
  6.     <style>
  7.         .gallery-img {
  8.             width: 100%; /* Ensure the image fits within its container */
  9.             height: 200px; /* Set a fixed height for all images */
  10.             object-fit: cover; /* Ensures the image covers the box without stretching */
  11.         }
  12.     </style>
  13.     <section class="page-title" style="background-image: url(images/background/breadcumb-bg.jpg);">
  14.         <div class="auto-container">
  15.             <div class="title-outer text-center">
  16.                 <h1 class="title">Galerie</h1>
  17.                 <ul class="page-breadcrumb">
  18.                     <li><a href="{{ path('app_default') }}"><i class="fa-solid fa-home"></i>Galerie</a></li>
  19.                 </ul>
  20.             </div>
  21.         </div>
  22.     </section>
  23.     <section class="blog-section gap-two">
  24.         <div class="auto-container">
  25.             <div class="sec-title text-center">
  26.                 <h2 class="letters-slide-up text-split">Galerie</h2>
  27.             </div>
  28.             <div class="row">
  29.                 {% for i in 1..32 %}
  30.                     <div class="col-lg-4 col-md-6">
  31.                         <!-- Blog Single Box -->
  32.                         <article class="blog-single-box">
  33.                             <div class="post-item">
  34.                                 <figure class="blog-thumb overlay-anim">
  35.                                     <!-- Add a link wrapping the image for the lightbox -->
  36.                                     <a href="{{ asset('images/galerie/' ~ i ~ '.jpg') }}" data-lightbox="gallery" data-title="Image {{ i }}">
  37.                                         <img class="gallery-img" src="{{ asset('images/galerie/' ~ i ~ '.jpg') }}" alt="Image {{ i }}">
  38.                                     </a>
  39.                                 </figure>
  40.                             </div>
  41.                         </article>
  42.                     </div>
  43.                 {% endfor %}
  44.             </div>
  45.         </div>
  46.     </section>
  47. {% endblock %}