{% 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">
<div class="container">
<div class="row">
<div class="col-lg-8">
<!-- Blog Details Section -->
<section id="blog-details" class="blog-details section">
<div class="container">
<article class="article">
<div class="post-img"
{# style="background-image: url('{{ asset('uploads/pub_' ~ p.id ~ '/' ~ p.nomImage ) }}'); height: auto;" #}
>
<img src="{{ asset('uploads/pub_' ~ p.id ~ '/' ~ p.nomImage ) }}" alt="" class="img-fluid">
</div>
<h2 class="title">{{ p.titre|capitalize }}</h2>
{# <div class="meta-top">
<ul>
<li class="d-flex align-items-center"><i class="bi bi-person"></i> <a href="blog-details.html">John Doe</a></li>
<li class="d-flex align-items-center"><i class="bi bi-clock"></i> <a href="blog-details.html"><time datetime="2020-01-01">Jan 1, 2022</time></a></li>
<li class="d-flex align-items-center"><i class="bi bi-chat-dots"></i> <a href="blog-details.html">12 Comments</a></li>
</ul>
</div> #}
<!-- End meta top -->
<div class="content">
<h3>{{ p.sousTitre }}</h3>
<p>{{ p.description }}</p>
{% if p.description %}
<blockquote style="text-align: left !important;">
<p> {{ p.description }}</p>
</blockquote>
{% endif %}
{{ p.contenu|raw }}
{# <img src="assets/img/blog/blog-inside-post.jpg" class="img-fluid" alt=""> #}
</div><!-- End post content -->
{# <div class="meta-bottom">
<i class="bi bi-folder"></i>
<ul class="cats">
<li><a href="#">Business</a></li>
</ul>
<i class="bi bi-tags"></i>
<ul class="tags">
<li><a href="#">Creative</a></li>
<li><a href="#">Tips</a></li>
<li><a href="#">Marketing</a></li>
</ul>
</div> #}
<!-- End meta bottom -->
</article>
</div>
</section><!-- /Blog Details Section -->
</div>
<div class="col-lg-4 sidebar">
<div class="widgets-container">
<!-- Categories Widget -->
{# <div class="categories-widget widget-item">
<h3 class="widget-title">Categories</h3>
<ul class="mt-3">
<li><a href="#">General <span>(25)</span></a></li>
<li><a href="#">Lifestyle <span>(12)</span></a></li>
<li><a href="#">Travel <span>(5)</span></a></li>
<li><a href="#">Design <span>(22)</span></a></li>
<li><a href="#">Creative <span>(8)</span></a></li>
<li><a href="#">Educaion <span>(14)</span></a></li>
</ul>
</div> #}
<!--/Categories Widget -->
<!-- Recent Posts Widget -->
<div class="recent-posts-widget widget-item">
<h3 class="widget-title">Autre réalisations</h3>
{% for ap in aps %}
{% if ap.id != p.id %}
<div class="post-item">
<div class="flex-shrink-0"
style="background-image: url('{{ asset('uploads/pub_' ~ ap.id ~ '/' ~ ap.nomImage ) }}');
height: 80px;width: 80px;background-size: cover;background-position: center;"
></div>
<div style="padding:5px 10px;">
<h4><a href="{{ path('app_detail_realisation',{'slug': ap.slug })}}">
{% if ap.titre|length > 70 %}
{{ ap.titre|slice(0, 70)|capitalize }}...
{% else %}
{{ ap.titre|capitalize }}
{% endif %}
</a></h4>
<time datetime="2020-01-01">
{% if ap.sousTitre|length > 40 %}
{{ ap.sousTitre|slice(0, 40)|capitalize }}...
{% else %}
{{ ap.sousTitre }}
{% endif %}
</time>
</div>
</div><!-- End recent post item-->
{% endif %}
{% endfor %}
</div><!--/Recent Posts Widget -->
<!-- Tags Widget -->
<div class="tags-widget widget-item">
<h3 class="widget-title">Tags</h3>
{# <ul>
<li><a href="#">App</a></li>
<li><a href="#">IT</a></li>
<li><a href="#">Business</a></li>
<li><a href="#">Mac</a></li>
<li><a href="#">Design</a></li>
<li><a href="#">Office</a></li>
<li><a href="#">Creative</a></li>
<li><a href="#">Studio</a></li>
<li><a href="#">Smart</a></li>
<li><a href="#">Tips</a></li>
<li><a href="#">Marketing</a></li>
</ul> #}
</div><!--/Tags Widget -->
</div>
</div>
</div>
</div>
</section>
<!-- /Recent Blog Posts Section -->
{% endblock %}