templates/partials/mobileHeader.html.twig line 1
{% block mobileHeader %}
<!-- start::preloader -->
<div
class="loader fixed w-full h-screen bg-slate-100 z-50 flex justify-center items-center"
>
<svg
role="status"
class="w-24 h-24 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600"
viewBox="0 0 100 101"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
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"
fill="currentColor"
/>
<path
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"
fill="currentFill"
/>
</svg>
</div>
<!-- end::preloader -->
<!-- start::hero-section-1 -->
<div
class="mobile-navbar overflow-y-auto fixed bg-white dark:bg-background -left-full top-0 h-full w-full transition-all z-[100]"
>
<div class="flex justify-end py-4">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6 mr-4 text-gray-500 close-navbar-btn"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M6 18L18 6M6 6l12 12"
/>
</svg>
</div>
<ul class="mx-5">
<li class="">
<div
class="dropdown dropdown-mobile dark:bg-foreground rounded-lg"
data-dropdown
>
<button
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"
data-dropdown-button
>
<a href="{{ path('app_home_list') }}">Accéder à la carte</a>
</button>
</div>
</li>
<li class="">
<div
class="dropdown dropdown-mobile dark:bg-foreground rounded-lg"
data-dropdown
>
<button
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"
data-dropdown-button
>
Categories
<svg
class="w-3 h-auto ml-2 transition-all"
width="10"
height="6"
data-dropdown-button
viewBox="0 0 10 6"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
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"
fill="currentColor"
/>
</svg>
</button>
<div
class="dropdown-mobile-menu dark:bg-foreground dark:text-gray-300 text-gray-700"
>
<ul class="h-full relative dark:text-gray-300 text-gray-700">
<!-- ALL CATEGORIES IN MENU START -->
{% for category in categorieNavbar() %}
<li
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"
>
<a
href="{{ path('app_home_list_category', {id:category.id}) }}"
class="link px-3 py-2 border-b text-sm border-grey-200 dark:border-gray-800 w-full"
>
<h6 class="font-medium text-gray-600 dark:text-gray-200">
{{category.name}}
</h6>
<p class="font-normal text-gray-500 dark:text-gray-400 text-xs">
{{category.subtitle}}
</p>
</a>
</li>
{% endfor %}
<!-- ALL CATEGORIES IN MENU END -->
</ul>
</div>
</div>
</li>
<li class="">
<div
class="dropdown dropdown-mobile dark:bg-foreground rounded-lg"
data-dropdown
>
<button
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"
data-dropdown-button
>
Blog
</button>
</div>
</li>
<li class="">
<div
class="dropdown dropdown-mobile dark:bg-foreground rounded-lg"
data-dropdown
>
<button
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"
data-dropdown-button
>
Espace professionnel
<svg
class="w-3 h-auto ml-2 transition-all"
width="10"
height="6"
data-dropdown-button
viewBox="0 0 10 6"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
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"
fill="currentColor"
/>
</svg>
</button>
<div
class="dropdown-mobile-menu dark:bg-foreground dark:text-gray-300 text-gray-700"
>
<div class="dropdown-links">
<ul class="p-4">
<li class="">
{% set path = is_granted('ROLE_COMMERCE') ? path('admin') : path('app_login') %}
<a
href="{{ path }}"
class="hover:text-blue-500 text-sm block dark:hover:text-blue-500 pb-3"
>
Mon compte</a
>
</li>
<li>
<a
href="#"
class="hover:text-blue-500 text-sm block dark:hover:text-blue-500 pb-3"
>Nos offres</a
>
</li>
<li>
{% if app.user %}
<a
href="{{ path('app_logout') }}"
class="hover:text-blue-500 text-sm block dark:hover:text-blue-500 pb-3"
>Déconnexion</a
>
{% endif %}
</li>
</ul>
</div>
</div>
</div>
</li>
</ul>
</div>
{% endblock %}