v0.5.14: шапка в одну строку, стенды — большие кнопки по центру

This commit is contained in:
2026-08-03 09:39:42 +04:00
parent d26f9a6818
commit da6e765af5
3 changed files with 55 additions and 40 deletions
+1 -1
View File
@@ -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):
+38 -24
View File
@@ -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);
}
+16 -15
View File
@@ -15,31 +15,32 @@
<img src="{{ url_for('static', filename='logo.svg') }}" alt="Nubes" class="logo" width="150" height="33">
<span class="badge badge-blue">polygon v{{ version }}</span>
<a href="/swagger" class="swagger-link">📋 Swagger</a>
</div>
<div class="header-status">
<span class="sep">·</span>
<span class="dot dot-green"></span>
<span class="status-text">Работает</span>
<span class="sep">·</span>
<span>Сервисов: <strong>{{ svc_count }}</strong></span>
<span class="header-stat">Сервисов: <strong>{{ svc_count }}</strong></span>
<span class="sep">·</span>
<span>Инстансов: <strong>{{ inst_count }}</strong></span>
<span class="header-stat">Инстансов: <strong>{{ inst_count }}</strong></span>
<span class="sep">·</span>
<span>Задержка: <strong>{{ delay }}s</strong></span>
<span class="header-stat">Задержка: <strong>{{ delay }}s</strong></span>
</div>
{% if stands_list|length > 1 %}
<div class="header-stands">
{% for s in stands_list %}
<a href="/{{ s.id }}/" class="stand-chip {% if s.id == current_stand %}stand-active{% endif %}">
<span class="stand-name">{{ s.id }}</span>
<span class="stand-count">{{ s.count }}</span>
</a>
{% endfor %}
</div>
{% endif %}
</header>
<main>
<!-- ── Стенды ── -->
{% if stands_list|length > 1 %}
<section class="stands-section">
{% for s in stands_list %}
<a href="/{{ s.id }}/" class="stand-card {% if s.id == current_stand %}stand-active{% endif %}">
<span class="stand-name">{{ s.id }}</span>
<span class="stand-count">{{ s.count }} сервисов</span>
</a>
{% endfor %}
</section>
{% endif %}
<!-- ── Что такое Polygon ── -->
<section class="card">
<div class="card-header">