style: Volver a SIBU clásico con fondo sólido para mejor legibilidad móvil
This commit is contained in:
@ -15,103 +15,83 @@
|
||||
|
||||
<ReportModal :is-open="showReportModal" @close="showReportModal = false" />
|
||||
|
||||
<!-- Menu Sidebar -->
|
||||
<Transition name="menu-slide">
|
||||
<div v-if="showMenu" class="menu-dropdown nexus-sidebar">
|
||||
<!-- NEXUS HEADER: Elite Identity -->
|
||||
<div class="nexus-header-premium">
|
||||
<div class="header-content-wrapper">
|
||||
<div class="brand-badge">SIBU NEXUS ELITE</div>
|
||||
<div class="user-profile-nexus">
|
||||
<div class="user-avatar-premium">
|
||||
<div v-if="showMenu" class="menu-dropdown sibu-sidebar">
|
||||
<div class="sibu-header-plain">
|
||||
<div class="header-main-info">
|
||||
<div class="brand-tag-simple">SIBU</div>
|
||||
<div class="user-info-clean">
|
||||
<div class="user-avatar-circle">
|
||||
<span class="material-icons">{{ authStore.isAuthenticated ? 'account_circle' : 'fingerprint' }}</span>
|
||||
<div v-if="authStore.isAuthenticated" class="online-pulse"></div>
|
||||
<div v-if="authStore.isAuthenticated" class="status-dot"></div>
|
||||
</div>
|
||||
<div class="user-meta">
|
||||
<span class="user-status">{{ authStore.isAuthenticated ? 'SISTEMA ACTIVO' : 'ACCESO INVITADO' }}</span>
|
||||
<span class="user-display-name">{{ authStore.isAuthenticated ? authStore.userName : 'NEXUS GUEST' }}</span>
|
||||
<div class="user-text-meta">
|
||||
<span class="status-msg">{{ authStore.isAuthenticated ? 'USUARIO ACTIVO' : 'MODO INVITADO' }}</span>
|
||||
<span class="user-name-text">{{ authStore.isAuthenticated ? authStore.userName : 'Invitado' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-bg-glow"></div>
|
||||
</div>
|
||||
|
||||
<div class="menu-scroll-area">
|
||||
<!-- SECTION: GESTIÓN (Solo si es Admin/Conductor/Promotor) -->
|
||||
<div v-if="authStore.isAdmin || authStore.isDriver || authStore.isPromoter" class="nexus-section">
|
||||
<div class="section-label">GESTIÓN DE FLOTA</div>
|
||||
|
||||
<div v-if="authStore.isAdmin" class="menu-item-premium admin-item" @click="navigateTo('/admin')">
|
||||
<div class="item-icon-wrapper"><span class="material-icons">shield_person</span></div>
|
||||
<span class="item-text">Panel Control Admin</span>
|
||||
<span class="material-icons chevron">chevron_right</span>
|
||||
<div v-if="authStore.isAdmin || authStore.isDriver || authStore.isPromoter" class="sidebar-group">
|
||||
<div class="group-label">GESTIÓN</div>
|
||||
<div v-if="authStore.isAdmin" class="sidebar-link admin-link" @click="navigateTo('/admin')">
|
||||
<span class="material-icons">shield_person</span>
|
||||
<span class="link-text">Panel de Control</span>
|
||||
</div>
|
||||
|
||||
<div v-if="authStore.isDriver" class="menu-item-premium driver-item" @click="navigateTo('/driver')">
|
||||
<div class="item-icon-wrapper"><span class="material-icons">minor_crash</span></div>
|
||||
<span class="item-text">Servicio Conductor</span>
|
||||
<span class="material-icons chevron">chevron_right</span>
|
||||
<div v-if="authStore.isDriver" class="sidebar-link driver-link" @click="navigateTo('/driver')">
|
||||
<span class="material-icons">minor_crash</span>
|
||||
<span class="link-text">Servicio Conductor</span>
|
||||
</div>
|
||||
|
||||
<div v-if="authStore.isPromoter" class="menu-item-premium promoter-item" @click="navigateTo('/promoter')">
|
||||
<div class="item-icon-wrapper"><span class="material-icons">store</span></div>
|
||||
<span class="item-text">Central Promotores</span>
|
||||
<span class="material-icons chevron">chevron_right</span>
|
||||
<div v-if="authStore.isPromoter" class="sidebar-link promoter-link" @click="navigateTo('/promoter')">
|
||||
<span class="material-icons">store</span>
|
||||
<span class="link-text">Central Promotores</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- SECTION: NAVEGACIÓN -->
|
||||
<div class="nexus-section">
|
||||
<div class="section-label">NAVEGACIÓN</div>
|
||||
|
||||
<div class="menu-item-premium" @click="navigateTo('/profile')">
|
||||
<div class="item-icon-wrapper"><span class="material-icons">account_circle</span></div>
|
||||
<span class="item-text">Mi Identidad Nexus</span>
|
||||
<span class="material-icons chevron">chevron_right</span>
|
||||
<div class="sidebar-group">
|
||||
<div class="group-label">MENU</div>
|
||||
<div class="sidebar-link" @click="navigateTo('/profile')">
|
||||
<span class="material-icons">account_circle</span>
|
||||
<span class="link-text">Mi Perfil</span>
|
||||
</div>
|
||||
|
||||
<div class="menu-item-premium" @click="navigateTo('/favorites')">
|
||||
<div class="item-icon-wrapper"><span class="material-icons">star</span></div>
|
||||
<span class="item-text">Destinos Favoritos</span>
|
||||
<span class="material-icons chevron">chevron_right</span>
|
||||
<div class="sidebar-link" @click="navigateTo('/favorites')">
|
||||
<span class="material-icons">star</span>
|
||||
<span class="link-text">Favoritos</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- SECTION: SISTEMA -->
|
||||
<div class="nexus-section">
|
||||
<div class="section-label">CONFIGURACIÓN SISTEMA</div>
|
||||
|
||||
<div class="menu-item-premium" @click="toggleLanguage">
|
||||
<div class="item-icon-wrapper"><span class="material-icons">translate</span></div>
|
||||
<span class="item-text">{{ locale === 'es' ? 'Protocolo: English (EN)' : 'Protocolo: Español (ES)' }}</span>
|
||||
<div class="sidebar-group">
|
||||
<div class="group-label">CONFIGURACIÓN</div>
|
||||
<div class="sidebar-link" @click="toggleLanguage">
|
||||
<span class="material-icons">translate</span>
|
||||
<span class="link-text">{{ locale === 'es' ? 'Idioma: English' : 'Idioma: Español' }}</span>
|
||||
</div>
|
||||
|
||||
<div class="menu-item-premium theme-toggle-item">
|
||||
<div class="item-icon-wrapper"><span class="material-icons">palette</span></div>
|
||||
<span class="item-text">Modo Visual Oscuro</span>
|
||||
<ThemeToggle class="theme-switch-btn" />
|
||||
<div class="sidebar-link theme-toggle-row">
|
||||
<span class="material-icons">palette</span>
|
||||
<span class="link-text">Modo Oscuro</span>
|
||||
<ThemeToggle class="sidebar-theme-switch" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- SECTION: SOPORTE -->
|
||||
<div class="nexus-section">
|
||||
<div class="section-label">SOPORTE TÉCNICO</div>
|
||||
<div class="menu-item-premium report-item" @click="openReportModal">
|
||||
<div class="item-icon-wrapper"><span class="material-icons">report_problem</span></div>
|
||||
<span class="item-text">Reportar Incidencia</span>
|
||||
<div class="sidebar-group">
|
||||
<div class="group-label">SOPORTE</div>
|
||||
<div class="sidebar-link report-link" @click="openReportModal">
|
||||
<span class="material-icons">report_problem</span>
|
||||
<span class="link-text">Enviar Reporte</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- FOOTER: Auth & Version -->
|
||||
<div class="nexus-sidebar-footer">
|
||||
<div v-if="!authStore.isAuthenticated" class="auth-btn-nexus login" @click="navigateTo('/login')">
|
||||
<span class="material-icons">power</span> INICIAR SISTEMA
|
||||
<div class="sidebar-footer-plain">
|
||||
<div v-if="!authStore.isAuthenticated" class="footer-btn login" @click="navigateTo('/login')">
|
||||
<span class="material-icons">power</span> INICIAR SESIÓN
|
||||
</div>
|
||||
<div v-else class="auth-btn-nexus logout" @click="handleLogout">
|
||||
<span class="material-icons">power_settings_new</span> CERRAR PROTOCOLO
|
||||
<div v-else class="footer-btn logout" @click="handleLogout">
|
||||
<span class="material-icons">power_settings_new</span> CERRAR SESIÓN
|
||||
</div>
|
||||
<div class="nexus-version-tag">SIBU NEXUS CORE v1.0.4.STARK</div>
|
||||
<div class="sibu-version-simple">SIBU v1.2.0</div>
|
||||
</div>
|
||||
</div>
|
||||
</Transition>
|
||||
@ -231,262 +211,211 @@ const handleLogout = () => {
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
/* NEXUS SIDEBAR STYLES */
|
||||
.nexus-sidebar {
|
||||
/* SIBU SIDEBAR STYLES (SOLID) */
|
||||
.sibu-sidebar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 300px;
|
||||
width: 280px;
|
||||
height: 100vh;
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(30px) saturate(150%);
|
||||
-webkit-backdrop-filter: blur(30px) saturate(150%);
|
||||
border-right: 1px solid var(--glass-border);
|
||||
background: var(--bg-secondary);
|
||||
border-right: 1px solid var(--border-color);
|
||||
z-index: 10000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 25px 0 60px rgba(0,0,0,0.5);
|
||||
box-shadow: 10px 0 30px rgba(0,0,0,0.2);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.nexus-header-premium {
|
||||
position: relative;
|
||||
padding: 50px 24px 30px;
|
||||
/* SIBU SIDEBAR STYLES (SOLID) */
|
||||
.sibu-sidebar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 280px;
|
||||
height: 100vh;
|
||||
background: var(--bg-secondary);
|
||||
border-right: 1px solid var(--border-color);
|
||||
z-index: 10000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 10px 0 30px rgba(0,0,0,0.2);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.header-content-wrapper {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
.sibu-header-plain {
|
||||
padding: 40px 24px 20px;
|
||||
background: var(--bg-primary);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.brand-badge {
|
||||
display: inline-block;
|
||||
background: var(--active-color);
|
||||
color: #101820;
|
||||
font-size: 10px;
|
||||
.brand-tag-simple {
|
||||
font-size: 12px;
|
||||
font-weight: 900;
|
||||
padding: 4px 10px;
|
||||
border-radius: 6px;
|
||||
letter-spacing: 1px;
|
||||
margin-bottom: 16px;
|
||||
box-shadow: 0 4px 15px rgba(254, 231, 21, 0.4);
|
||||
color: var(--active-color);
|
||||
letter-spacing: 2px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.user-profile-nexus {
|
||||
.user-info-clean {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.user-avatar-premium {
|
||||
.user-avatar-circle {
|
||||
position: relative;
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 18px;
|
||||
background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 50%;
|
||||
background: var(--hover-bg);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 1px solid var(--active-color);
|
||||
box-shadow: 0 0 20px rgba(254, 231, 21, 0.15);
|
||||
border: 2px solid var(--border-color);
|
||||
}
|
||||
|
||||
.user-avatar-premium .material-icons {
|
||||
font-size: 32px;
|
||||
color: var(--active-color);
|
||||
.user-avatar-circle .material-icons {
|
||||
font-size: 28px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.online-pulse {
|
||||
.status-dot {
|
||||
position: absolute;
|
||||
bottom: -2px;
|
||||
right: -2px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
bottom: 2px;
|
||||
right: 2px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background: #4ade80;
|
||||
border: 3px solid #0f172a;
|
||||
border: 2px solid var(--bg-primary);
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 10px #4ade80;
|
||||
animation: pulse-green 2s infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse-green {
|
||||
0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
|
||||
70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
|
||||
100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
|
||||
}
|
||||
|
||||
.user-meta {
|
||||
.user-text-meta {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.user-status {
|
||||
font-size: 10px;
|
||||
.status-msg {
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
color: var(--text-secondary);
|
||||
letter-spacing: 1.5px;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.user-display-name {
|
||||
font-size: 18px;
|
||||
.user-name-text {
|
||||
font-size: 16px;
|
||||
font-weight: 800;
|
||||
color: var(--text-primary);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.header-bg-glow {
|
||||
position: absolute;
|
||||
top: -50px;
|
||||
right: -50px;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
background: radial-gradient(circle, rgba(254, 231, 21, 0.1) 0%, transparent 70%);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.menu-scroll-area {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 10px 16px;
|
||||
padding: 20px 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 24px;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.nexus-section {
|
||||
.sidebar-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.section-label {
|
||||
font-size: 11px;
|
||||
.group-label {
|
||||
font-size: 10px;
|
||||
font-weight: 800;
|
||||
color: var(--text-secondary);
|
||||
padding: 0 12px 8px;
|
||||
letter-spacing: 2px;
|
||||
opacity: 0.6;
|
||||
padding: 0 12px 6px;
|
||||
letter-spacing: 1px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.menu-item-premium {
|
||||
padding: 12px 14px;
|
||||
border-radius: 14px;
|
||||
.sidebar-link {
|
||||
padding: 10px 12px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
gap: 12px;
|
||||
cursor: pointer;
|
||||
color: var(--text-primary);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
border: 1px solid transparent;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.menu-item-premium:hover {
|
||||
.sidebar-link:hover {
|
||||
background: var(--hover-bg);
|
||||
border-color: var(--border-color);
|
||||
transform: translateX(6px);
|
||||
}
|
||||
|
||||
.item-icon-wrapper {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 12px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.menu-item-premium:hover .item-icon-wrapper {
|
||||
background: var(--active-bg);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.menu-item-premium .material-icons {
|
||||
font-size: 22px;
|
||||
.sidebar-link .material-icons {
|
||||
font-size: 20px;
|
||||
color: var(--text-secondary);
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.menu-item-premium:hover .material-icons:not(.chevron) {
|
||||
.sidebar-link:hover .material-icons {
|
||||
color: var(--active-color);
|
||||
}
|
||||
|
||||
.item-text {
|
||||
flex: 1;
|
||||
font-weight: 600;
|
||||
.link-text {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.chevron {
|
||||
font-size: 18px;
|
||||
opacity: 0;
|
||||
transform: translateX(-10px);
|
||||
transition: all 0.3s;
|
||||
.theme-toggle-row {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.menu-item-premium:hover .chevron {
|
||||
opacity: 0.5;
|
||||
transform: translateX(0);
|
||||
.sidebar-theme-switch {
|
||||
transform: scale(0.8);
|
||||
margin-right: -5px;
|
||||
}
|
||||
|
||||
.admin-item .item-icon-wrapper { color: #f87171; }
|
||||
.driver-item .item-icon-wrapper { color: #fbbf24; }
|
||||
.promoter-item .item-icon-wrapper { color: #818cf8; }
|
||||
|
||||
.report-item {
|
||||
background: rgba(239, 68, 68, 0.05);
|
||||
color: #f87171;
|
||||
.report-link {
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
.nexus-sidebar-footer {
|
||||
padding: 24px;
|
||||
.sidebar-footer-plain {
|
||||
padding: 20px;
|
||||
border-top: 1px solid var(--border-color);
|
||||
background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
|
||||
background: var(--bg-primary);
|
||||
}
|
||||
|
||||
.auth-btn-nexus {
|
||||
padding: 16px;
|
||||
border-radius: 16px;
|
||||
.footer-btn {
|
||||
padding: 12px;
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
gap: 10px;
|
||||
font-weight: 800;
|
||||
font-size: 13px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
transition: all 0.4s;
|
||||
letter-spacing: 1px;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.auth-btn-nexus.login {
|
||||
.footer-btn.login {
|
||||
background: var(--active-color);
|
||||
color: #101820;
|
||||
box-shadow: 0 10px 20px rgba(254, 231, 21, 0.2);
|
||||
}
|
||||
|
||||
.auth-btn-nexus.logout {
|
||||
.footer-btn.logout {
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
color: #ef4444;
|
||||
border: 1px solid rgba(239, 68, 68, 0.2);
|
||||
border: 1px solid rgba(239, 68, 68, 0.1);
|
||||
}
|
||||
|
||||
.auth-btn-nexus.logout:hover {
|
||||
.footer-btn.logout:hover {
|
||||
background: #ef4444;
|
||||
color: white;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
|
||||
}
|
||||
|
||||
.nexus-version-tag {
|
||||
margin-top: 16px;
|
||||
.sibu-version-simple {
|
||||
margin-top: 12px;
|
||||
text-align: center;
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
color: var(--text-secondary);
|
||||
opacity: 0.5;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.menu-overlay {
|
||||
@ -495,40 +424,36 @@ const handleLogout = () => {
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background: rgba(15, 23, 42, 0.5);
|
||||
backdrop-filter: blur(8px);
|
||||
background: rgba(0,0,0,0.4);
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
/* Transitions */
|
||||
.menu-slide-enter-active,
|
||||
.menu-slide-leave-active {
|
||||
transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
transition: transform 0.3s ease-out;
|
||||
}
|
||||
|
||||
.menu-slide-enter-from,
|
||||
.menu-slide-leave-to {
|
||||
transform: translateX(-100%);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.menu-btn-custom {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 14px;
|
||||
border-radius: 12px;
|
||||
border: none;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
background: transparent;
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.3s;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.menu-btn-custom:hover {
|
||||
background: var(--active-bg);
|
||||
color: var(--active-color);
|
||||
transform: rotate(90deg);
|
||||
background: var(--hover-bg);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user