templates/partials/mobileHeader.html.twig line 1

  1. {% block mobileHeader %}
  2.     <!-- start::preloader  -->
  3.     <div
  4.   class="loader fixed w-full h-screen bg-slate-100 z-50 flex justify-center items-center"
  5. >
  6.   <svg
  7.     role="status"
  8.     class="w-24 h-24 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600"
  9.     viewBox="0 0 100 101"
  10.     fill="none"
  11.     xmlns="http://www.w3.org/2000/svg"
  12.   >
  13.     <path
  14.       d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
  15.       fill="currentColor"
  16.     />
  17.     <path
  18.       d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"
  19.       fill="currentFill"
  20.     />
  21.   </svg>
  22. </div>
  23.     <!-- end::preloader  -->
  24.     <!-- start::hero-section-1  -->
  25.     <div
  26.   class="mobile-navbar overflow-y-auto fixed bg-white dark:bg-background -left-full top-0 h-full w-full transition-all z-[100]"
  27. >
  28.   <div class="flex justify-end py-4">
  29.     <svg
  30.       xmlns="http://www.w3.org/2000/svg"
  31.       class="h-6 w-6 mr-4 text-gray-500 close-navbar-btn"
  32.       fill="none"
  33.       viewBox="0 0 24 24"
  34.       stroke="currentColor"
  35.       stroke-width="2"
  36.     >
  37.       <path
  38.         stroke-linecap="round"
  39.         stroke-linejoin="round"
  40.         d="M6 18L18 6M6 6l12 12"
  41.       />
  42.     </svg>
  43.   </div>
  44.   <ul class="mx-5">
  45.       <li class="">
  46.       <div
  47.         class="dropdown dropdown-mobile dark:bg-foreground rounded-lg"
  48.         data-dropdown
  49.       >
  50.         <button
  51.           class="link w-full py-3 flex dark:border-gray-800 justify-between pb-5 items-center border-b border-gray-200 font-normal text-gray-500 dark:text-gray-200"
  52.           data-dropdown-button
  53.         >
  54.           <a href="{{ path('app_home_list') }}">Accéder à la carte</a>
  55.         </button>
  56.         
  57.       </div>
  58.     </li>
  59.     <li class="">
  60.       <div
  61.         class="dropdown dropdown-mobile dark:bg-foreground rounded-lg"
  62.         data-dropdown
  63.       >
  64.         <button
  65.           class="link w-full py-3 flex dark:border-gray-800 pb-5 justify-between items-center border-b border-gray-200 font-normal text-gray-500 dark:text-gray-200"
  66.           data-dropdown-button
  67.         >
  68.           Categories
  69.           <svg
  70.             class="w-3 h-auto ml-2 transition-all"
  71.             width="10"
  72.             height="6"
  73.             data-dropdown-button
  74.             viewBox="0 0 10 6"
  75.             fill="none"
  76.             xmlns="http://www.w3.org/2000/svg"
  77.           >
  78.             <path
  79.               d="M4.99982 6.00001C4.79513 6.00001 4.59034 5.92467 4.43435 5.774L0.434558 1.91686C0.122074 1.61552 0.122074 1.12735 0.434558 0.826011C0.747042 0.524671 1.25327 0.524671 1.56575 0.826011L4.99982 4.13893L8.43464 0.826613C8.74712 0.525274 9.25335 0.525274 9.56583 0.826613C9.87831 1.12795 9.87831 1.61612 9.56583 1.91746L5.56604 5.7746C5.4098 5.92527 5.20481 6.00001 4.99982 6.00001Z"
  80.               fill="currentColor"
  81.             />
  82.           </svg>
  83.         </button>
  84.         <div
  85.           class="dropdown-mobile-menu dark:bg-foreground dark:text-gray-300 text-gray-700"
  86.         >
  87.           <ul class="h-full relative dark:text-gray-300 text-gray-700">
  88.       <!-- ALL CATEGORIES IN MENU START -->
  89.       {% for category in categorieNavbar() %}
  90.         <li
  91.           class="flex rounded-t-lg [&>a_h6]:hover:text-blue-500 [&>a:first-child]:hover:border-blue-200 [&>a:first-child]:hover:rounded-t-lg [&>a:first-child]:hover:bg-blue-50 [&>a:last-child]:hover:block bg-white dark:bg-foreground"
  92.         >
  93.           <a
  94.             href="{{ path('app_home_list_category', {id:category.id}) }}"
  95.             class="link px-3 py-2 border-b text-sm border-grey-200 dark:border-gray-800 w-full"
  96.           >
  97.             <h6 class="font-medium text-gray-600 dark:text-gray-200">
  98.               {{category.name}}
  99.             </h6>
  100.             <p class="font-normal text-gray-500 dark:text-gray-400 text-xs">
  101.               {{category.subtitle}}
  102.             </p>
  103.           </a>
  104.         </li>
  105.         {% endfor %}
  106.         <!-- ALL CATEGORIES IN MENU END -->   
  107.           </ul>
  108.         </div>
  109.       </div>
  110.     </li>
  111.     <li class="">
  112.       <div
  113.         class="dropdown dropdown-mobile dark:bg-foreground rounded-lg"
  114.         data-dropdown
  115.       >
  116.         <button
  117.           class="link w-full py-3 flex dark:border-gray-800 justify-between pb-5 items-center border-b border-gray-200 font-normal text-gray-500 dark:text-gray-200"
  118.           data-dropdown-button
  119.         >
  120.           Blog
  121.         </button>
  122.         
  123.       </div>
  124.     </li>
  125.     <li class="">
  126.       <div
  127.         class="dropdown dropdown-mobile dark:bg-foreground rounded-lg"
  128.         data-dropdown
  129.       >
  130.         <button
  131.           class="link w-full py-3 flex dark:border-gray-800 pb-5 justify-between items-center border-b border-gray-200 font-normal text-gray-500 dark:text-gray-200"
  132.           data-dropdown-button
  133.         >
  134.           Espace professionnel
  135.           <svg
  136.             class="w-3 h-auto ml-2 transition-all"
  137.             width="10"
  138.             height="6"
  139.             data-dropdown-button
  140.             viewBox="0 0 10 6"
  141.             fill="none"
  142.             xmlns="http://www.w3.org/2000/svg"
  143.           >
  144.             <path
  145.               d="M4.99982 6.00001C4.79513 6.00001 4.59034 5.92467 4.43435 5.774L0.434558 1.91686C0.122074 1.61552 0.122074 1.12735 0.434558 0.826011C0.747042 0.524671 1.25327 0.524671 1.56575 0.826011L4.99982 4.13893L8.43464 0.826613C8.74712 0.525274 9.25335 0.525274 9.56583 0.826613C9.87831 1.12795 9.87831 1.61612 9.56583 1.91746L5.56604 5.7746C5.4098 5.92527 5.20481 6.00001 4.99982 6.00001Z"
  146.               fill="currentColor"
  147.             />
  148.           </svg>
  149.         </button>
  150.         <div
  151.           class="dropdown-mobile-menu dark:bg-foreground dark:text-gray-300 text-gray-700"
  152.         >
  153.           <div class="dropdown-links">
  154.             <ul class="p-4">
  155.               <li class="">
  156.               {% set path = is_granted('ROLE_COMMERCE') ? path('admin') : path('app_login') %}
  157.                 <a
  158.                   href="{{ path }}"
  159.                   class="hover:text-blue-500 text-sm block dark:hover:text-blue-500 pb-3"
  160.                 >
  161.                   Mon compte</a
  162.                 >
  163.               </li>
  164.               <li>
  165.                 <a
  166.                   href="#"
  167.                   class="hover:text-blue-500 text-sm block dark:hover:text-blue-500 pb-3"
  168.                   >Nos offres</a
  169.                 >
  170.               </li>
  171.               <li>
  172.                 {% if app.user %}
  173.                 <a
  174.                   href="{{ path('app_logout') }}"
  175.                   class="hover:text-blue-500 text-sm block dark:hover:text-blue-500 pb-3"
  176.                   >Déconnexion</a
  177.                 >
  178.                 {% endif %}
  179.               </li>
  180.             </ul>
  181.           </div>
  182.         </div>
  183.       </div>
  184.     </li>
  185.   </ul>
  186. </div>
  187. {% endblock %}