diff --git a/site/config/loader.py b/site/config/loader.py index 6f1f370..30118d2 100644 --- a/site/config/loader.py +++ b/site/config/loader.py @@ -80,7 +80,7 @@ SERVICES = _DF["SERVICES"] OPS_INDEX = _DF["OPS_INDEX"] DELAY = float(os.getenv("MOCK_OP_DELAY", "0.1")) -VERSION = "0.5.13" +VERSION = "0.5.14" def get_services(stand_id): diff --git a/site/static/style.css b/site/static/style.css index 0773900..c16a5fc 100644 --- a/site/static/style.css +++ b/site/static/style.css @@ -38,7 +38,7 @@ body { .header { background: var(--bg); border-bottom: 4px solid var(--brand-primary); - padding: 16px 24px 12px; + padding: 12px 24px; position: sticky; top: 0; z-index: 100; @@ -47,8 +47,17 @@ body { .header-top { display: flex; align-items: center; - gap: 12px; - margin-bottom: 8px; + gap: 10px; + flex-wrap: wrap; +} + +.header-stat { + font-size: 13px; + color: var(--text-muted); +} + +.header-stat strong { + color: var(--text); } .logo { @@ -74,45 +83,50 @@ body { color: var(--brand-gray); } -/* ── Header stands chips ── */ -.header-stands { +/* ── Stands section (centered big cards) ── */ +.stands-section { display: flex; - gap: 8px; - margin-top: 8px; + justify-content: center; + gap: 16px; + padding: 32px 0 8px; } -.stand-chip { - display: flex; - align-items: center; - gap: 6px; - padding: 4px 14px; +.stands-section .stand-card { + min-width: 160px; + padding: 20px 24px; + background: var(--bg); border: 2px solid var(--border); - border-radius: 100px; + border-radius: var(--radius); text-decoration: none; - font-size: 13px; - font-weight: 600; - color: var(--text-muted); + text-align: center; transition: all 0.15s; } -.stand-chip:hover { +.stands-section .stand-card:hover { border-color: var(--brand-primary); - color: var(--brand-primary); + box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1); } -.stand-chip .stand-name { +.stands-section .stand-name { + display: block; + font-size: 24px; + font-weight: 800; text-transform: uppercase; - font-size: 12px; + color: var(--text); + margin-bottom: 4px; } -.stand-chip .stand-count { - font-size: 11px; - opacity: 0.7; +.stands-section .stand-count { + font-size: 14px; + color: var(--text-muted); } -.stand-active { +.stands-section .stand-active { border-color: var(--brand-primary); background: #eff6ff; +} + +.stands-section .stand-active .stand-name { color: var(--brand-primary); } diff --git a/site/templates/index.html b/site/templates/index.html index 829c513..3962c46 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -15,31 +15,32 @@ polygon v{{ version }} 📋 Swagger - -
+ · Работает · - Сервисов: {{ svc_count }} + Сервисов: {{ svc_count }} · - Инстансов: {{ inst_count }} + Инстансов: {{ inst_count }} · - Задержка: {{ delay }}s + Задержка: {{ delay }}s
- {% if stands_list|length > 1 %} -
- {% for s in stands_list %} - - {{ s.id }} - {{ s.count }} - - {% endfor %} -
- {% endif %}
+ +{% if stands_list|length > 1 %} +
+ {% for s in stands_list %} + + {{ s.id }} + {{ s.count }} сервисов + + {% endfor %} +
+{% endif %} +