{% extends "frontend.html.twig" %}
{% block stylesheet %}
{{ parent()}}
<style>
.zoom-background {
transition: transform 0.5s ease;
background-size: cover;
background-position: center;
}
.zoom-background:hover {
transform: scale(1.1);
}
.post-item {
overflow: hidden;
position: relative;
}
.post-date {
position: relative;
z-index: 1;
}
</style>
{% endblock %}
{% block main %}
{# ARIANE #}
{{ render(controller('App\\Controller\\LibrairieController::afficherAriane', {'menu': menu })) }}
<!-- Recent Blog Posts Section -->
<section id="recent-blog-posts" class="recent-blog-posts section">
<!-- Section Title -->
<div class="container section-title" data-aos="fade-up">
{# <h2>Recent Blog Posts</h2> #}
<p>Nous sommes ravis de partager avec vous nos réalisations</p>
</div><!-- End Section Title -->
<div class="container">
<div class="row gy-5">
{% for item in publications %}
<div class="col-xl-4 col-md-6">
<div class="post-item position-relative h-100" data-aos="fade-up" data-aos-delay="100">
<div class="post-img position-relative overflow-hidden zoom-background"
style="background-image: url('{{ asset('uploads/pub_' ~ item.id ~ '/' ~ item.nomImage ) }}'); height: 280px;"
>
{# <img src="{{ asset('uploads/pub_' ~ item.id ~ '/' ~ item.nomImage ) }}" class="img-fluid" alt=""> #}
<span class="post-date">{{ item.sousTitre }}</span>
</div>
<div class="post-content d-flex flex-column">
<h3 class="post-title">
{% if item.titre|length > 70 %}
{{ item.titre|slice(0, 70)|capitalize }}...
{% else %}
{{ item.titre|capitalize }}
{% endif %}
</h3>
<div class="meta d-flex align-items-center">
<div class="d-flex align-items-center">
<i class="bi bi-person"></i> <span class="ps-2">Administrateur</span>
</div>
<span class="px-3 text-black-50">/</span>
<div class="d-flex align-items-center">
<i class="bi bi-folder2"></i> <span class="ps-2">Installation</span>
</div>
</div>
<div class="meta d-flex align-items-center">
<span class="badge rounded-pill " style="background-color: #6d071a;color: white;">Primary</span>
</div>
<hr>
<div style="clear: both;"></div>
<a href="{{ path('app_detail_realisation',{'slug': item.slug })}}" class="readmore">
<span>Voir plus</span>
<i class="bi bi-arrow-right"></i>
</a>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</section>
<!-- /Recent Blog Posts Section -->
{% endblock %}