From cfcb77407f280672cdb1c1292576fd90f2a075b3 Mon Sep 17 00:00:00 2001 From: cas Date: Fri, 24 Jul 2026 19:36:48 +0200 Subject: [PATCH] chore: sync docker/index.html met glucose feature --- docker/index.html | 314 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 314 insertions(+) diff --git a/docker/index.html b/docker/index.html index 79bba48..33b64d6 100644 --- a/docker/index.html +++ b/docker/index.html @@ -465,6 +465,161 @@ body { background: var(--progress-red); } +/* ===== Glucose Section ===== */ +.glucose-section { + background: var(--white); + border-radius: var(--radius); + box-shadow: var(--shadow-sm); + padding: 14px 16px; + margin-bottom: 10px; +} + +.glucose-header { + display: flex; + align-items: center; + gap: 8px; + margin-bottom: 12px; +} + +.glucose-icon { + font-size: 1.1rem; + color: var(--progress-red); +} + +.glucose-title { + font-weight: 700; + font-size: var(--font-md); + color: var(--text); +} + +.glucose-unit-label { + font-size: var(--font-xs); + color: var(--text-muted); + margin-left: 2px; +} + +/* Grid: 4 columns on wide, 2×2 on narrow */ +.glucose-grid { + display: grid; + grid-template-columns: repeat(4, 1fr); + gap: 8px; +} + +@media (max-width: 480px) { + .glucose-grid { + grid-template-columns: repeat(2, 1fr); + } +} + +.glucose-item { + background: var(--bg); + border-radius: var(--radius-sm); + padding: 10px 8px; + text-align: center; + border: 1px solid var(--border); + transition: border-color 0.2s, background 0.2s; +} + +.glucose-item.glucose-good { + border-color: #28a745; + background: #f0fdf4; +} + +.glucose-item.glucose-bad { + border-color: var(--progress-red); + background: #fef2f2; +} + +.glucose-item.glucose-empty { + border-color: var(--border); + background: var(--bg); +} + +.glucose-item-label { + font-size: var(--font-xs); + font-weight: 600; + color: var(--text-secondary); + margin-bottom: 2px; + line-height: 1.3; +} + +.glucose-item-range { + font-size: 0.65rem; + color: var(--text-muted); + margin-bottom: 8px; +} + +.glucose-input-wrapper { + display: flex; + align-items: center; + justify-content: center; + gap: 2px; + margin-bottom: 6px; +} + +.glucose-input { + width: 58px; + padding: 4px 4px; + border: 2px solid var(--border); + border-radius: var(--radius-xs); + font-size: var(--font-md); + font-weight: 600; + text-align: center; + background: var(--white); + color: var(--text); + transition: border-color 0.2s, box-shadow 0.2s; + outline: none; + /* Hide spinners */ + -moz-appearance: textfield; +} + +.glucose-input::-webkit-outer-spin-button, +.glucose-input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + +.glucose-input:focus { + border-color: var(--accent); + box-shadow: 0 0 0 3px rgba(250,232,146,0.25); +} + +.glucose-unit { + font-size: var(--font-xs); + color: var(--text-muted); +} + +.glucose-status { + display: flex; + align-items: center; + justify-content: center; + gap: 3px; + font-size: var(--font-xs); + line-height: 1.2; + min-height: 20px; +} + +.glucose-status-icon { + font-size: 0.85rem; +} + +.glucose-status-text { + font-size: 0.65rem; + font-weight: 500; +} + +.glucose-good .glucose-status-text { + color: #15803d; +} + +.glucose-bad .glucose-status-text { + color: var(--progress-red); +} + +.glucose-empty .glucose-status-text { + color: var(--text-muted); +} + /* Warning text */ .carb-warning { display: none; @@ -2103,6 +2258,16 @@ button:active, .btn:active, .meal-card-main:active, .dagboek-item:active, .food-
+ +
+
+ + Glucose + mmol/L +
+
+
+