{% extends 'base_front.html.twig' %}
{% block body %}
<div class="faucon"></div>
<div class="t-fighter"></div>
<div class="header-home position-relative">
<!--img src="{{ asset('img/header_home.png') }}" title="welcome Hamilius"-->
<!--canvas id="myCanvas" width="1500" height="500" style=" position: absolute;
z-index: 10;
top: 0;
left: 0;"></canvas-->
<div class="image"></div>
<h1 class="red position-absolute">Bienvenue à</h1>
</div>
<div class="col-md-12 text-center logo-text bg-light-grey">
<img src="{{ asset('img/royal-hamilius.svg') }}" alt="Royal Hamilius">
</div>
<section id="news" class="bg-light-grey">
<div class="text-center col-md-12">
<h2 class="red">Nos actualités</h2>
</div>
<div class="list-news col-md-12 col-lg-10 col-xl-8 col-xl-6 pt-5 m-auto row justify-content-between">
{% for post in posts %}
{% if loop.first %}
{% set colorLink = 'bg-red' %}
{% elseif loop.index == 2 %}
{% set colorLink = 'bg-orange' %}
{% else %}
{% set colorLink = 'bg-green' %}
{% endif %}
<a href="{{ path('front_post_single', {'slug': post.slug}) }}" class="col-md-4 col-lg-4">
<span class="card">
<img class="card-img-top" src="{{ asset(constant('App\\Services\\UploadFileService::POST_IMAGE_DIR') ~ post.image) }}" alt="{{ post.title }}" style="height:170px;">
<span class="card-body">
<span class="date green">{{ post.createdAt|date('d.m.Y') }}</span>
<h5 class="card-title red mt-3">{{ post.title }}</h5>
<p class="card-text">{{ post.content|slice(0, 150)|striptags|replace({'é': 'é', 'à': 'à', 'è': 'è', '’': '’', 'ê': 'ê', ' ?': ' ?'}) ~ '...' }}</p>
<span class="btn-news {{ colorLink }}">
<img src="{{ asset('img/icons/img-right-white.svg') }}">
</span>
</span>
</span>
</a>
{% endfor %}
</div>
<div class="col-md-12 text-center mt-5">
<a class="link-arrow black ml-5 position-relative" href="{{ path('front_post_list') }}">
<img src="{{ asset('img/icons/arrow-right-black.svg') }}" class="position-absolute">
Voir tous
</a>
</div>
</section>
<section id="parking">
<div class="text-center col-md-12">
<h2 class="orange">Parking</h2>
<h3 class="subtitle">37 Avenue Monterey, 2163 Luxembourg</h3>
<img class="mt-4" src="{{ asset('img/map-hamilius.png') }}" title="map">
</div>
<div class="col-md-12 text-center mt-5">
<a class="link-arrow black ml-5 position-relative" href="{{ path('front_parking') }}">
<img src="{{ asset('img/icons/arrow-right-black.svg') }}" class="position-absolute">
Plus d'info
</a>
</div>
</section>
<section id="ctaBanner" class="position-relative pb-0">
<div class="col-md-12 h-100 p-0 banner d-flex" style="background:url({{ asset('img/bg-img-cta.jpg') }})no-repeat center;background-size: cover">
<div class="col-12 col-md-5 h-100 position-relative text-block">
<div class="col-md-12 col-xl-6 h-100 float-right d-flex justify-content-center flex-column" style="z-index:99">
<h2 class="white mb-4">Vous aimeriez louer un Commerce ?</h2>
<a class="link-arrow white ml-5 position-relative" target="_blank" href="https://www.royal-hamilius.lu/">
<img src="{{ asset('img/icons/img-right-white.svg') }}" class="position-absolute">
Plus d'info
</a>
</div>
<div class="position-absolute block-diag-right bg-red"></div>
</div>
<div class="col-0 col-md-7 h-100 img-block">
</div>
</div>
</section>
<section id="newsletter">
<div class="text-center col-md-12">
<h2 class="red">Newsletter</h2>
</div>
<div class="col-md-6 col-xl-4 m-auto text-center mt-3">
{{ include('front/inc/newsletter.html.twig') }}
{#
<form id="formNewsletter" class="d-flex flex-column align-items-center">
<div class="col-md-6 col-lg-3">
<input type="text" placeholder="E-MAIL" name="email" class="input w-100">
</div>
<button type="submit" class="link-arrow black ml-5 mt-4 position-relative">
<img src="{{ asset('img/icons/arrow-right-black.svg') }}" class="position-absolute">
S'abonner
</button>
</form>
#}
</div>
</section>
<section id="contact" class="bg-light-grey">
<div class="text-center col-md-12">
<h2 class="red">Contact</h2>
</div>
<div class="col-md-8 col-lg-6 text-center pt-4 m-auto">
{{ include('front/contact/_form.html.twig') }}
</div>
</section>
<section id="instagram" class="bg-light-grey">
<div class="text-center col-md-12">
<h2 class="red">Instagram</h2>
</div>
<div class="feed col-md-12 mt-5 p-0">
<div class="img-list w-100 d-flex">
{% for image in imagesInsta %}
<div class="p-0">
<img src="{{ image }}">
</div>
{% endfor %}
</div>
</div>
</section>
{% endblock %}