feat(developer): reestructurar navegacion a barra lateral izquierda (sidebar) con diseno responsive

This commit is contained in:
unknown
2026-10-09 09:41:12 -06:00
parent 038193024d
commit 220e070f0b
3 changed files with 203 additions and 54 deletions
+152 -17
View File
@@ -4263,11 +4263,11 @@ body.dark-mode .carousel-nav-btn {
DEVELOPER MASTER SUITE (#viewDeveloper) - TEMA SIBOPAY LIMPIO DEVELOPER MASTER SUITE (#viewDeveloper) - TEMA SIBOPAY LIMPIO
========================================================================== */ ========================================================================== */
.dev-container { .dev-container {
max-width: 1040px; max-width: 1420px;
margin: 0 auto; margin: 0 auto;
min-height: 100vh; min-height: 100vh;
background: var(--bg-main, #f8fafc); background: var(--bg-main, #f8fafc);
padding: calc(18px + var(--safe-top)) 18px calc(60px + var(--safe-bottom)) 18px; padding: calc(18px + var(--safe-top)) 20px calc(60px + var(--safe-bottom)) 20px;
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
} }
@@ -4368,42 +4368,123 @@ body.dark-mode .carousel-nav-btn {
box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15); box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
} }
/* Layout Split: Menú Lateral a la Izquierda y Contenido Principal a la Derecha */
.dev-layout-split {
display: flex;
align-items: flex-start;
gap: 22px;
width: 100%;
box-sizing: border-box;
}
.dev-sidebar {
width: 270px;
flex-shrink: 0;
}
.dev-sidebar-inner {
position: sticky;
top: calc(18px + var(--safe-top));
background: var(--card-bg, #ffffff);
border: 1px solid var(--border, #e2e8f0);
border-radius: 18px;
padding: 14px;
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.dev-sidebar-header {
padding: 4px 6px 10px 6px;
border-bottom: 1px solid var(--border, #e2e8f0);
margin-bottom: 10px;
}
.dev-sidebar-title {
font-size: 0.72rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted, #64748b);
}
.dev-main-content {
flex: 1;
min-width: 0;
width: 100%;
}
.dev-tabs-nav { .dev-tabs-nav {
display: flex; display: flex;
gap: 8px; flex-direction: column;
overflow-x: auto; gap: 6px;
margin-bottom: 22px; margin-bottom: 0;
padding-bottom: 4px; padding-bottom: 0;
width: 100%;
} }
.dev-tab-btn { .dev-tab-btn {
padding: 10px 18px; width: 100%;
padding: 11px 14px;
border-radius: 12px; border-radius: 12px;
font-size: 0.86rem; font-size: 0.86rem;
font-weight: 700; font-weight: 700;
border: 1.5px solid var(--border, #e2e8f0); border: 1.5px solid transparent;
background: var(--card-bg, #ffffff); background: transparent;
color: #64748b; color: var(--text-muted, #64748b);
cursor: pointer; cursor: pointer;
white-space: nowrap; white-space: normal;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px; gap: 12px;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03); box-sizing: border-box;
text-align: left;
}
.dev-tab-btn svg {
flex-shrink: 0;
color: var(--text-muted, #64748b);
transition: color 0.18s ease;
}
.dev-tab-btn span:first-of-type {
flex: 1;
line-height: 1.35;
} }
.dev-tab-btn:hover { .dev-tab-btn:hover {
color: #0284c7; color: #0284c7;
border-color: #cbd5e1; border-color: rgba(2, 132, 199, 0.2);
background: #f8fafc; background: rgba(2, 132, 199, 0.06);
}
.dev-tab-btn:hover svg {
color: #0284c7;
} }
.dev-tab-btn.active { .dev-tab-btn.active {
background: #0284c7; background: #0284c7;
color: #ffffff; color: #ffffff;
border-color: #0284c7; border-color: #0284c7;
box-shadow: 0 3px 12px rgba(2, 132, 199, 0.25); box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}
.dev-tab-btn.active svg {
color: #ffffff;
}
body.dark-mode .dev-tab-btn:hover {
color: #38bdf8;
border-color: rgba(56, 189, 248, 0.25);
background: rgba(56, 189, 248, 0.12);
}
body.dark-mode .dev-tab-btn:hover svg {
color: #38bdf8;
}
body.dark-mode .dev-tab-btn.active {
background: #0284c7;
color: #ffffff;
} }
.dev-card-uploader-box { .dev-card-uploader-box {
@@ -4592,6 +4673,60 @@ body.dark-mode .carousel-nav-btn {
backdrop-filter: blur(6px) !important; backdrop-filter: blur(6px) !important;
} }
@media (max-width: 860px) {
.dev-layout-split {
flex-direction: column;
gap: 16px;
}
.dev-sidebar {
width: 100%;
position: static;
}
.dev-sidebar-inner {
position: static;
padding: 0;
background: transparent;
border: none;
box-shadow: none;
}
.dev-sidebar-header {
display: none;
}
.dev-tabs-nav {
flex-direction: row;
overflow-x: auto;
gap: 8px;
padding-bottom: 6px;
-webkit-overflow-scrolling: touch;
width: 100%;
}
.dev-tab-btn {
width: auto;
white-space: nowrap;
padding: 9px 14px;
font-size: 0.82rem;
background: var(--card-bg, #ffffff);
border: 1px solid var(--border, #e2e8f0);
border-radius: 12px;
flex-shrink: 0;
}
.dev-tab-btn span:first-of-type {
flex: initial;
}
.dev-tab-btn.active {
background: #0284c7;
color: #ffffff;
border-color: #0284c7;
}
}
@media (max-width: 650px) { @media (max-width: 650px) {
.dev-header { .dev-header {
flex-direction: column; flex-direction: column;
+49 -35
View File
@@ -11,9 +11,9 @@
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="SiboPay"> <meta name="apple-mobile-web-app-title" content="SiboPay">
<link rel="preload" href="/css/styles.css?v=19.4" as="style"> <link rel="preload" href="/css/styles.css?v=19.5" as="style">
<link rel="preload" href="/js/app.js?v=19.4" as="script"> <link rel="preload" href="/js/app.js?v=19.5" as="script">
<link rel="stylesheet" href="/css/styles.css?v=19.4"> <link rel="stylesheet" href="/css/styles.css?v=19.5">
<link rel="stylesheet" href="/css/desktop.css?v=2.2"> <link rel="stylesheet" href="/css/desktop.css?v=2.2">
<style> <style>
/* Transiciones suaves */ /* Transiciones suaves */
@@ -225,38 +225,50 @@
</div> </div>
</header> </header>
<!-- NAVEGACIÓN DE PESTAÑAS DEVELOPER --> <!-- LAYOUT SPLIT: SIDEBAR A LA IZQUIERDA Y CONTENIDO A LA DERECHA -->
<nav class="dev-tabs-nav"> <div class="dev-layout-split">
<button class="dev-tab-btn active" id="btnDevTabUsuarios" onclick="switchDevTab('usuarios')" style="display: inline-flex; align-items: center; gap: 8px;"> <!-- SIDEBAR LATERAL IZQUIERDA -->
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg> <aside class="dev-sidebar">
<span>Usuarios & Administradores</span> <div class="dev-sidebar-inner">
</button> <div class="dev-sidebar-header">
<button class="dev-tab-btn" id="btnDevTabDisenos" onclick="switchDevTab('disenos')" style="display: inline-flex; align-items: center; gap: 8px;"> <span class="dev-sidebar-title">Módulos del Sistema</span>
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="13.5" cy="6.5" r=".5" fill="currentColor"/><circle cx="17.5" cy="10.5" r=".5" fill="currentColor"/><circle cx="8.5" cy="7.5" r=".5" fill="currentColor"/><circle cx="6.5" cy="12.5" r=".5" fill="currentColor"/><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"/></svg> </div>
<span>Diseños de Tarjetas (Subir & Gestionar)</span> <nav class="dev-tabs-nav">
</button> <button class="dev-tab-btn active" id="btnDevTabUsuarios" onclick="switchDevTab('usuarios')">
<button class="dev-tab-btn" id="btnDevTabDiagnostico" onclick="switchDevTab('diagnostico')" style="display: inline-flex; align-items: center; gap: 8px;"> <svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 12h-4l-3 9L9 3l-3 9H2"/></svg> <span>Usuarios & Administradores</span>
<span>Diagnóstico del Sistema & BD</span> </button>
</button> <button class="dev-tab-btn" id="btnDevTabDisenos" onclick="switchDevTab('disenos')">
<button class="dev-tab-btn" id="btnDevTabEscuelas" onclick="switchDevTab('escuelas')" style="display: inline-flex; align-items: center; gap: 8px;"> <svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="13.5" cy="6.5" r=".5" fill="currentColor"/><circle cx="17.5" cy="10.5" r=".5" fill="currentColor"/><circle cx="8.5" cy="7.5" r=".5" fill="currentColor"/><circle cx="6.5" cy="12.5" r=".5" fill="currentColor"/><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"/></svg>
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 21h18"/><path d="M5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16"/><path d="M9 21v-4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v4"/><line x1="9" y1="9" x2="9" y2="9.01"/><line x1="15" y1="9" x2="15" y2="9.01"/></svg> <span>Diseños de Tarjetas</span>
<span>Escuelas & Sedes</span> </button>
</button> <button class="dev-tab-btn" id="btnDevTabDiagnostico" onclick="switchDevTab('diagnostico')">
<button class="dev-tab-btn" id="btnDevTabImportacion" onclick="switchDevTab('importacion')" style="display: inline-flex; align-items: center; gap: 8px;"> <svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 12h-4l-3 9L9 3l-3 9H2"/></svg>
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg> <span>Diagnóstico del Sistema & BD</span>
<span>Carga Masiva (Excel/CSV)</span> </button>
</button> <button class="dev-tab-btn" id="btnDevTabEscuelas" onclick="switchDevTab('escuelas')">
<button class="dev-tab-btn" id="btnDevTabSinpe" onclick="switchDevTab('sinpe')" style="display: inline-flex; align-items: center; gap: 8px;"> <svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 21h18"/><path d="M5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16"/><path d="M9 21v-4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v4"/><line x1="9" y1="9" x2="9" y2="9.01"/><line x1="15" y1="9" x2="15" y2="9.01"/></svg>
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg> <span>Escuelas & Sedes</span>
<span>🔍 Buscador SINPE Móvil</span> </button>
<span id="devSinpePendingBadge" style="display: none; background: #ef4444; color: #ffffff; font-size: 0.68rem; font-weight: 900; padding: 2px 7px; border-radius: 999px; line-height: 1;">0</span> <button class="dev-tab-btn" id="btnDevTabImportacion" onclick="switchDevTab('importacion')">
</button> <svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>
<button class="dev-tab-btn" id="btnDevTabKardex" onclick="switchDevTab('kardex')" style="display: inline-flex; align-items: center; gap: 8px;"> <span>Carga Masiva (Excel/CSV)</span>
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1-2.5-2.5Z"/><path d="M6 6h10"/><path d="M6 10h10"/><path d="M6 14h6"/></svg> </button>
<span>🎓 Kardex & Alumnos 360°</span> <button class="dev-tab-btn" id="btnDevTabSinpe" onclick="switchDevTab('sinpe')">
</button> <svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
</nav> <span>Buscador SINPE Móvil</span>
<span id="devSinpePendingBadge" style="display: none; background: #ef4444; color: #ffffff; font-size: 0.68rem; font-weight: 900; padding: 2px 7px; border-radius: 999px; line-height: 1; margin-left: auto;">0</span>
</button>
<button class="dev-tab-btn" id="btnDevTabKardex" onclick="switchDevTab('kardex')">
<svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1-2.5-2.5Z"/><path d="M6 6h10"/><path d="M6 10h10"/><path d="M6 14h6"/></svg>
<span>Kardex & Alumnos 360°</span>
</button>
</nav>
</div>
</aside>
<!-- CONTENEDOR DE CONTENIDO PRINCIPAL A LA DERECHA -->
<main class="dev-main-content">
<!-- 1. PESTAÑA: USUARIOS Y ADMINISTRADORES --> <!-- 1. PESTAÑA: USUARIOS Y ADMINISTRADORES -->
<div id="devTabContentUsuarios" class="dev-tab-content"> <div id="devTabContentUsuarios" class="dev-tab-content">
@@ -912,6 +924,8 @@
</div> </div>
</div> </div>
</div> </div>
</main>
</div>
</div> </div>
<!-- PANEL DE ADMINISTRACIÓN DE LA SODA (#viewAdmin) --> <!-- PANEL DE ADMINISTRACIÓN DE LA SODA (#viewAdmin) -->
+2 -2
View File
@@ -1,5 +1,5 @@
// SiboPay PWA Service Worker v19.4 - Ultra Fast Startup & Stale-While-Revalidate // SiboPay PWA Service Worker v19.5 - Ultra Fast Startup & Stale-While-Revalidate
const CACHE_NAME = 'sibopay-v19.4'; const CACHE_NAME = 'sibopay-v19.5';
const STATIC_ASSETS = [ const STATIC_ASSETS = [
'/', '/',
'/index.html', '/index.html',