templates/home/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %} Accueil {% endblock %}
  3. {% block body %}
  4. <!--PRESENTATION-------------------->
  5.   <div class="container p-3 mt-5 rounded background-color-1 border">
  6.     <div class="row d-flex justify-content-center pt-3 pb-3 align-content-center align-items-center">
  7.       {% for article in articlesPresentation %}
  8.         {% if article.category == "Présentation" %}
  9.           <div class="col-12 col-md-12 col-lg-11 col-xl-6 sm-col-12 text-center">
  10.             <img  class="img-fluid" src="{{ asset('/media/fullsize/' ~ article.image.file) }}"  alt="{{article.image.alt}}">
  11.           </div>
  12.           <div class="col-12 col-md-12 col-lg-11 col-xl-6 sm-col-12 text-center p-3">
  13.             <h1>{{article.title }}</h1>
  14.             {{ article.text|raw }}
  15.           </div>
  16.         {% endif %}
  17.       {% endfor %}
  18.     </div>
  19.   </div>
  20. <!--SERVICES-------------------->
  21.   <div id="Services" class="container-fluid justify-content-center mt-5 mb-5 background-color-3">
  22.     <div class="row justify-content-center d-flex pt-3">
  23.       <div class="col-12 col-md-11">
  24.         <div class="row justify-content-center d-flex">
  25.           <h2 class="pb-3">Nos Services</h2>
  26.           {% for article in articlesPresentation %}
  27.             {% if article.category == "Nos Services" %}
  28.               <div class="col-12 col-md-6 col-lg-4 text-center p-2">
  29.                 <img  class="img-rounded4 p-2 img-fluid" src="{{ asset('/media/fullsize/' ~ article.image.file) }}"  alt="{{article.image.alt}}">
  30.                 <h3 class="color-1">{{ article.title }}</h3>
  31.                 <div class="color-1">{{ article.text|raw }}</div>
  32.               </div>
  33.             {% endif %}
  34.           {% endfor %}
  35.         </div>
  36.       </div>
  37.     </div>
  38.   </div>
  39. <!--PROPOSITION-------------------->
  40.   <div id="Proposition" class="container-fluid mt-5 mb-5 background-color-5">
  41.     <div class="row d-flex justify-content-center">
  42.       <div class="col-12 col-md-11 col-xl-10">
  43.         <div class="row justify-content-center d-flex">
  44.           <h1 class="pb-3">Notre proposition</h1>
  45.           {% for article in articlesPresentation %}
  46.             {% if article.category == "Notre proposition" %}
  47.               <div class="col-12 col-md-12 col-xl-6 align-self-center pt-3">
  48.                 <div class="row text-center m-1">
  49.                   <div class="col-12 col-md-4 col-xl-5 align-self-center">
  50.                     <img  class="img-rounded4 p-2 img-fluid" src="{{ asset('/media/fullsize/' ~ article.image.file) }}"  alt="{{article.image.alt}}">
  51.                   </div>
  52.                   <div class="col-12 col-md-8 col-xl-7">
  53.                     <h3 class="pt-3">{{ article.title }}</h3>
  54.                     {{ article.text|raw}}
  55.                   </div>
  56.                 </div>
  57.               </div>
  58.             {% endif %}
  59.           {% endfor %}
  60.         </div>
  61.       </div>
  62.     </div>
  63.   </div>
  64.   <div class="container justify-content-center  text-center">
  65.     <a href="{{path('app_contact')}}" class="btn3">Contactez-nous</a>
  66.   </div>
  67. <!--References---------------->
  68.   {{ render(controller('App\\Controller\\SlidersController::references')) }}
  69. <!--Tarif---------------->
  70.   {#<div class="container justify-content-center">
  71.     <div class="row d-flex justify-content-center">
  72.       {% for price in prices %}
  73.         {% if price.id == '2' %}
  74.           {% set color = 'c-primary-col-purple' %}
  75.         {% elseif price.id == '3'%}
  76.           {% set color = 'c-primary-col-red' %}
  77.         {% else %}
  78.           {% set color = '' %}
  79.         {% endif %}
  80.         
  81.         <div class="col-12 col-md-6 col-lg-4 mt-5 justify-content-center">
  82.           <div class="c-price-card {{color}}">
  83.             <div class="c-header">
  84.               <h1>{{price.title}}</h1>
  85.               <div class="priceTag">
  86.                 à partir de {{ price.price}}
  87.               </div>
  88.             </div>
  89.             <div class="c-body">
  90.               <div class="px-3 pt-5">
  91.                 <h5>{{price.subtitle1}}</h5>
  92.                 {{price.text1|raw}}
  93.               </div>
  94.               <div class="px-3">
  95.                 <h5>{{price.subtitle2}}</h5>
  96.                 {{price.text2|raw}}
  97.               </div>
  98.               <div class="p-4 row justify-content-center">
  99.                 <a href="{{ price.link }}" class="btn3">{{ price.button }}</a>
  100.               </div>
  101.             </div>
  102.           </div>
  103.         </div>
  104.       {% endfor %}
  105.     </div>
  106.   </div>#}
  107. {% endblock %}