<section class="slice push-publi-news">
<div class="fluid-grid">
<div class="row">
<div class="col-12 md-col-6 flex flex-col">
<h2 class="relative title title--XL title--circle title--circle-big text-violet mb-6 font-light">
Notre dernière <span>publication</span>
</h2>
<div class="flex-grow w-full flex flex-col items-start">
<div class="flex-grow flex">
{% if slice.publication is defined and slice.publication is not empty %}
{% set publication = slice.publication %}
{% set publicationProperties = publication.contentProperties %}
{% else %}
{% set publication = find_last_for_home("publication", 1) %}
{% set publicationProperties = publication.contentProperties %}
{% endif %}
{% include 'front/partials/cards/publication.html.twig' with { size: 'L', type: publication.type } %}
</div>
<a class="button button--rounded button--arrow button--border button--border--violet mt-8" href="{{ page_url('publications-list', 'front') }}">
<span>Voir toutes nos publications</span>
<svg width="12" height="12" class="picto icon ml-2 flex-shrink-0">
<use href="#icon-arrow" xlink:href="#icon-arrow"></use>
</svg>
</a>
</div>
</div>
<div class="col-12 md-col-6 mt-14 md:mt-0 flex flex-col">
<h2 class="title title--XL text-violet mb-6 font-light">
Actualités <span>de la CGF</span>
</h2>
<div class="flex-grow w-full flex flex-col items-start">
<div class="flex-grow flex w-full"
js-slider="{screens: {max: 'xl'}, options: { slidesPerView: 1, spaceBetween: 16, breakpoints: { 1024: { slidesPerView: 1.57 }} }}">
<div class="swiper-container max-w-full md:max-w-none" js-slider-el>
<div class="swiper-wrapper push-publi-news__news">
{% if slice.firstNews is defined and slice.firstNews is not empty %}
{% set firstNews = slice.firstNews %}
{% set firstNewsProperties = firstNews.contentProperties %}
{% set secondNews = slice.secondNews %}
{% set secondNewsProperties = secondNews.contentProperties %}
{% else %}
{% set firstNews = find_last_for_home("news", 2)[0] %}
{% set firstNewsProperties = firstNews.contentProperties %}
{% set secondNews = find_last_for_home("news", 2)[1] %}
{% set secondNewsProperties = secondNews.contentProperties %}
{% endif %}
<div class="swiper-slide push-publi-news__item">
{% include 'front/partials/cards/news-event.html.twig' with { size: 'S', type: firstNews.type, news: firstNews, newsProperties: firstNewsProperties } %}
</div>
<div class="swiper-slide push-publi-news__item">
{% include 'front/partials/cards/news-event.html.twig' with { size: 'S', type: secondNews.type, news: secondNews, newsProperties: secondNewsProperties } %}
</div>
</div>
</div>
</div>
<a class="button button--rounded button--arrow button--border button--border--violet mt-8" href="{{ page_url('news-list', 'front') }}">
<span>Voir toutes nos actualités</span>
<svg width="12" height="12" class="picto icon ml-2 flex-shrink-0">
<use href="#icon-arrow" xlink:href="#icon-arrow"></use>
</svg>
</a>
</div>
</div>
</div>
</div>
</section>