update navigation links, enhance NFC data display, and improve MQTT connection handling

This commit is contained in:
2025-02-13 12:59:43 +01:00
parent be0a23e736
commit d46d5e14d2
6 changed files with 38 additions and 22 deletions

View File

@ -20,7 +20,7 @@
<a href="/">Start</a>
<a href="/waage">Scale</a>
<a href="/spoolman">Spoolman/Bambu</a>
<a href="/rfid">RFID</a>
<a href="/">About</a>
</nav>
<div class="status-container">
<div class="status-item">

View File

@ -448,7 +448,7 @@ function updateNfcData(data) {
// HTML für die Datenanzeige erstellen
let html = `
<div style="margin-top: 10px;">
<div class="nfc-card-data" style="margin-top: 10px;">
<p><strong>Brand:</strong> ${data.brand || 'N/A'}</p>
<p><strong>Type:</strong> ${data.type || 'N/A'} ${data.color_hex ? `<span style="
background-color: #${data.color_hex};

View File

@ -255,7 +255,7 @@ button:hover {
p {
font-size: 1rem;
color: #555;
color: #ffffff;
}
a {
@ -325,6 +325,13 @@ a:hover {
margin-top: 10px;
}
.nfc-card-data {
padding-left: 20px !important;
color: white !important;
font-weight: bold !important;
margin: 0 auto !important;
}
.nfc-success {
color: green;
}