templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4.   <meta charset="UTF-8">
  5.   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.   <title>
  7.     {% block title %}HaloGari | Covoiturage à Mayotte
  8.     {% endblock %}
  9.   </title>
  10.   {% include 'partials/bootstrap-link.html.twig' %}
  11.   <link rel="stylesheet" href="{{ asset('css/style.css') }}"> {% block stylesheets %}{% endblock %}
  12. </head>
  13. <body class="d-flex flex-column min-vh-100">
  14.   <div id="splash-screen" style=" position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: white; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 99999; ">
  15.     <img id="splash-logo" src="{{ asset('images/logo.png') }}" alt="HaloGari" style="max-width: 180px; opacity: 0; transform: scale(0.8); transition: all 0.8s ease-in-out;">
  16.     <p id="splash-text" style=" margin-top: 20px; font-size: 1.1rem; color: #f27c1e; opacity: 0; transform: translateY(10px); transition: all 0.8s ease-in-out; ">
  17.       Covoiturage à Mayotte
  18.     </p>
  19.   </div>
  20.   {% include 'partials/navbar.html.twig' %}
  21.   {% block body %}{% endblock %}
  22.   {% include 'partials/footer.html.twig' %}
  23.   {% include 'partials/bootstrap-script.html.twig' %}
  24.   {% for type, messages in app.flashes %}
  25.     {% for message in messages %}
  26.       <script>
  27.         const type = "{{ type }}";
  28.         const icons = ['success', 'error', 'warning', 'info', 'question'];
  29.         Swal.fire({
  30.           icon: icons.includes(type) ? type : 'info', // par défaut : info si type inconnu
  31.           title: {
  32.             success: "Réussite",
  33.             error: "Échec",
  34.             warning: "Attention",
  35.             info: "Information",
  36.             question: "Question"
  37.           }[type] || "Message",
  38.           text: "{{ message|e('js') }}",
  39.           timer: ['error', 'warning'].includes(type) ? 10000 : 3000,
  40.           showConfirmButton: false
  41.         });
  42.       </script>
  43.     {% endfor %}
  44.   {% endfor %}
  45.   {% block javascripts %}{% endblock %}
  46. </body>
  47. </html>