templates/home/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Accueil{% endblock %}
  3. {% block content %}
  4.     <section class="hero-wrap hero-wrap-2" style="background-image: url('{{ asset('build/carnet_deuil_01.png') }}');" data-stellar-background-ratio="0.5">
  5.         <div class="overlay"></div>
  6.         <div class="container">
  7.             <div class="row no-gutters slider-text js-fullheight align-items-center justify-content-center">
  8.                 <div class="col-md-9 ftco-animate text-center">
  9.                     <h1 class="mb-3 bread">Art Émoi</h1>
  10.                     <p class="breadcrumbs"><span>Lieu d'ateliers, de thérapie, de formation et de ressourcement.</span></p>
  11.                 </div>
  12.             </div>
  13.         </div>
  14.     </section>
  15.     <section id="workshops" class="product-grid ftco-section">
  16.         <div class="container">
  17.             <div class="row justify-content-center mb-5">
  18.                 <div class="col-md-12 heading-section ftco-animate text-center">
  19.                     <h2 class="mb-1">Ateliers et Formations</h2>
  20.                 </div>
  21.             </div>
  22.             <div class="row">
  23.                 {% for product in products %}
  24.                     {% if product.active %}
  25.                         <div class="col-lg-4 col-md-12 mb-4 mb-lg-0">
  26.                             <div class="classes w-100 ftco-animate" style="border-bottom: solid 1px #2c396b;" >
  27.                                 {% if vich_uploader_asset(product, 'imageFile') is null %}
  28.                                     <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>
  29.                                 {% else %}
  30.                                     <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>
  31.                                 {% endif %}
  32.                             
  33.                                     <div class="text w-100 text-left mt-2" style="height: 7rem;">
  34.                                         <h3><a href="{{ path('front_product_details', {'slug': product.slug}) }}">{{ product.title }}</a></h3>
  35.                                     </div>
  36.                                 
  37.                                     <div class="tagcloud mt-2">
  38.                                         {% if product.online %}<span>Online</span>{% endif %}
  39.                                         {% if product.visio %}<span>Visio (Zoom)</span>{% endif %}
  40.                                         {% if product.present %}<span>Présentiel</span>{% endif %}
  41.                                         {% if product.rdv %}<span>Sur RDV</span>{% endif %}
  42.                                     </div>
  43.                                     <h5><a href="{{ path('front_product_details', {'slug': product.slug}) }}">{{ product.trainer }}</a></h5>
  44.                             
  45.                             </div>
  46.                         </div>
  47.                     {% endif %}
  48.                 {% endfor %}
  49.             </div>
  50.         </div>
  51.     </section>
  52.     <section  class="ftco-section testimony-section">
  53.         <div class="container">
  54.             <div class="row justify-content-center mt-5 mb-5 pb-3">
  55.                 <div class="col-md-10 heading-section ftco-animate text-center">
  56.                     <h2 class="mb-1">News</h2>
  57.                 </div>
  58.             </div>
  59.             <div class="row justify-content-md-center">
  60.                 <div class="col-md-12">
  61.                     <div class="carousel-news owl-carousel">
  62.                         {% for newsItem in news %}
  63.                             <div class="item col-md-6 offset-md-3">
  64.                                 <div class="testimony-wrap p-5">
  65.                                     <div class="text">
  66.                                         <div class="line">
  67.                                             <p class="mb-4 pb-1">{{ newsItem.content }}</p>
  68.                                             <span class="quote d-flex align-items-center justify-content-center">
  69.                                                         <i class="fas fa-bullhorn fa-4x"></i>
  70.                                                     </span>
  71.                                         </div>
  72.                                     </div>
  73.                                 </div>
  74.                             </div>
  75.                         {% else %}
  76.                             <div class="item">
  77.                                 <div class="testimony-wrap p-4">
  78.                                     <div class="text">
  79.                                         <div class="line">
  80.                                             <p class="mb-4 pb-1">Pas de news pur le moment</p>
  81.                                             <span class="quote d-flex align-items-center justify-content-center">
  82.                                                 <i class="fas fa-bullhorn"></i>
  83.                                            </span>
  84.                                         </div>
  85.                                     </div>
  86.                                 </div>
  87.                             </div>
  88.                         {% endfor %}
  89.                     </div>
  90.                 </div>
  91.             </div>
  92.         </div>
  93.         </section>
  94. {% endblock %}