templates/default/contact.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Contact â€” Otropik{% endblock %}
  3. {% block body %}
  4. {# --- Hero Banner --- #}
  5. <section class="position-relative text-white">
  6.   <div class="ratio ratio-21x9">
  7.   {% if banner.img %}
  8.   <img src="{{ asset('img/banner/')}}{{banner.img}}" alt="Plage paradisiaque" class="w-100 h-100 object-fit-cover">
  9.   {% else %}
  10.     <img src="{{ asset('img/cta-tourist.jpg')}}" alt="Plage paradisiaque" class="w-100 h-100 object-fit-cover">
  11.   {% endif %}
  12.   </div>
  13.   <div class="position-absolute top-0 start-0 w-100 h-100 d-flex align-items-center justify-content-center text-center bg-dark bg-opacity-50">
  14.     <div class="p-3">
  15.       <h1 class="display-4 fw-bold mb-3">Restons en contact đźŚ´</h1>
  16.       <p class="lead">Une question, une envie d’évasion ou besoin d’un devis sur mesure ?  
  17.         L’équipe <span class="fw-bold text-warning">Otropik</span> est Ă  votre Ă©coute.</p>
  18.     </div>
  19.   </div>
  20. </section>
  21. {# --- Section principale --- #}
  22. <section class="container py-5">
  23.   <div class="row g-5">
  24.     {# Infos de contact #}
  25.     <div class="col-12 col-lg-5">
  26.       <h2 class="h4 fw-bold mb-4">Nos coordonnĂ©es</h2>
  27.       <p class="text-muted mb-4">
  28.         Passez nous voir, appelez-nous ou envoyez un message : nous rĂ©pondons rapidement.
  29.       </p>
  30.       <ul class="list-unstyled">
  31.         <li class="mb-3 d-flex align-items-start">
  32.           <i class="bi bi-geo-alt txt-ot-green fs-4 me-3"></i>
  33.           <div>
  34.             <strong>Adresse</strong><br>
  35.             {{infos.adress}} <br> {{infos.zip}} {{infos.city}}
  36.           </div>
  37.         </li>
  38.         <li class="mb-3 d-flex align-items-start">
  39.           <i class="bi bi-telephone txt-ot-green fs-4 me-3"></i>
  40.           <div>
  41.             <strong>TĂ©lĂ©phone</strong><br>
  42.             {% if infos.phone %} 
  43.             Bureau : <a class="link-info" href="tel:{{infos.phone}}">{{infos.phone}}</a> {% endif %}
  44.             {% if infos.mobile %} 
  45.             <br>Mobile : <a class="link-info" href="tel:{{infos.mobile}}">{{infos.mobile}}</a> {% endif %}
  46.             {% if infos.mobileTwo %} 
  47.             <br>Mobile : <a class="link-info" href="tel:{{infos.mobileTwo}}">{{infos.mobileTwo}}</a> {% endif %}
  48.           </div>
  49.         </li>
  50.         <li class="mb-3 d-flex align-items-start">
  51.           <i class="bi bi-envelope txt-ot-green fs-4 me-3"></i>
  52.           <div>
  53.           {% if infos.mail %} 
  54.             <strong>Email</strong><br>
  55.             <a class="link-info" href="mailto:{{infos.mail}}">{{infos.mail}}</a>
  56.           {% endif %}
  57.           </div>
  58.         </li>
  59.       </ul>
  60.       <div class="map-container" style="width: 100%; height: 400px; border-radius: 12px; overflow: hidden;">
  61.   <iframe
  62.     width="100%"
  63.     height="100%"
  64.     frameborder="0"
  65.     scrolling="no"
  66.     marginheight="0"
  67.     marginwidth="0"
  68.     src="https://www.openstreetmap.org/export/embed.html?bbox=-61.5270%2C16.2570%2C-61.5070%2C16.2770&amp;layer=mapnik&amp;marker=16.2669%2C-61.5170"
  69.     style="border:1px solid #ccc;">
  70.   </iframe>
  71. </div>
  72. <p class="text-muted small text-center">
  73.   <a href="https://www.openstreetmap.org/?mlat=16.2669&amp;mlon=-61.5170#map=15/16.2669/-61.5170" target="_blank">
  74.     Voir la carte agrandie
  75.   </a>
  76. </p>
  77.     </div>
  78.     {# Formulaire de contact #}
  79.     <div class="col-12 col-lg-7">
  80.       <div class="card border-0 shadow-lg rounded-4">
  81.         <div class="card-body p-4">
  82.           <h2 class="h5 fw-bold mb-4">Envoyez-nous un message</h2>
  83.           <form method="post" action="{#{ path('contact.send') }#}">
  84.             <div class="row g-3">
  85.               <div class="col-md-6">
  86.                 <label class="form-label">Nom</label>
  87.                 <input type="text" name="name" class="form-control rounded-pill" placeholder="Votre nom complet" required>
  88.               </div>
  89.               <div class="col-md-6">
  90.                 <label class="form-label">Email</label>
  91.                 <input type="email" name="email" class="form-control rounded-pill" placeholder="vous@email.com" required>
  92.               </div>
  93.               <div class="col-md-6">
  94.                 <label class="form-label">TĂ©lĂ©phone</label>
  95.                 <input type="tel" name="phone" class="form-control rounded-pill" placeholder="+590 ..." >
  96.               </div>
  97.               <div class="col-md-6">
  98.                 <label class="form-label">Sujet</label>
  99.                 <input type="text" name="subject" class="form-control rounded-pill" placeholder="Ex: Demande de devis">
  100.               </div>
  101.               <div class="col-12">
  102.                 <label class="form-label">Message</label>
  103.                 <textarea name="message" rows="5" class="form-control rounded-4" placeholder="Votre message..." required></textarea>
  104.               </div>
  105.             </div>
  106.             <div class="text-end mt-4">
  107.               <button type="submit" class="btn btn-primary rounded-pill px-4">
  108.                 <i class="bi bi-send me-1"></i> Envoyer
  109.               </button>
  110.             </div>
  111.           </form>
  112.         </div>
  113.       </div>
  114.     </div>
  115.   </div>
  116. </section>
  117. {% endblock %}