templates/front/home.html.twig line 1

Open in your IDE?
  1. {% extends 'base_front.html.twig' %}
  2. {% block body %}
  3. <div class="faucon"></div>
  4. <div class="t-fighter"></div>
  5.     <div class="header-home position-relative">
  6.         <!--img src="{{ asset('img/header_home.png') }}" title="welcome Hamilius"-->
  7.         <!--canvas id="myCanvas" width="1500" height="500" style="    position: absolute;
  8.         z-index: 10;
  9.         top: 0;
  10.         left: 0;"></canvas-->
  11.         <div class="image"></div>
  12.         <h1 class="red position-absolute">Bienvenue à</h1>
  13.     </div>
  14.     <div class="col-md-12 text-center logo-text bg-light-grey">
  15.         <img src="{{ asset('img/royal-hamilius.svg') }}" alt="Royal Hamilius">
  16.     </div>
  17.     <section id="news" class="bg-light-grey">
  18.         <div class="text-center col-md-12">
  19.             <h2 class="red">Nos actualités</h2>
  20.         </div>
  21.         <div class="list-news col-md-12 col-lg-10 col-xl-8 col-xl-6 pt-5 m-auto row justify-content-between">
  22.             {% for post in posts %}
  23.                 {% if loop.first %}
  24.                     {% set colorLink = 'bg-red' %}
  25.                 {% elseif loop.index == 2 %}
  26.                     {% set colorLink = 'bg-orange' %}
  27.                 {% else %}
  28.                     {% set colorLink = 'bg-green' %}
  29.                 {% endif %}
  30.                 <a href="{{ path('front_post_single', {'slug': post.slug}) }}"  class="col-md-4 col-lg-4">
  31.                     <span class="card">
  32.                         <img class="card-img-top" src="{{ asset(constant('App\\Services\\UploadFileService::POST_IMAGE_DIR') ~ post.image) }}" alt="{{ post.title }}" style="height:170px;">
  33.                         <span class="card-body">
  34.                             <span class="date green">{{ post.createdAt|date('d.m.Y') }}</span>
  35.                             <h5 class="card-title red mt-3">{{ post.title }}</h5>
  36.                             <p class="card-text">{{ post.content|slice(0, 150)|striptags|replace({'&eacute;': 'é', '&agrave;': 'à', '&egrave;': 'è', '&rsquo;': '’', '&ecirc;': 'ê', '&nbsp;?': ' ?'}) ~ '...' }}</p>
  37.                             <span class="btn-news {{ colorLink }}">
  38.                                 <img src="{{ asset('img/icons/img-right-white.svg') }}">
  39.                             </span>
  40.                         </span>
  41.                     </span>
  42.                 </a>
  43.             {% endfor %}
  44.         </div>
  45.         <div class="col-md-12 text-center mt-5">
  46.             <a class="link-arrow black ml-5 position-relative" href="{{ path('front_post_list') }}">
  47.                 <img src="{{ asset('img/icons/arrow-right-black.svg') }}" class="position-absolute">
  48.                 Voir tous
  49.             </a>
  50.         </div>
  51.     </section>
  52.     <section id="parking">
  53.         <div class="text-center col-md-12">
  54.             <h2 class="orange">Parking</h2>
  55.             <h3 class="subtitle">37 Avenue Monterey, 2163 Luxembourg</h3>
  56.             <img class="mt-4" src="{{ asset('img/map-hamilius.png') }}" title="map">
  57.         </div>
  58.         <div class="col-md-12 text-center mt-5">
  59.             <a class="link-arrow black ml-5 position-relative" href="{{ path('front_parking') }}">
  60.                 <img src="{{ asset('img/icons/arrow-right-black.svg') }}" class="position-absolute">
  61.                 Plus d'info
  62.             </a>
  63.         </div>
  64.     </section>
  65.     <section id="ctaBanner" class="position-relative pb-0">
  66.         <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">
  67.             <div class="col-12 col-md-5 h-100 position-relative text-block">
  68.                 <div class="col-md-12 col-xl-6 h-100 float-right d-flex justify-content-center flex-column" style="z-index:99">
  69.                     <h2 class="white mb-4">Vous aimeriez louer un Commerce ?</h2>
  70.                     <a class="link-arrow white ml-5 position-relative" target="_blank" href="https://www.royal-hamilius.lu/">
  71.                         <img src="{{ asset('img/icons/img-right-white.svg') }}" class="position-absolute">
  72.                         Plus d'info
  73.                     </a>
  74.                 </div>
  75.                 <div class="position-absolute block-diag-right bg-red"></div>
  76.             </div>
  77.             <div class="col-0 col-md-7 h-100 img-block">
  78.             </div>
  79.         </div>
  80.     </section>
  81.     <section id="newsletter">
  82.         <div class="text-center col-md-12">
  83.             <h2 class="red">Newsletter</h2>
  84.         </div>
  85.         <div class="col-md-6 col-xl-4 m-auto text-center mt-3">
  86.             {{ include('front/inc/newsletter.html.twig') }}
  87.             {#
  88.             <form id="formNewsletter" class="d-flex flex-column align-items-center">
  89.                 <div class="col-md-6 col-lg-3">
  90.                     <input type="text" placeholder="E-MAIL" name="email" class="input w-100">
  91.                 </div>
  92.                 <button type="submit" class="link-arrow black ml-5 mt-4 position-relative">
  93.                     <img src="{{ asset('img/icons/arrow-right-black.svg') }}" class="position-absolute">
  94.                     S'abonner
  95.                 </button>
  96.             </form>
  97.             #}
  98.         </div>
  99.     </section>
  100.     <section id="contact" class="bg-light-grey">
  101.         <div class="text-center col-md-12">
  102.             <h2 class="red">Contact</h2>
  103.         </div>
  104.         <div class="col-md-8 col-lg-6 text-center pt-4 m-auto">
  105.             {{ include('front/contact/_form.html.twig') }}
  106.         </div>
  107.     </section>
  108.     <section id="instagram" class="bg-light-grey">
  109.         <div class="text-center col-md-12">
  110.             <h2 class="red">Instagram</h2>
  111.         </div>
  112.         <div class="feed col-md-12 mt-5 p-0">
  113.             <div class="img-list w-100 d-flex">
  114.                 {% for image in imagesInsta %}
  115.                     <div class="p-0">
  116.                         <img src="{{ image }}">
  117.                     </div>
  118.                 {% endfor %}
  119.             </div>
  120.         </div>
  121.     </section>
  122. {% endblock %}