templates/fronts/projet_details.html.twig line 1
{% extends 'base_front.html.twig' %}
{% block title %}{{ projet.nom }}{% endblock %}
{% block body %}
<section id="ldc-lab" class="section bg-light">
<!-- En-tête avec image de fond -->
<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;">
<div class="container py-5 text-center text-white">
<h1 class="display-4 fw-bold mb-3 text-white">{{ projet.nom }}</h1>
</div>
</div>
<!-- Contenu principal -->
<div class="container py-5">
<div class="row">
<!-- Colonne principale -->
<div class="col-lg-8">
<!-- À propos -->
<div class="card shadow-sm mb-4">
<div class="card-body">
<div class="d-flex align-items-center mb-4">
<div class="icon-box bg-coral text-white rounded-circle me-3">
<i class="fas fa-university"></i>
</div>
<h2 class="h4 mb-0">Présentation </h2>
</div>
<div class="lab-info mb-4">
{{ projet.objectif|raw }}
</div>
<div class="col-12 col-lg">
<h3>Détails</h3>
<img src="/upload/projets/{{ projet.image }}" alt="{{ projet.image }}" class="project-image"><br>
<span>{{ projet.description|raw }}</span><br><br>
</div>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="card shadow-sm mb-4">
<div class="card-body">
<h5 class="card-title text-center mb-4"><i class="fas fa-users me-2"></i>Notre équipe</h5>
<div class="stats-grid">
{% for chercheur in chercheursProjet %}
{% if chercheur.chercheur is not null %}
<a href="{{ path('app_chercheurs_details', {'idChercheur': chercheur.chercheur.id}) }}" data-lightbox="gallery" class="stat-item">
<div class="stat-chiffre-icon">
{% if chercheur.chercheur.photo is not null %}
<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">
{% else %}
<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">
{% endif %}
</div>
<div class="stat-content">
<div class="stat-label">{{ chercheur.chercheur.prenom }}{{ chercheur.chercheur.nom }}</div>
</div>
</a>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
<!-- Colonne latérale -->
</div>
</div>
</section>
<style>
.project-image {
display: block;
margin: 0 auto;
max-width: 100%;
height: auto;
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function() {
const swiper = new Swiper('.main-slider', {
slidesPerView: 1,
spaceBetween: 20,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
breakpoints: {
// When window width is >= 768px
768: {
slidesPerView: 1, // Still 1 slide (containing 2 researchers)
}
}
});
// Initialisation du slider principal
/* const mainSlider = new Swiper('.main-slider', {
loop: true,
autoplay: {
delay: 5000,
disableOnInteraction: false,
},
pagination: {
el: '.swiper-pagination',
clickable: true,
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
});
// Synchronisation des sliders
mainSlider.controller.control = thumbnailSlider;
// Lightbox pour les images
lightbox.option({
'resizeDuration': 200,
'wrapAround': true,
'albumLabel': 'Image %1 sur %2'
});*/
});
</script>
{% endblock %}