feat(qr): add dynamic QR credential to user profile and global access icon next to theme button (v3.8.45)
This commit is contained in:
@@ -917,6 +917,67 @@
|
||||
transform: rotate(20deg) scale(1.18);
|
||||
}
|
||||
|
||||
/* --- BOTÓN DE CREDENCIAL QR JUNTO AL BOTÓN DE TEMA --- */
|
||||
.qr-credential-btn {
|
||||
border: 1px solid rgba(180, 62, 142, 0.2);
|
||||
background: rgba(180, 62, 142, 0.06);
|
||||
color: #B43E8E;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
width: 40px;
|
||||
height: 38px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
border-radius: 8px;
|
||||
}
|
||||
.qr-credential-btn:hover {
|
||||
background: rgba(180, 62, 142, 0.16);
|
||||
border-color: rgba(180, 62, 142, 0.4);
|
||||
color: #8C256B;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
[data-bs-theme="dark"] .qr-credential-btn {
|
||||
border-color: rgba(255, 255, 255, 0.12);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
color: #F1F5F9;
|
||||
}
|
||||
[data-bs-theme="dark"] .qr-credential-btn:hover {
|
||||
background: rgba(255, 138, 182, 0.18);
|
||||
border-color: rgba(255, 138, 182, 0.4);
|
||||
color: #FF8AB6;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.sidebar.collapsed .qr-credential-btn {
|
||||
width: 44px !important;
|
||||
height: 44px !important;
|
||||
padding: 0 !important;
|
||||
border-radius: 12px !important;
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
margin: 0 auto !important;
|
||||
}
|
||||
.sidebar.collapsed .theme-and-qr-container {
|
||||
flex-direction: column !important;
|
||||
align-items: center !important;
|
||||
gap: 6px !important;
|
||||
}
|
||||
.mobile-header .qr-credential-btn {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
@keyframes spinAround {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
.spin-animation {
|
||||
animation: spinAround 0.8s linear infinite;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/* =======================================================
|
||||
NAVEGACIÓN DEL SIDEBAR (UX/UI Premium & Calidad Industrial)
|
||||
======================================================= */
|
||||
@@ -1760,14 +1821,24 @@
|
||||
{% include 'partials/language_switcher.html' %}
|
||||
</div>
|
||||
|
||||
<!-- Botón de Tema: Situado abajo, directamente SOBRE el botón de usuario -->
|
||||
<div class="theme-toggle-container mb-2">
|
||||
<button class="theme-toggle-btn w-100 d-flex align-items-center justify-content-between px-3 py-2 border-0 rounded-3 shadow-none" type="button" aria-label="Cambiar tema" title="Modo Claro / Oscuro">
|
||||
<div class="d-flex align-items-center gap-2">
|
||||
<i class="bi bi-moon-stars-fill theme-icon fs-6"></i>
|
||||
<span class="sidebar-footer-text small fw-medium theme-label">Modo Claro</span>
|
||||
</div>
|
||||
<span class="sidebar-footer-text badge bg-secondary-subtle text-secondary-emphasis rounded-pill px-2 py-0" style="font-size:0.68rem;">Auto</span>
|
||||
<!-- Botón de Tema y Botón de Credencial QR: Situados abajo, directamente SOBRE el botón de usuario -->
|
||||
<div class="theme-and-qr-container d-flex align-items-center gap-2 mb-2">
|
||||
<div class="theme-toggle-container flex-grow-1">
|
||||
<button class="theme-toggle-btn w-100 d-flex align-items-center justify-content-between px-3 py-2 border-0 rounded-3 shadow-none" type="button" aria-label="Cambiar tema" title="Modo Claro / Oscuro">
|
||||
<div class="d-flex align-items-center gap-2">
|
||||
<i class="bi bi-moon-stars-fill theme-icon fs-6"></i>
|
||||
<span class="sidebar-footer-text small fw-medium theme-label">Modo Claro</span>
|
||||
</div>
|
||||
<span class="sidebar-footer-text badge bg-secondary-subtle text-secondary-emphasis rounded-pill px-2 py-0" style="font-size:0.68rem;">Auto</span>
|
||||
</button>
|
||||
</div>
|
||||
<button class="qr-credential-btn border-0 rounded-3 shadow-none"
|
||||
type="button"
|
||||
data-bs-toggle="modal"
|
||||
data-bs-target="#userQrCredentialModal"
|
||||
aria-label="Mi Credencial QR"
|
||||
title="Ver Mi Credencial Digital QR">
|
||||
<i class="bi bi-qr-code-scan fs-6"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -1795,6 +1866,12 @@
|
||||
</span>
|
||||
</div>
|
||||
<ul class="user-menu-list p-1 m-0 list-unstyled">
|
||||
<li>
|
||||
<a class="nav-link py-2 px-3 d-flex align-items-center rounded-2" href="#" data-bs-toggle="modal" data-bs-target="#userQrCredentialModal">
|
||||
<i class="bi bi-qr-code-scan text-primary me-2 fs-6"></i>
|
||||
<span>Mi Credencial QR</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="nav-link py-2 px-3 d-flex align-items-center rounded-2" href="/auth/profile">
|
||||
<i class="bi bi-person text-primary me-2 fs-6"></i>
|
||||
@@ -1840,6 +1917,9 @@
|
||||
<span class="brand-text fw-bold fs-6">Edu-Space</span>
|
||||
</a>
|
||||
<div class="d-flex align-items-center gap-2">
|
||||
<button class="qr-credential-btn" type="button" data-bs-toggle="modal" data-bs-target="#userQrCredentialModal" aria-label="Mi Credencial QR" title="Mi Credencial Digital QR">
|
||||
<i class="bi bi-qr-code-scan"></i>
|
||||
</button>
|
||||
<button class="theme-toggle-btn" type="button" aria-label="Cambiar tema" title="Modo Claro/Oscuro">
|
||||
<i class="bi bi-moon-stars-fill"></i>
|
||||
</button>
|
||||
@@ -2189,6 +2269,7 @@
|
||||
<script src="/js/walkthrough-engine.js"></script>
|
||||
{% if auth_user and auth_user.is_authenticated %}
|
||||
{% include "partials/ai_chat_widget.html" %}
|
||||
{% include "partials/user_qr_modal.html" %}
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user