templates/navbar.html.twig line 1

Open in your IDE?
  1. <nav class="bg-black px-2 sm:px-4 py-2.5 w-full relative z-50" id="navMPSS">
  2.     <div class="flex items-center justify-between">
  3.         <a href="{{path('app_home')}}" id="logoMPSS" class="flex items-center">
  4.             <img src="import/images/LogoNavbar.png" class="h-16" alt="MPSS Logo"/>
  5.         </a>
  6.         <div class="flex items-center justify-around">
  7.             <div class="items-center justify-between hidden w-full lg:flex lg:w-auto lg:order-1" id="mobile-menu-2">
  8.                 <ul class="flex flex-col p-2 border border-black rounded-lg bg-black lg:flex-row lg:space-x-8 lg:mt-0 lg:text-lg lg:font-medium lg:border-0 lg:bg-black">
  9.                     <li class="flex items-center justify-center text-[20px]">
  10.                         <a href="{{path('app_home')}}" class="block py-2 pl-3 pr-4 text-white rounded hover:text-gray-300 lg:p-0" aria-current="page">Accueil</a>
  11.                     </li>
  12.                     <li class="flex items-center justify-center text-[20px]">
  13.                         <button id="dropdownNavbarLink" data-dropdown-toggle="dropdownNavbar" class="flex items-center justify-between w-full py-2 pl-3 pr-4 text-white rounded lg:border-0 hover:text-gray-300 lg:p-0 lg:w-auto">Coaching individuel
  14.                             <svg class="w-5 h-5 ml-1" aria-hidden="true" fill="currentColor" viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
  15.                                 <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path>
  16.                             </svg>
  17.                         </button>
  18.                         <!-- Dropdown menu -->
  19.                         <div id="dropdownNavbar" class="hidden font-normal bg-white divide-y divide-gray-100 rounded-lg shadow w-44 ">
  20.                             <ul class="py-2 text-lg text-gray-700" aria-labelledby="dropdownLargeButton">
  21.                                 <li>
  22.                                     <a href="{{path('app_individual_coaching_sante')}}" class="block px-4 py-2 hover:bg-gray-100">Transformation physique</a>
  23.                                 </li>
  24.                                 <li>
  25.                                     <a href="{{path('app_individual_coaching_senior')}}" class="block px-4 py-2 hover:bg-gray-100">Sénior</a>
  26.                                 </li>
  27.                             </ul>
  28.                         </div>
  29.                     </li>
  30.                     <li class="flex items-center justify-center text-[20px]">
  31.                         <button id="dropdownNavbarLink" data-dropdown-toggle="dropdownNavbar2" class="flex items-center justify-between w-full py-2 pl-3 pr-4 text-white rounded lg:border-0 hover:text-gray-300 lg:p-0 lg:w-auto">Coaching collectif
  32.                             <svg class="w-5 h-5 ml-1" aria-hidden="true" fill="currentColor" viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
  33.                                 <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path>
  34.                             </svg>
  35.                         </button>
  36.                         <!-- Dropdown menu -->
  37.                         <div id="dropdownNavbar2" class="hidden font-normal bg-white divide-y divide-gray-100 rounded-lg shadow w-44 ">
  38.                             <ul class="py-2 text-lg text-gray-700 " aria-labelledby="dropdownLargeButton">
  39.                                 <li>
  40.                                     <a href="{{path('app_coach_collectif')}}" class="block px-4 py-2 hover:bg-gray-100">Duo</a>
  41.                                 </li>
  42.                                 <li>
  43.                                     <a href="{{path('app_coach_collectif')}}" class="block px-4 py-2 hover:bg-gray-100">Trio</a>
  44.                                 </li>
  45.                                 <li>
  46.                                     <a href="{{path('app_coach_collectif')}}" class="block px-4 py-2 hover:bg-gray-100">Quatuor +</a>
  47.                                 </li>
  48.                             </ul>
  49.                         </div>
  50.                     </li>
  51.                     <li class="flex items-center justify-center text-[20px]">
  52.                         <button id="dropdownNavbarLink" data-dropdown-toggle="dropdownNavbar3" class="flex items-center justify-between w-full py-2 pl-3 pr-4 text-white rounded lg:border-0 hover:text-gray-300 lg:p-0 lg:w-auto">Coaching à distance
  53.                             <svg class="w-5 h-5 ml-1" aria-hidden="true" fill="currentColor" viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
  54.                                 <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path>
  55.                             </svg>
  56.                         </button>
  57.                         <!-- Dropdown menu -->
  58.                         <div id="dropdownNavbar3" class="hidden font-normal bg-white divide-y divide-gray-100 rounded-lg shadow w-44">
  59.                             <ul class="py-2 text-lg text-gray-700" aria-labelledby="dropdownLargeButton">
  60.                                 <li>
  61.                                     <a href="{{path('app_distance_coaching_transformation')}}" class="block px-4 py-2 hover:bg-gray-100">Transformation physique</a>
  62.                                 </li>
  63.                                 <li>
  64.                                     <a href="{{path('app_distance_coaching_preparation')}}" class="block px-4 py-2 hover:bg-gray-100">Challenge sportif</a>
  65.                                 </li>
  66.                             </ul>
  67.                         </div>
  68.                     </li>
  69.                     <li class="flex items-center justify-center text-[20px]">
  70.                         <a href="{{path('app_reservation')}}" class="block py-2 pl-3 pr-4 text-white rounded hover:text-gray-300 lg:p-0">Réservation</a>
  71.                     </li>
  72.                     {% if app.user %}
  73.                         {% else %}
  74.                             <li class="flex items-center justify-center text-[20px]">
  75.                                 <a href="{{path('app_login')}}" class="block py-2 pl-3 pr-4 text-white rounded hover:text-gray-300 lg:p-0">Connexion</a>
  76.                             </li>
  77.                             <li class="flex items-center justify-center text-[20px]">
  78.                                 <a href="{{path('app_register')}}" class="block py-2 pl-3 pr-4 text-white rounded hover:text-gray-300 lg:p-0">Inscription</a>
  79.                             </li>
  80.                     {% endif %}
  81.                 </ul>
  82.             </div>
  83.         </div>
  84.         <div class="flex items-center lg:order-2">
  85.             {% if app.user %}
  86.                 <button type="button" class="flex mr-3 text-lg bg-gray-800 rounded-full lg:mr-0 focus:ring-4 focus:ring-gray-300" id="user-menu-button" aria-expanded="false" data-dropdown-toggle="user-dropdown" data-dropdown-placement="bottom">
  87.                     <span class="sr-only">Open user menu</span>
  88.                     <img class="w-8 h-8 rounded-full" src="import/images/ProfilePicture.png" alt="user photo">
  89.                 </button>
  90.             {% endif %}
  91.             <!-- Dropdown menu -->
  92.             <div class="z-50 hidden my-4 text-base list-none bg-white divide-y divide-black rounded-lg shadow" id="user-dropdown">
  93.                 <div class="px-4 py-3">
  94.                     <span class="block text-lg text-gray-900">
  95.                         {% if app.user %}Bienvenue,
  96.                             {{ app.user.firstnameUser }}
  97.                         {% endif %}
  98.                     </span>
  99.                     <span class="block text-lg font-medium text-gray-500 truncate">
  100.                         {% if app.user %}
  101.                             {{ app.user.email }}
  102.                         {% endif %}
  103.                     </span>
  104.                 </div>
  105.                 <ul class="py-2" aria-labelledby="user-menu-button">
  106.                     <li>
  107.                         <a href="{{path('app_user_dashboard')}}" class="block px-4 py-2 text-lg text-gray-700 hover:bg-gray-100">Profil</a>
  108.                     </li>
  109.                     <li>
  110.                         <a href="{{path('app_user_settings')}}" class="block px-4 py-2 text-lg text-gray-700 hover:bg-gray-100">Paramètres</a>
  111.                     </li>
  112.                     <li>
  113.                         <a href="{{path('app_logout')}}" class="block px-4 py-2 text-lg text-gray-700 hover:bg-gray-100">Déconnexion</a>
  114.                     </li>
  115.                 </ul>
  116.             </div>
  117.             <button data-collapse-toggle="mobile-menu-2" type="button" class="inline-flex items-center p-2 ml-1 text-lg text-white rounded-lg lg:hidden focus:outline-none focus:ring-2 focus:ring-gray-200" aria-controls="mobile-menu-2" aria-expanded="false">
  118.                 <span class="sr-only">Open main menu</span>
  119.                 <svg class="w-6 h-6" aria-hidden="true" fill="currentColor" viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
  120.                     <path fill-rule="evenodd" d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z" clip-rule="evenodd"></path>
  121.                 </svg>
  122.             </button>
  123.         </div>
  124.     </div>
  125. </nav>