templates/fronts/projet_details.html.twig line 1

  1. {% extends 'base_front.html.twig' %}
  2. {% block title %}{{ projet.nom }}{% endblock %}
  3. {% block body %}
  4.     <section id="ldc-lab" class="section bg-light">
  5.     <!-- En-tête avec image de fond -->
  6.     <div class="hero-section" style="background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/front/images/background-details.avif'); background-size: cover; background-position: center;">
  7.         <div class="container py-5 text-center text-white">
  8.             <h1 class="display-4 fw-bold mb-3 text-white">{{ projet.nom }}</h1>
  9.         </div>
  10.     </div>
  11.     <!-- Contenu principal -->
  12.     <div class="container py-5">
  13.         <div class="row">
  14.             <!-- Colonne principale -->
  15.             <div class="col-lg-8">
  16.                 <!-- À propos -->
  17.                 <div class="card shadow-sm mb-4">
  18.                     <div class="card-body">
  19.                         <div class="d-flex align-items-center mb-4">
  20.                             <div class="icon-box bg-coral text-white rounded-circle me-3">
  21.                                 <i class="fas fa-university"></i>
  22.                             </div>
  23.                             <h2 class="h4 mb-0">Présentation </h2>
  24.                         </div>
  25.                         
  26.                         <div class="lab-info mb-4">
  27.                             {{ projet.objectif|raw }}
  28.                         </div>
  29.                         <div class="col-12 col-lg">
  30.                             <h3>Détails</h3>
  31.                             <img src="/upload/projets/{{ projet.image }}" alt="{{ projet.image }}" class="project-image"><br>
  32.                             <span>{{ projet.description|raw }}</span><br><br>
  33.                         </div>
  34.                     </div>
  35.                 </div>
  36.                 
  37.                 
  38.             </div>
  39.             
  40.             <div class="col-lg-4">
  41.                 <div class="card shadow-sm mb-4">
  42.                     <div class="card-body">
  43.                         <h5 class="card-title text-center mb-4"><i class="fas fa-users me-2"></i>Notre équipe</h5>
  44.                         <div class="stats-grid">
  45.                            {% for chercheur in chercheursProjet %}
  46.                             {% if chercheur.chercheur is not null %}
  47.                                 <a href="{{ path('app_chercheurs_details', {'idChercheur': chercheur.chercheur.id}) }}" data-lightbox="gallery" class="stat-item">
  48.                                     <div class="stat-chiffre-icon">
  49.                                         {% if chercheur.chercheur.photo is not null  %}
  50.                                             <img src="/upload/chercheurs/{{ chercheur.chercheur.photo }}" alt="Photo de {{ chercheur.chercheur.nom }} {{ chercheur.chercheur.prenom }}"  title="{{ chercheur.chercheur.prenom }}{{ chercheur.chercheur.nom }}" class="img-fluidd rounded">
  51.                                         {% else %}
  52.                                             <img src="/front/icons/utilisateur.png" alt="Photo de {{ chercheur.chercheur.nom }} {{ chercheur.chercheur.prenom }}" title="{{ chercheur.chercheur.prenom }}{{ chercheur.chercheur.nom }}" class="img-fluidd rounded">
  53.                                         {% endif %}
  54.                                     </div>
  55.                                     <div class="stat-content">
  56.                                         <div class="stat-label">{{ chercheur.chercheur.prenom }}{{ chercheur.chercheur.nom }}</div>
  57.                                     </div>
  58.                                 </a>
  59.                             {% endif %}
  60.                         {% endfor %}
  61.                     </div>
  62.                 </div>
  63.             </div>
  64.         </div>
  65.             <!-- Colonne latérale -->
  66.           
  67.         </div>
  68.     </div>
  69. </section>
  70. <style>
  71.     .project-image {
  72.         display: block;
  73.         margin: 0 auto;
  74.         max-width: 100%;
  75.         height: auto;
  76.     }
  77.    
  78. </style>
  79. <script>
  80. document.addEventListener('DOMContentLoaded', function() {
  81.     const swiper = new Swiper('.main-slider', {
  82.         slidesPerView: 1,
  83.         spaceBetween: 20,
  84.         pagination: {
  85.             el: '.swiper-pagination',
  86.             clickable: true,
  87.         },
  88.         navigation: {
  89.             nextEl: '.swiper-button-next',
  90.             prevEl: '.swiper-button-prev',
  91.         },
  92.         breakpoints: {
  93.             // When window width is >= 768px
  94.             768: {
  95.                 slidesPerView: 1, // Still 1 slide (containing 2 researchers)
  96.             }
  97.         }
  98.     });
  99.     // Initialisation du slider principal
  100.   /*  const mainSlider = new Swiper('.main-slider', {
  101.         loop: true,
  102.         autoplay: {
  103.             delay: 5000,
  104.             disableOnInteraction: false,
  105.         },
  106.         pagination: {
  107.             el: '.swiper-pagination',
  108.             clickable: true,
  109.         },
  110.         navigation: {
  111.             nextEl: '.swiper-button-next',
  112.             prevEl: '.swiper-button-prev',
  113.         },
  114.     });
  115.     
  116.     
  117.     
  118.     // Synchronisation des sliders
  119.     mainSlider.controller.control = thumbnailSlider;
  120.     
  121.     // Lightbox pour les images
  122.     lightbox.option({
  123.         'resizeDuration': 200,
  124.         'wrapAround': true,
  125.         'albumLabel': 'Image %1 sur %2'
  126.     });*/
  127. });
  128. </script>
  129. {% endblock %}