{% extends 'base.html.twig' %}
{% block title %}Accueil{% endblock %}
{% block content %}
<section class="hero-wrap hero-wrap-2" style="background-image: url('{{ asset('build/carnet_deuil_01.png') }}');" data-stellar-background-ratio="0.5">
<div class="overlay"></div>
<div class="container">
<div class="row no-gutters slider-text js-fullheight align-items-center justify-content-center">
<div class="col-md-9 ftco-animate text-center">
<h1 class="mb-3 bread">Art Émoi</h1>
<p class="breadcrumbs"><span>Lieu d'ateliers, de thérapie, de formation et de ressourcement.</span></p>
</div>
</div>
</div>
</section>
<section id="workshops" class="product-grid ftco-section">
<div class="container">
<div class="row justify-content-center mb-5">
<div class="col-md-12 heading-section ftco-animate text-center">
<h2 class="mb-1">Ateliers et Formations</h2>
</div>
</div>
<div class="row">
{% for product in products %}
{% if product.active %}
<div class="col-lg-4 col-md-12 mb-4 mb-lg-0">
<div class="classes w-100 ftco-animate" style="border-bottom: solid 1px #2c396b;" >
{% if vich_uploader_asset(product, 'imageFile') is null %}
<a href="{{ path('front_product_details', {'slug': product.slug }) }}" class="img w-100 mb-3" style="background-image: url('{{ asset('build/background_with_logo.png') }}');"></a>
{% else %}
<a href="{{ path('front_product_details', {'slug': product.slug }) }}" class="img w-100 mb-3" style="background-image: url('{{ vich_uploader_asset(product, 'imageFile') | imagine_filter('workshop_jacket') }}');"></a>
{% endif %}
<div class="text w-100 text-left mt-2" style="height: 7rem;">
<h3><a href="{{ path('front_product_details', {'slug': product.slug}) }}">{{ product.title }}</a></h3>
</div>
<div class="tagcloud mt-2">
{% if product.online %}<span>Online</span>{% endif %}
{% if product.visio %}<span>Visio (Zoom)</span>{% endif %}
{% if product.present %}<span>Présentiel</span>{% endif %}
{% if product.rdv %}<span>Sur RDV</span>{% endif %}
</div>
<h5><a href="{{ path('front_product_details', {'slug': product.slug}) }}">{{ product.trainer }}</a></h5>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</section>
<section class="ftco-section testimony-section">
<div class="container">
<div class="row justify-content-center mt-5 mb-5 pb-3">
<div class="col-md-10 heading-section ftco-animate text-center">
<h2 class="mb-1">News</h2>
</div>
</div>
<div class="row justify-content-md-center">
<div class="col-md-12">
<div class="carousel-news owl-carousel">
{% for newsItem in news %}
<div class="item col-md-6 offset-md-3">
<div class="testimony-wrap p-5">
<div class="text">
<div class="line">
<p class="mb-4 pb-1">{{ newsItem.content }}</p>
<span class="quote d-flex align-items-center justify-content-center">
<i class="fas fa-bullhorn fa-4x"></i>
</span>
</div>
</div>
</div>
</div>
{% else %}
<div class="item">
<div class="testimony-wrap p-4">
<div class="text">
<div class="line">
<p class="mb-4 pb-1">Pas de news pur le moment</p>
<span class="quote d-flex align-items-center justify-content-center">
<i class="fas fa-bullhorn"></i>
</span>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</section>
{% endblock %}