templates/home/index.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block title %}
  3.     {% if settings[0].siteName != null %}
  4.         {{ settings[0].siteName }} : Bienvenue !
  5.     {% else %}
  6.         Bienvenue !
  7.     {% endif %}
  8. {% endblock %}
  9. {% block body %}
  10.     {# A propos #}
  11.     <div class="container py-5">
  12.         <div class="row d-flex justify-content-center">
  13.             <div class="col-lg-6 col-sm-12 text-center">
  14.                 <h2 class="text-uppercase color1 fw-bold">
  15.                     {{ homepage[0].aproposTitle|raw }}
  16.                 </h2>
  17.                 <p class="mt-4">
  18.                     {{ homepage[0].aproposContent|replace({'<div>': '', '</div>': '',})|raw }}
  19.                 </p>
  20.                 <p class="mt-4">
  21.                     <a href="{{ homepage[0].aproposButtonlink }}" class="button">{{ homepage[0].aproposButtontext }}</a>
  22.                 </p>
  23.             </div>
  24.         </div>
  25.         <div class="row">
  26.             <div class="col">
  27.                 <img src="{{ asset('assets/img/homepage/' ~ homepage[0].aproposImage) }}" alt="A propos" class="img-fluid d-block mx-auto" style="max-width: 1150px; width: 100%;">
  28.             </div>
  29.         </div>
  30.     </div>
  31.     {# Domaines #}
  32.     <div class="container-fluid bgHomedomaines">
  33.         <div class="container">
  34.             <div class="row row-cols-1 row-cols-md-3 g-5 mb-5">
  35.                 <div class="col">
  36.                     <div class="card h-100">
  37.                         <div class="card-body">
  38.                             <h4 class="card-title text-uppercase fw-bold text-white">{{ homepage[0].domainesTitle|replace({'<div>': '', '</div>': '',})|raw }}</h4>
  39.                             <p class="card-text">{{ homepage[0].domainesContent|replace({'<div>': '', '</div>': '',})|raw }}</p>
  40.                         </div>
  41.                     </div>
  42.                 </div>
  43.                 {% for domaine in domaines %}
  44.                     <div class="col" style="height: 300px;">
  45.                         <div class="card h-100" style="background-image: linear-gradient(to right bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url({{ asset('assets/img/domaines/' ~ domaine.image) }}); background-position: center; background-repeat: no-repeat; background-size: cover;">
  46.                             <div class="card-body text-white text-center h5 fw-bold text-uppercase px-5 d-flex align-items-center justify-content-center my-5 flex-column">
  47.                                 <p class="mb-4">{{ domaine.title }}</p>
  48.                                 <p class="my-0">
  49.                                     <a href="{{ domaine.buttonLink }}" class="button">{{ domaine.buttonText }}</a>
  50.                                 </p>
  51.                             </div>
  52.                         </div>
  53.                     </div>
  54.                 {% endfor %}
  55.             </div>
  56.         </div>
  57.     </div>
  58.     {# Chiffres clés #}
  59.     <div class="container my-5">
  60.         <div class="row pt-5 pb-4">
  61.             <div class="col">
  62.                 <h2 class="color1 text-center text-uppercase fw-bold">{{ homepage[0].chiffresClestitle|replace({'<div>': '', '</div>': '',})|raw }}</h2>
  63.             </div>
  64.         </div>
  65.         <div class="row pb-5">
  66.             <div class="col-lg-3 col-sm-12 text-center border-end">
  67.                 <h1 class="fw-bold display-1 color1">{{ homepage[0].chiffresClescab }}</h1>
  68.                 <span class="text-uppercase">{{ homepage[0].chiffresClescabtitle }}</span>
  69.             </div>
  70.             <div class="col-lg-3 col-sm-12 text-center border-end">
  71.                 <h1 class="fw-bold display-1 color1">{{ homepage[0].chiffresClescollab}}</h1>
  72.                 <span class="text-uppercase">{{ homepage[0].chiffresClescollabtitle }}</span>
  73.             </div>
  74.             <div class="col-lg-3 col-sm-12 text-center border-end">
  75.                 <h1 class="fw-bold display-1 color1">{{ homepage[0].chiffresClesmedia }}</h1>
  76.                 <span class="text-uppercase">{{ homepage[0].chiffresClesmediatitle }}</span>
  77.             </div>
  78.             <div class="col-lg-3 col-sm-12 text-center">
  79.                 <h1 class="fw-bold display-1 color1">{{ homepage[0].chiffresClesannees }}</h1>
  80.                 <span class="text-uppercase">{{ homepage[0].chiffresClesanneestitle }}</span>
  81.             </div>
  82.         </div>
  83.     </div>
  84.     {# L'équipe #}
  85.     <div class="container my-5">
  86.         <div class="row g-5 d-flex align-items-center">
  87.             <div class="col-lg-6 col-sm-12">
  88.                 <img src="{{ asset('assets/img/homepage/' ~ homepage[0].equipeImage ) }}" class="img-fluid" alt="{{ homepage[0].equipeTitle|replace({'<div>': '', '</div>': '',})|raw }}">
  89.             </div>
  90.             <div class="col-lg-6 col-sm-12">
  91.                 <h3 class="color1 fw-bold text-uppercase">{{ homepage[0].equipeTitle|replace({'<div>': '', '</div>': '',})|raw }}</h3>
  92.                 <p class="my-4 small">{{ homepage[0].equipeContent|replace({'<div>': '', '</div>': '',})|raw }}</p>
  93.                 <a href="{{ homepage[0].equipeButtonlink|raw }}" class="button">{{ homepage[0].equipeButtontext|raw }}</a>
  94.             </div>
  95.         </div>
  96.     </div>
  97.     {# Ventes immobilières #}
  98.     <div class="container bgcolor-homeventes">
  99.         <div class="row d-flex align-items-center justify-content-center">
  100.             <div class="col-lg-3 col-sm-12 text-center">
  101.                 <h4 class="fw-bold text-white text-uppercase">{{ homepage[0].ventesTitle|replace({'<div>': '', '</div>': '',})|raw }}</h4>
  102.                 <p class="text-xsmall text-white">{{ homepage[0].ventesContent|replace({'<div>': '', '</div>': '',})|raw }}</p>
  103.                 <a href="{{ homepage[0].ventesButtonlink|raw }}" class="button-ventes mt-4">{{ homepage[0].ventesButtontext|raw }}</a>
  104.             </div>
  105.         </div>
  106.     </div>
  107.     {# Honoraires #}
  108.     <div class="container my-5">
  109.         <div class="row g-5 d-flex align-items-center">
  110.             <div class="col-lg-6 col-sm-12 text-end">
  111.                 {# <img src="{{ asset('assets/img/homepage/' ~ homepage[0].equipeImage ) }}" class="img-fluid" alt="{{ homepage[0].equipeTitle|replace({'<div>': '', '</div>': '',})|raw }}"> #}
  112.                 <h3 class="color1 fw-bold text-uppercase">{{ homepage[0].honorairesTitle|replace({'<div>': '', '</div>': '',})|raw }}</h3>
  113.                 <p class="my-4 small">{{ homepage[0].honorairesContent|replace({'<div>': '', '</div>': '',})|raw }}</p>
  114.                 <a href="{{ homepage[0].honorairesButtonlink|raw }}" class="button">{{ homepage[0].honorairesButtontext|raw }}</a>
  115.             </div>
  116.             <div class="col-lg-6 col-sm-12">
  117.                 <img src="{{ asset('assets/img/homepage/' ~ homepage[0].honorairesImage ) }}" class="img-fluid" alt="{{ homepage[0].honorairesTitle|replace({'<div>': '', '</div>': '',})|raw }}">
  118.             </div>
  119.         </div>
  120.     </div>
  121.     {% include '_includes/_contactez-nous.html.twig' %}
  122. {% endblock %}