{% extends 'base.html.twig' %}
{% block title %}Blog{% endblock %}
{% block body %}
<style>
#hea{
background: url("{{asset('assets/img/prod/wp12879271-clothes-shop-wallpapers.jpg')}}");
background-size: cover;
background-attachment: fixed;
color: white;
}
.container2 {
display: flex;
max-width: 97%;
width: 100%;
overflow: hidden;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
background-color: #fff;
border-radius: 8px;
margin: 20px;
}
.image-container {
flex: 1;
overflow: hidden;
border-radius: 8px 0 0 8px;
}
.image-container img {
width: 100%;
height: 100%;
object-fit: cover;
}
.form-container {
flex: 1;
padding: 20px;
}
form {
display: flex;
flex-direction: column;
}
label {
margin-bottom: 8px;
}
input {
padding: 10px;
margin-bottom: 16px;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
padding: 12px;
background-color: #4caf50;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
@media (max-width: 600px) {
.container2 {
flex-direction: column;
max-width: 100%;
}
.image-container,
.form-container {
border-radius: 8px;
width: 100%;
}
.image-container {
border-radius: 8px 8px 0 0;
}
.form-control {
height: 40px; /* Ajustez la hauteur selon vos préférences */
border: 1px solid #ccc; /* Couleur de la bordure par défaut */
transition: border-color 0.3s; /* Ajoute une transition pour l'effet de changement de couleur de bordure */
}
/* Style pour les champs de formulaire lorsqu'ils ont le focus */
.form-control:focus {
border-color: #e61515; /* Rouge lorsqu'il est en focus */
outline: none; /* Supprime la bordure de focus par défaut de certains navigateurs */
}
}
.form-control {
height: 40px; /* Ajustez la hauteur selon vos préférences */
height: 3.3em;
border: 1px solid #ccc; /* Couleur de la bordure par défaut */
transition: border-color 0.3s; /* Ajoute une transition pour l'effet de changement de couleur de bordure */
}
.bouge{
margin-top: 20px;
margin-bottom: 20px;
display: block;
}
.ml {
margin: 20px;
margin-left: -1%;
}
.bt{
border: 1px solid black;
width: 75%;
}
.container2 {
display: flex;
max-width: 97%;
width: 100%;
overflow: hidden;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
background-color: #fff;
border-radius: 8px;
margin: 20px;
}
</style>
<div data-aos="fade" class="page-title" id="hea">
<div class="heading">
<div class="container">
<div class="row d-flex justify-content-center text-center">
<div class="col-lg-8">
<h1 style="color: white;">Notre blog</h1>
{# <p class="mb-0">Odio et unde deleniti. Deserunt numquam exercitationem. Officiis quo odio sint voluptas consequatur ut a odio voluptatem. Sit dolorum debitis veritatis natus dolores. Quasi ratione sint. Sit quaerat ipsum dolorem.</p> #}
</div>
</div>
</div>
</div>
<nav class="breadcrumbs">
<div class="container">
<ol>
<li><a href="{{path('app_home')}}">Blog</a></li>
<li class="current">Notre blog</li>
</ol>
</div>
</nav>
</div><!-- End Page Title -->
<section id="recent-posts" class="recent-posts">
<!-- Section Title -->
<div class="container section-title" data-aos="fade-up">
<h2>Recent Posts</h2>
<p>Retrouvez ci-dessous nos différents posts quotidiens.</p>
</div><!-- End Section Title -->
{# <div style="float:right">
{{ articles.getTotalItemCount }} Articles(s)
</div> #}
<div class="container">
<div class="row gy-4">
{% for article in articles %}
<div class="col-xl-4 col-md-6" data-aos="fade-up" data-aos-delay="100">
<article>
<div class="post-img">
<img src="{{ asset('images/articles/'~ article.image) }}" alt="" class="img-fluid">
</div>
<p class="post-category">eCommerce</p>
<h2 class="title">
<a href="{{path('app_admin_blog_detail',{id:article.id,'titre':article.titre |replace({' ': '_', 'é': 'e', 'è': 'e', 'ù': 'u', 'ê': 'e', '|': '_', '\'': '_'})})}}">{{ article.titre }}</a>
</h2>
<div class="d-flex align-items-center">
<img src="{{asset('assets/img/testimonials/user.jpg')}}" alt="" class="img-fluid post-author-img flex-shrink-0">
<div class="post-meta">
<p class="post-author">Admin</p>
<p class="post-date">
<time datetime="2022-01-01">{{article.createdAt|date("d F Y")}}</time>
</p>
</div>
</div>
</article>
</div>
{% endfor %}
<div class="navigation d-flex justify-content">
{{ knp_pagination_render(articles) }}
</div>
</section>
{# <div class="row d-flex">
<div class="col-md-4">
<div class="card">
<img src="{{ asset('images/articles/'~ article.image) }}" style="height: 100px; " class="card-img-top" alt="Article 1">
<div class="card-body">
<h5 class="card-title">{{ article.titre }}</h5>
<p class="card-text">{{ article.miniDescription }}</p>
<a href="#" class="btn btn-primary">Lire la suite</a>
</div>
</div>
</div>
</div> #}
{# <div class="card text-start ml bt">
<img class="card-img-top"
src="{{ asset('images/articles/'~ article.image) }}" width="150px" height="150px" alt="Title">
<div class="card-body ">
<h4 class="card-title">{{ article.titre }}</h4>
<p class="card-text">{{ article.miniDescription }}</p>
<a href="{{path('app_admin_blog_detail',{id:article.id})}}" class="btn btn-primary">Lire la suite</a>
</div>
</div> #}
{% endblock %}