|
|
|
|
@ -18,11 +18,14 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Nueva función para cerrar menú al hacer click fuera (opcional)
|
|
|
|
|
/*
|
|
|
|
|
function handleBackdropClick(event: MouseEvent) {
|
|
|
|
|
if ((event.target as HTMLElement).classList.contains('mobile-menu-backdrop')) {
|
|
|
|
|
mobileMenuOpen = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<nav class="bg-white shadow-md border-b border-gray-200 sticky top-0 z-50">
|
|
|
|
|
@ -86,7 +89,7 @@
|
|
|
|
|
<button
|
|
|
|
|
type="button"
|
|
|
|
|
class="inline-flex items-center justify-center p-2 rounded-md text-gray-400
|
|
|
|
|
hover:text-gray-600 hover:bg-gray-100 focus:outline-none focus:ring-2
|
|
|
|
|
hover:text-gray-600 hover:bg-gray-100 focus:outline-none focus:ring-2 z-400
|
|
|
|
|
focus:ring-inset focus:ring-blue-500 transition-colors duration-200
|
|
|
|
|
{mobileMenuOpen ? 'bg-gray-100 text-gray-600' : ''}"
|
|
|
|
|
onclick={toggleMobileMenu}
|
|
|
|
|
@ -112,20 +115,20 @@
|
|
|
|
|
<!-- Menú móvil con slide funcionando -->
|
|
|
|
|
{#if mobileMenuOpen}
|
|
|
|
|
<div
|
|
|
|
|
class="fixed inset-0 bg-black bg-opacity-50 z-40 md:hidden"
|
|
|
|
|
class="fixed inset-0 bg-white bg-opacity-90 z-40 md:hidden"
|
|
|
|
|
transition:fade={{ duration: 150 }}
|
|
|
|
|
onclick={() => mobileMenuOpen = false}>
|
|
|
|
|
onclick={() => mobileMenuOpen = false} >
|
|
|
|
|
|
|
|
|
|
<!-- Menú que desliza desde arriba -->
|
|
|
|
|
<div
|
|
|
|
|
class="absolute top-16 left-0 right-0 bg-white shadow-xl border-t border-gray-200
|
|
|
|
|
max-h-[calc(100vh-4rem)] overflow-y-auto"
|
|
|
|
|
<div class="absolute top-16 left-0 right-0 bg-white shadow-xl border-t border-gray-200 z-200
|
|
|
|
|
max-h-[calc(100vh-4rem)] overflow-y-auto"
|
|
|
|
|
transition:slide={{
|
|
|
|
|
duration: 300,
|
|
|
|
|
axis: 'Y',
|
|
|
|
|
axis: 'y',
|
|
|
|
|
easing: 'cubic-out'
|
|
|
|
|
}}>
|
|
|
|
|
<div class="px-2 pt-2 pb-4 space-y-1 sm:px-3">
|
|
|
|
|
<div class="px-2 pt-2 pb-4 space-y-1 sm:px-3" >
|
|
|
|
|
|
|
|
|
|
{#each navegationState.sectionsInfo as section}
|
|
|
|
|
{#if section.menu }
|
|
|
|
|
<button
|
|
|
|
|
@ -148,9 +151,11 @@
|
|
|
|
|
</button>
|
|
|
|
|
{/if}
|
|
|
|
|
{/each}
|
|
|
|
|
|
|
|
|
|
<div class="px-4 py-3 border-t border-gray-200 mt-2">
|
|
|
|
|
<PdfBoton />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|