templates/home.html.twig line 1

Open in your IDE?
  1. {%  extends "base.html.twig" %}
  2. {% block title %}Collège du Biereau - Accueil{% endblock %}
  3. {% block content %}
  4. <section class="home-slider owl-carousel">
  5.     {% for item in carousel %}
  6.         <div class="slider-item" style="background-image:url({{ vich_uploader_asset(item, 'backgroundImageFile') }});">
  7.             <div class="overlay"></div>
  8.             <div class="container">
  9.                 <div class="row no-gutters slider-text align-items-center justify-content-center" data-scrollax-parent="true">
  10.                     <div class="col-md-8 text-center ftco-animate">
  11.                         <h1 class="mb-4">{{ item.slogan }}</h1>
  12.                     </div>
  13.                 </div>
  14.             </div>
  15.         </div>
  16.     {% endfor %}
  17. </section>
  18. <section class="ftco-services ftco-no-pb">
  19.     <div class="container-wrap">
  20.         <div class="row no-gutters">
  21.             <div class="col-md-3 d-flex services align-self-stretch pb-4 px-4 ftco-animate bg-primary">
  22.                 <div class="media block-6 d-block text-center">
  23.                     <div class="icon d-flex justify-content-center align-items-center">
  24.                         <span class="flaticon-puzzle"></span>
  25.                     </div>
  26.                     <div class="media-body p-2 mt-3">
  27.                         <h3 class="heading">{{ school_values[0].title }}</h3>
  28.                         <p>{{ school_values[0].description }}</p>
  29.                     </div>
  30.                 </div>
  31.             </div>
  32.             <div class="col-md-3 d-flex services align-self-stretch pb-4 px-4 ftco-animate bg-tertiary">
  33.                 <div class="media block-6 d-block text-center">
  34.                     <div class="icon d-flex justify-content-center align-items-center">
  35.                         <span class="flaticon-save"></span>
  36.                         
  37.                     </div>
  38.                     <div class="media-body p-2 mt-3">
  39.                         <h3 class="heading">{{ school_values[1].title }}</h3>
  40.                         <p>{{ school_values[1].description }}</p>
  41.                     </div>
  42.                 </div>
  43.             </div>
  44.             <div class="col-md-3 d-flex services align-self-stretch pb-4 px-4 ftco-animate bg-fifth">
  45.                 <div class="media block-6 d-block text-center">
  46.                     <div class="icon d-flex justify-content-center align-items-center">
  47.                         <span class="flaticon-book"></span>
  48.                     </div>
  49.                     <div class="media-body p-2 mt-3">
  50.                         <h3 class="heading">{{ school_values[2].title }}</h3>
  51.                         <p>{{ school_values[2].description }}</p>
  52.                     </div>
  53.                 </div>
  54.             </div>
  55.             <div class="col-md-3 d-flex services align-self-stretch pb-4 px-4 ftco-animate bg-quarternary">
  56.                 <div class="media block-6 d-block text-center">
  57.                     <div class="icon d-flex justify-content-center align-items-center">
  58.                         <span class="flaticon-unity"></span>
  59.                     </div>
  60.                     <div class="media-body p-2 mt-3">
  61.                         <h3 class="heading">{{ school_values[3].title }}</h3>
  62.                         <p>{{ school_values[3].description }}</p>
  63.                     </div>
  64.                 </div>
  65.             </div>
  66.         </div>
  67.     </div>
  68. </section>
  69.     <section class="ftco-section testimony-section">
  70.         <div class="container">
  71.             <div class="row ftco-animate justify-content-center">
  72.                 <div class="col-md-12">
  73.                     <div class="carousel-testimony owl-carousel">
  74.                         {% for new in news %}
  75.                             <div class="item">
  76.                                 <div class="testimony-wrap d-flex">
  77.                                     <div class="user-img mr-4" style="background-image: url(images/newsletter.png)">
  78.                                     </div>
  79.                                     <div class="text ml-2">
  80.                                     <span class="quote d-flex align-items-center justify-content-center">
  81.                                       <i class="icon-quote-left"></i>
  82.                                     </span>
  83.                                         <p class="name">{{ new.title }}</p>
  84.                                         <p></p>
  85.                                         <p>{{ new.article }}</p>
  86.                                         <p class="name">{{ new.author }}</p>
  87.                                         <span class="position">{{ new.job }}</span>
  88.                                         {% if new.url is null %}
  89.                                         {% else %}
  90.                                             <div class="col-md-8 mt-5 text-center">
  91.                                                 <a href="{{ new.url }}" target="_blank" class="btn btn-sm btn-primary px-4 py-3">J'y vais <span class="ion-ios-arrow-round-forward"></span></a>
  92.                                             </div>
  93.                                         {% endif %}
  94.                                         {% if new.internalRoute is null %}
  95.                                         {% else %}
  96.                                             <div class="col-md-8 mt-5 text-center">
  97.                                                 <a href="{{ new.internalRoute.route }}" target="_blank" class="btn btn-sm btn-primary px-4 py-3">J'y vais <span class="ion-ios-arrow-round-forward"></span></a>
  98.                                             </div>
  99.                                         {% endif %}
  100.                                     </div>
  101.                                 </div>
  102.                             </div>
  103.                         {%  endfor %}
  104.                     </div>
  105.                 </div>
  106.             </div>
  107.         </div>
  108.     </section>
  109. {% endblock %}