templates/home/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Accueil village green!{% endblock %}
  3. {% block body %}
  4.     <section>
  5.         <div class="container bg-center">
  6.             <nav aria-label="breadcrumb">
  7.                 <ol class="breadcrumb">
  8.                     <li class="breadcrumb-item active" aria-current="page">Accueil</li>
  9.                 </ol>
  10.             </nav>
  11.             <!-- Contente-->
  12.             <div class="row p-4">
  13.                 <div class="col-sm-12 col-md-12 col-lg-9 col-xl-9">
  14.                     <img src="/assets/src/pub-guitare.png" alt="pub guitare" class="w-100" height="100%">
  15.                 </div>
  16.                 <div class="col-sm-12 col-md-12 col-lg-3 col-xl-3 d-none d-lg-block d-xl-block p-0">
  17.                     <img src="/assets/src/banniere-droite-prix.png"  alt="pub banniere"  class="w-100" height="100%">
  18.                 </div>
  19.             </div>
  20.             <div class="row mt-2 mb-2">
  21.                 <img src="/assets/src/banniere-centre-4-pictos.png"  alt="pub picto" class="w-100">
  22.             </div>
  23.             <div class="row p-4">
  24.                 <h2>Nos Catégories</h2>
  25.             </div>
  26.             <div class="row pt-2 pb-2">
  27.                 {% set count = 0 %}
  28.                 {% for row in home %}
  29.                     {% if row.souscat is null and count <8 %}
  30.                         <div class="col-sm-12 col-md-12 col-lg-3 col-xl-3 p-1 ">
  31.                             <div class="overlay-image border border-dark">
  32.                                 <a href="{{ path('categories',{id:row.id}) }}">
  33.                                     <img class="w-100" src="/assets/src/{{ row.picture }}" alt="{{ row.name }}"
  34.                                          height="183" >
  35.                                     <div class="hover">
  36.                                         <div class="cathover">
  37.                                             {{ row.name }}
  38.                                         </div>
  39.                                     </div>
  40.                                 </a>
  41.                             </div>
  42.                         </div>
  43.                         {% set count = count + 1 %}
  44.                     {% endif %}
  45.                 {% endfor %}
  46.             </div>
  47.             <div class="row p-4">
  48.                 <div class="col-sm-12 col-md-12 col-lg-6 col-xl-6">
  49.                     <h2>Nos meilleurs vents</h2>
  50.                 </div>
  51.                 <div class="col-sm-12 col-md-12  col-lg-6 col-xl-6 d-none d-xl-block d-lg-block">
  52.                     <h2>Nos partenaires</h2>
  53.                 </div>
  54.                 <div class="col-sm-12 col-md-12 col-lg-2 col-xl-2">
  55.                     <div class="overlay-image">
  56.                         <a href="#">
  57.                             <img class="w-100" height="311"  src="/assets/src/TOP-VENTES-guitare.png" alt="Top vente guitare"
  58.                                 >
  59.                             <div class="hover">
  60.                                 <img class="w-100" height="311"  src="/assets/src/TOP-VENTES-ROLL-OVER guitare.png"
  61.                                      alt="Top vente guitare roll over" >
  62.                             </div>
  63.                         </a>
  64.                     </div>
  65.                 </div>
  66.                 <div class="col-sm-12 col-md-12 col-lg-2 col-xl-2">
  67.                     <div class="overlay-image">
  68.                         <a href="#">
  69.                             <img class="w-100" height="311" src="/assets/src/TOP-VENTES-saxo.png" alt="Top vente saxo" >
  70.                             <div class="hover">
  71.                                 <img class="w-100" height="311"  src="/assets/src/TOP-VENTES-ROLL-OVER saxo.png" alt="Top vente saxo"
  72.                                      >
  73.                             </div>
  74.                         </a>
  75.                     </div>
  76.                 </div>
  77.                 <div class="col-sm-12 col-md-12 col-lg-2 col-xl-2">
  78.                     <div class="overlay-image">
  79.                         <a href="#">
  80.                             <img class="w-100" height="311" src="/assets/src/TOP-VENTES-piano.png" alt="Top vente piano"
  81.                                  >
  82.                             <div class="hover">
  83.                                 <img class="w-100" height="311"  src="/assets/src/TOP-VENTES ROLL-OVER-piano.png" alt="Top vente piano"
  84.                                      >
  85.                             </div>
  86.                         </a>
  87.                     </div>
  88.                 </div>
  89.                 <div class="col-sm-12 col-md-12  col-lg-6 col-xl-6  d-lg-none  d-xl-none d-sm-block">
  90.                     <h2>Nos partenaires</h2>
  91.                 </div>
  92.                 <div class="col-sm-12 col-md-12 col-lg-6 col-xl-6">
  93.                     <img class="w-100" height="311"  src="/assets/src/partenaireslogos.png" alt="partenaireslogos" >
  94.                 </div>
  95.             </div>
  96.         </div>
  97.     </section>
  98.     <!-- fin content-->
  99. {% endblock %}