templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>{% block title %}Welcome!{% endblock %}</title>
  6.         <meta name="viewport" content="width=device-width, initial-scale=1" />
  7.         <link rel="icon" type="image/png" sizes="32x32" href="{{ asset('assets/img/favicon.png') }}">
  8.         <link rel="stylesheet" href="{{ asset('assets/css/opentip.css') }}">
  9.         <link rel="stylesheet" href="{{ asset('assets/css/styles.css') }}">
  10.         <script src="https://cdn.tailwindcss.com"></script>
  11.         {% block stylesheets %}
  12.             {{ encore_entry_link_tags('app') }}
  13.         {% endblock %}
  14.         {% block javascripts %}
  15.             {{ encore_entry_script_tags('app') }}
  16.         {% endblock %}
  17.     </head>
  18.     <body>
  19.         <div class="min-h-screen p-1 md:p-8 bg-gray-200">
  20.             <div class="container mx-auto max-w-screen-lg min-h-max b">
  21.                 <div class="synapse-topbar text-white flex justify-between">
  22.                     <h1 class=" text-xl"><a href="{{ path('front_homepage') }}">Synapse</a></h1>
  23.                     {% if app.user %}
  24.                     <!-- Icône utilisateur avec menu déroulant -->
  25.                     <div class="md:float-right group relative">
  26.                         <div id="user-icon-hover-JS" class="cursor-pointer">
  27.                             <svg class="w-6 h-6 text-gray-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
  28.                                 <path fill="#ffffff" d="M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"/>
  29.                             </svg>
  30.                         </div>
  31.                         <div id="user-menu-hover-JS" class="absolute right-0 mt-2 w-48 bg-white rounded-lg shadow-2xl z-20 text-sm text-gray-700 hidden">
  32.                             <a href="{{ path('user_info_show') }}" class="block px-4 py-2 rounded-t-lg hover:bg-gray-100">Mes informations professionnelles</a>
  33.                             <a href="{{ path('user_mes_marches') }}" class="block px-4 py-2 rounded-b-lg hover:bg-gray-100">Mes marchés</a>
  34.                         </div>
  35.                     </div>
  36.                     {% endif %}
  37.                 </div>
  38.                 <div>
  39.                     <div>
  40.                         <p>{% block sousTitre %}{% endblock %}</p>
  41.                         <p>{% block sousSousTitre %}{% endblock %}</p>
  42.                     </div>
  43.                 </div>
  44.                 <div class="mb-8"></div>
  45.                 {% include '_partials/flash.html.twig' %}
  46.                 <!-- Carte Principale -->
  47.                 {% block body %}{% endblock %}
  48.             </div>
  49.         </div>
  50.         <script src="{{ asset('assets/js/script.js') }}"></script>
  51.     </body>
  52. </html>