FIX:
- Correccion doble burguer menu en la version mobile. - Agregado boton de ingresar en sidebar para la version mobile.
This commit is contained in:
@@ -50,13 +50,6 @@
|
|||||||
|
|
||||||
<!-- Scripts globales -->
|
<!-- Scripts globales -->
|
||||||
<script>
|
<script>
|
||||||
// Lógica del menú móvil tradicional (navbar)
|
|
||||||
const btn = document.querySelector('[data-collapse-toggle="navbar-default"]');
|
|
||||||
const menu = document.getElementById('navbar-default');
|
|
||||||
if(btn && menu) {
|
|
||||||
btn.addEventListener('click', () => menu.classList.toggle('hidden'));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Lógica del Sidebar
|
// Lógica del Sidebar
|
||||||
const sidebar = document.getElementById('main-sidebar');
|
const sidebar = document.getElementById('main-sidebar');
|
||||||
const backdrop = document.getElementById('sidebar-backdrop');
|
const backdrop = document.getElementById('sidebar-backdrop');
|
||||||
|
|||||||
@@ -24,13 +24,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Mobile Menu Button -->
|
<!-- Old Mobile Menu Button Removed -->
|
||||||
<button data-collapse-toggle="navbar-default" type="button" class="inline-flex items-center p-2 w-10 h-10 justify-center text-gray-400 rounded-lg md:hidden hover:bg-neutral-800 focus:outline-none focus:ring-2 focus:ring-neon-lime" aria-controls="navbar-default" aria-expanded="false">
|
|
||||||
<span class="sr-only">Abrir menú</span>
|
|
||||||
<svg class="w-5 h-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 17 14">
|
|
||||||
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 1h15M1 7h15M1 13h15"/>
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<!-- Links -->
|
<!-- Links -->
|
||||||
<div class="hidden w-full md:block md:w-auto" id="navbar-default">
|
<div class="hidden w-full md:block md:w-auto" id="navbar-default">
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
@endauth
|
@endauth
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Sidebar Footer (Logout) -->
|
<!-- Sidebar Footer -->
|
||||||
@auth
|
@auth
|
||||||
<div class="p-4 border-t border-neutral-300 dark:border-neutral-800 bg-neutral-200 dark:bg-neutral-950">
|
<div class="p-4 border-t border-neutral-300 dark:border-neutral-800 bg-neutral-200 dark:bg-neutral-950">
|
||||||
<div class="mb-3 px-2 flex items-center gap-3">
|
<div class="mb-3 px-2 flex items-center gap-3">
|
||||||
@@ -114,4 +114,13 @@
|
|||||||
</div>
|
</div>
|
||||||
@endauth
|
@endauth
|
||||||
|
|
||||||
|
@guest
|
||||||
|
<div class="p-4 border-t border-neutral-300 dark:border-neutral-800 bg-neutral-200 dark:bg-neutral-950">
|
||||||
|
<a href="{{ route('login') }}" class="w-full flex items-center justify-center gap-2 font-black text-sm text-neon-lime dark:text-neutral-900 bg-neutral-900 dark:bg-neon-lime py-3 px-4 rounded-lg hover:dark:bg-[#b3e600] transition-colors uppercase tracking-wider shadow-lg shadow-gray-300 dark:shadow-neon-lime/20">
|
||||||
|
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"></path></svg>
|
||||||
|
Ingresar
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
@endguest
|
||||||
|
|
||||||
</aside>
|
</aside>
|
||||||
|
|||||||
Reference in New Issue
Block a user