copia actualizada de sandisk

This commit is contained in:
2026-09-14 20:05:45 +02:00
parent 51d07f85c0
commit a34e3768fc
17 changed files with 1208 additions and 16 deletions
+21 -4
View File
@@ -701,13 +701,21 @@
{% if session.pop("animate_navbar", None) %}
class="animate__animated animate__backInUp"
{% endif %}>
<div style="
padding: 10px 5px 5px;
margin-bottom: 20px;">
<img
id="siteLogo"
src="{{ url_for('static', filename='img/logo.png') }}"
alt="Logo"
style="max-width:160px; width:100%; height:auto;">
</div>
<div style="padding: 0 8px 20px; text-align:center;">
<!-- <div style="padding: 0 8px 20px; text-align:center;">
<img src="{{ url_for('static', filename='img/logo.png') }}"
alt="Logo"
style="max-width:160px; width:100%; height:auto;">
</div>
</div> -->
<div class="nav-logo">
<span></span>PyFleet
@@ -857,7 +865,16 @@
function applyTheme(theme) {
html.setAttribute('data-theme', theme);
localStorage.setItem('nexus-theme', theme);
}
var logo = document.getElementById('siteLogo');
if (theme === 'dark') {
logo.src = "{{ url_for('static', filename='img/logo_blanco.png') }}";
} else {
logo.src = "{{ url_for('static', filename='img/logo.png') }}";
}
}
// Sync button state on load
applyTheme(localStorage.getItem('nexus-theme') || 'light');