{% extends 'base.html.twig' %}
{% block title %}Actualités{% endblock %}
{% block style %}
<style>
.pagination {
padding-top: 50px;
justify-content: center;
}
.pagination__item {
padding: 5px 15px;
background: #b4b4b4;
border-radius: 10px;
margin-right: 5px;
color: #fff;
}
</style>
{% endblock %}
{% block banniere %}
<section class="bannier-blog">
<img src="{{ asset('front/images/ban/header-blog-ecole-de-surf-cote-sauvage.jpg') }}" class="img" alt="blog ecole de surf cote sauvage">
</section>
{% endblock %}
{% block contenu %}
<section class="pt-75 pb-35">
<div class="container">
<div class="sect-title text-center">
<div class="h1">
Le Blog de l’ESCS
</div>
</div>
<div class="text-1 text-center mb-45">
Retrouvez toutes les infos sur l’Ecole de Surf de la Côte Sauvage, nos coups de coeur, nos bons
plans et des rencontres avec nos partenaires locaux.
</div>
<div class="row">
{% for actualite in pager %}
{{ actualite.init() }}
<div class="col-xl-4 col-md-6 col-12 mb-30">
<div class="item-blog">
<div class="img"><img src="{{ asset(actualite.imgSrc) }}" loading="lazy" alt=""></div>
<div class="content">
<div class="date">
<span>
{{ actualite.date|localizeddate('none', 'none', null, null, 'd') }}
{% set trans_day_hash = {
"January": "Janvier",
"February": "Février",
"March": "Mars",
"April": "Avril",
"May": "Mai",
"June": "Juin",
"July": "Juillet",
"August": "Juillet",
"September": "Septembre",
"October": "Octobre",
"November": "Novembre",
"December": "Décembre"
}
%}
</span> {{ trans_day_hash[actualite.date|localizeddate('none', 'none', null, null, 'MMMM')] | slice(0, 3) }} <br>{{ actualite.date|localizeddate('none', 'none', null, null, 'Y') }}
</div>
<div class="title">
{{ actualite.titre }}
</div>
<div class="link">
lire la suite
</div>
<div class="wave"></div>
</div>
<a href="{{ path('app_actualite_detail', { slug : actualite.slug }) }}" class="full-link"></a>
</div>
</div>
{% endfor %}
<div class="col-12 mb-30">
{{ pagerfanta(pager) }}
</div>
</div>
</div>
</section>
{% endblock %}
{% block formule %}
{% include 'front/formule.html.twig' %}
{% endblock %}