{% extends 'base.html.twig' %}
{% block title %}{{ setting.siteName }} : bienvenue !{% endblock %}
{% block body %}
<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v14.0"
nonce="IxquDTXZ"></script>
<script src="https://platform.linkedin.com/badges/js/profile.js" async defer type="text/javascript"></script>
{% for home in homes %}
<section class="container mt-5 pt-3 overflow-hidden">
{# HERO #}
<div class="row">
<div class="col text-center">
<h1 class="color1 fw-700 h2" data-aos="fade-down" data-aos-duration="1500">
{{ home.heroText1 }}
<br>
<span class="color2" data-aos="fade-down" data-aos-duration="2000">{{ home.heroText2 }}</span>
</h1>
</div>
</div>
<div class="row mt-5">
<div class="col">
{#<img src="{{ asset('assets/img/' ~ home.heroImage)|imagine_filter('heroaccueil') }}" alt="{{ setting.siteName }}" class="img-fluid">#}
<img src="{{ asset('assets/img/' ~ home.heroImage) }}" alt="{{ setting.siteName }}" class="img-fluid">
</div>
</div>
{# NOTRE DIFFERENCE + SLIDER #}
<div class="row mt-5 pt-5">
<div class="col-lg-8 col-sm-12">
<!-- Slider main container -->
<div class="swiper">
<!-- Additional required wrapper -->
<div class="swiper-wrapper">
<!-- Slides -->
<div class="swiper-slide"><img src="{{ asset('assets/img/difference/' ~ home.diffImage1 )|imagine_filter('slideraccueil') }}" alt="{{ setting.siteName }}"
class="img-fluid mb-3"></div>
<div class="swiper-slide"><img src="{{ asset('assets/img/difference/' ~ home.diffImage2 )|imagine_filter('slideraccueil') }}" alt="{{ setting.siteName }}"
class="img-fluid mb-3"></div>
<div class="swiper-slide"><img src="{{ asset('assets/img/difference/' ~ home.diffImage3 )|imagine_filter('slideraccueil') }}" alt="{{ setting.siteName }}"
class="img-fluid mb-3"></div>
</div>
<!-- If we need pagination -->
<div class="swiper-pagination"></div>
<!-- If we need navigation buttons -->
{# <div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div> #}
<!-- If we need scrollbar -->
{# <div class="swiper-scrollbar"></div> #}
</div>
</div>
<div class="col-lg-4 col-sm-12">
<h2 class="color1 text-uppercase fw-700" data-aos="fade-left" data-aos-duration="2000">{{ home.diffTitre1 }}</h2>
<h2 class="color2 text-uppercase" data-aos="fade-left" data-aos-duration="2500">{{ home.diffTitre2 }}</h2>
<p class="mt-5">
{{ home.diffText|replace({
'<div>' : '<span>',
'</div>' : '</span>'
})|raw }}
</p>
<p>
<a href="{{ path('app_difference') }}" class="text-decoration-none">
<span class="button-difference text-uppercase">{{ home.diffButtontext }}</span>
</a>
</p>
</div>
</div>
</section>
<section class="container-fluid pb-5">
{# LES OFFICES #}
<div class="row mt-5 py-5">
<div class="col text-center">
<h2 class="color1 text-uppercase fw-700" data-aos="fade-down" data-aos-duration="2000">{{ home.officesTitre1 }}</h2>
<h2 class="color2 text-uppercase" data-aos="fade-down" data-aos-duration="2500">{{ home.officesTitre2 }}</h2>
</div>
</div>
{# PARIS #}
<div class="hoverimage" style="position: relative;">
<div class="offices-color img-crop" style="background-image: url('{{ asset('assets/img/offices/' ~ home.officesImage1bleu)|imagine_filter('officesaccueil') }}')">
</div>
<div class="offices-color nodisplay img-crop" style="background-image: url('{{ asset('assets/img/offices/' ~ home.officesImage1)|imagine_filter('officesaccueil') }}')">
</div>
{# <img src="{{ asset('assets/img/offices/' ~ home.officesImage1 ) }}" alt="{{ setting.siteName }}" class="img-fluid"> #}
<div class="d-flex flex-column justify-content-end h-100 position-relative">
<p class="text-uppercase offices-paris-text">
{{ home.officesImagetext1 }}
</p>
<p>
<a href="{{ path('app_office') }}" class="text-decoration-none">
<span class="text-uppercase button-offices h5">{{ home.officesButtontext1 }}</span>
</a>
</p>
</div>
</div>
{# MELUN #}
<div class="hoverimage mt-4" style="position: relative;">
<div class="offices-color img-crop" style="background-image: url('{{ asset('assets/img/offices/' ~ home.officesImage2bleu)|imagine_filter('officesaccueil') }}')">
</div>
<div class="offices-color nodisplay img-crop" style="background-image: url('{{ asset('assets/img/offices/' ~ home.officesImage2)|imagine_filter('officesaccueil') }}')">
</div>
{# <img src="{{ asset('assets/img/offices/' ~ home.officesImage1 ) }}" alt="{{ setting.siteName }}" class="img-fluid"> #}
<div class="d-flex flex-column justify-content-end align-items-end h-100 position-relative">
<p class="text-uppercase offices-melun-text">
{{ home.officesImagetext2 }}
</p>
</div>
</div>
{# SENART #}
<div class="hoverimage mt-4" style="position: relative;">
<div class="offices-color img-crop" style="background-image: url('{{ asset('assets/img/offices/' ~ home.officesImage3bleu)|imagine_filter('officesaccueil') }}')">
</div>
<div class="offices-color nodisplay img-crop" style="background-image: url('{{ asset('assets/img/offices/' ~ home.officesImage3)|imagine_filter('officesaccueil') }}')">
</div>
<div class="d-flex flex-column justify-content-end h-100 position-relative">
<p class="text-uppercase offices-senart-text">
{{ home.officesImagetext3 }}
</p>
</div>
</div>
</section>
{# NOS DERNIERES ACTUS #}
<section class="container pb-5 mt-5">
<div class="row mb-5">
<div class="col text-center">
<h2 class="color1 text-uppercase fw-700" data-aos="fade-down" data-aos-duration="2000">{{ home.actuTitre1 }}</h2>
<h2 class="color2 text-uppercase" data-aos="fade-down" data-aos-duration="2500">{{ home.actuTitre2 }}</h2>
</div>
</div>
<div class="row">
{# <div class="col-lg-2 col-sm-12"></div> #}
{# <div class="col-lg-4 col-sm-12">
<!--LinkedIn-->
<div class="badge-base LI-profile-badge" data-locale="fr_FR" data-size="large" data-theme="light"
data-type="HORIZONTAL" data-vanity="{{ home.actuLinkedin }}" data-version="v1">
<a class="badge-base__link LI-simple-link" href="{{ home.actuLinkedin }}">{{ setting.siteName }}</a>
</div>
</div> #}
<div class="col text-center">
{# Facebook #}
{# <div class="fb-page" data-href="{{ home.actuFacebook }}" data-tabs="timeline" data-width="" data-height=""
data-small-header="false" data-adapt-container-width="true" data-hide-cover="false"
data-show-facepile="true">
<blockquote cite="{{ home.actuFacebook }}" class="fb-xfbml-parse-ignore"><a href="{{ home.actuFacebook }}">Facebook</a></blockquote>
</div> #}
{# LinkedIn #}
<script type="text/javascript" src="https://platform.linkedin.com/badges/js/profile.js" async defer></script>
<div class="" data-version="v1" data-size="large" data-locale="fr_FR" data-type="horizontal" data-theme="light" data-vanity="#">
<a class="btn btn-primary" href="https://www.linkedin.com/company/laroche-associ%C3%A9s-notaires?trk=profile-badge">
Laroche et AssociƩs
</a>
</div>
</div>
</div>
</section>
<div class="img-bg">
<img src="{{ asset('assets/img/logo-laroche-02.png') }}" alt="{{ setting.siteName }}">
</div>
{# LES AVIS #}
<section class="container pt-5 pb-5">
<div class="row mb-5">
<div class="col text-center">
<h2 class="color1 text-uppercase fw-700" data-aos="fade-down" data-aos-duration="2000">{{ home.avisTitre1 }}</h2>
<h2 class="color2 text-uppercase" data-aos="fade-down" data-aos-duration="2500">{{ home.avisTitre2 }}</h2>
</div>
</div>
{% set avis5 =
'<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
class="iconify iconify--ic" width="17" height="17"
preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
</path>
</svg>
<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
class="iconify iconify--ic" width="17" height="17"
preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
</path>
</svg>
<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
class="iconify iconify--ic" width="17" height="17"
preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
</path>
</svg>
<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
class="iconify iconify--ic" width="17" height="17"
preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
</path>
</svg>
<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
class="iconify iconify--ic" width="17" height="17"
preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
</path>
</svg>'
%}
{% set avis4 =
'<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
class="iconify iconify--ic" width="17" height="17"
preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
</path>
</svg>
<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
class="iconify iconify--ic" width="17" height="17"
preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
</path>
</svg>
<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
class="iconify iconify--ic" width="17" height="17"
preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
</path>
</svg>
<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
class="iconify iconify--ic" width="17" height="17"
preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
</path>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
'
%}
{% set avis3 =
'<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
class="iconify iconify--ic" width="17" height="17"
preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
</path>
</svg>
<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
class="iconify iconify--ic" width="17" height="17"
preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
</path>
</svg>
<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
class="iconify iconify--ic" width="17" height="17"
preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
</path>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
'
%}
{% set avis2 =
'<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
class="iconify iconify--ic" width="17" height="17"
preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
</path>
</svg>
<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
class="iconify iconify--ic" width="17" height="17"
preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
</path>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
'
%}
{% set avis1 =
'<svg style="color: rgb(255, 187, 0);" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
class="iconify iconify--ic" width="17" height="17"
preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27z">
</path>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path fill="currentColor" d="m22 9.24l-7.19-.62L12 2L9.19 8.63L2 9.24l5.46 4.73L5.82 21L12 17.27L18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27l1-4.28l-3.32-2.88l4.38-.38L12 6.1l1.71 4.04l4.38.38l-3.32 2.88l1 4.28L12 15.4z"/></svg>
'
%}
<div class="row row-cols-1 row-cols-md-4 g-4 avis-cards">
{% for avis in avis %}
<div class="col">
<a class="text-decoration-none text-dark" href="{{ path('app_office_show', {'slug': avis.office.slug}) }}">
<div class="card h-100">
<div class="card-body">
{# <h5 class="color1 text-uppercase text-center card-title" data-aos="fade-down" data-aos-duration="1000">Office de Melun</h5> #}
{# {% dump(avis.office.slug) %} #}
<p class="card-text">
<div class="row mt-4">
<div class="col-3">
<img src="{{ asset('assets/img/avis/' ~ avis.image ) }}"
class="rounded-circle img-fluid" alt="Avis" style="max-width: 100px; width: 100%;">
</div>
<div class="col small">
<span class="fw-bold">{{ avis.firstname }} {{ avis.lastname }}</span>
<br>
{% if avis.eval == 5 %}
{{ avis5|raw }}
{% elseif avis.eval == 4 %}
{{ avis4|raw }}
{% elseif avis.eval == 3 %}
{{ avis3|raw }}
{% elseif avis.eval == 2 %}
{{ avis2|raw }}
{% elseif avis.eval == 1 %}
{{ avis1|raw }}
{% endif %}
<span class="text-xxsmall">
{{ avis.createdAt|ago }}
</span>
</div>
</div>
<div class="row">
<div class="col">
<p class="mt-3 small">
<span class="small text-muted">Office : {{ avis.office.titre }}</span>
<br>
{{ avis.content|replace({'<div>': '', '</div>': '',})|raw }}
</p>
</div>
</div>
</p>
</div>
</div>
</a>
</div>
{% endfor %}
</div>
</section>
<script>
let imageContainer = document.querySelectorAll('.hoverimage');
imageContainer.forEach(container => {
container.addEventListener('mouseover', function() {
let bgImage = container.children[1];
if (bgImage.classList.contains('nodisplay') != false)
{
bgImage.classList.remove('nodisplay');
}
})
container.addEventListener('mouseleave', function() {
let bgImage = container.children[1];
if (bgImage.classList.contains('nodisplay') == false)
{
bgImage.classList.add('nodisplay');
}
})
})
</script>
{% endfor %}
{% endblock %}