v0.5.15: стенды в sticky-шапке, компактные карточки

This commit is contained in:
2026-08-03 09:47:01 +04:00
parent da6e765af5
commit ed31306d38
3 changed files with 29 additions and 34 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.14"
VERSION = "0.5.15"
def get_services(stand_id):
+18 -21
View File
@@ -83,50 +83,47 @@ body {
color: var(--brand-gray);
}
/* ── Stands section (centered big cards) ── */
.stands-section {
/* ── Header stands ── */
.header-stands {
display: flex;
justify-content: center;
gap: 16px;
padding: 32px 0 8px;
gap: 12px;
margin-top: 8px;
}
.stands-section .stand-card {
min-width: 160px;
padding: 20px 24px;
background: var(--bg);
.stand-card-sm {
display: flex;
flex-direction: column;
align-items: center;
padding: 8px 20px;
background: var(--brand-grey-light);
border: 2px solid var(--border);
border-radius: var(--radius);
border-radius: var(--radius-sm);
text-decoration: none;
text-align: center;
transition: all 0.15s;
}
.stands-section .stand-card:hover {
.stand-card-sm:hover {
border-color: var(--brand-primary);
box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}
.stands-section .stand-name {
display: block;
font-size: 24px;
.stand-card-sm .stand-name {
font-size: 15px;
font-weight: 800;
text-transform: uppercase;
color: var(--text);
margin-bottom: 4px;
}
.stands-section .stand-count {
font-size: 14px;
.stand-card-sm .stand-count {
font-size: 11px;
color: var(--text-muted);
}
.stands-section .stand-active {
.stand-active {
border-color: var(--brand-primary);
background: #eff6ff;
}
.stands-section .stand-active .stand-name {
.stand-active .stand-name {
color: var(--brand-primary);
}
+8 -10
View File
@@ -25,21 +25,19 @@
<span class="sep">·</span>
<span class="header-stat">Задержка: <strong>{{ delay }}s</strong></span>
</div>
</header>
<main>
<!-- ── Стенды ── -->
{% if stands_list|length > 1 %}
<section class="stands-section">
{% if stands_list|length > 1 %}
<div class="header-stands">
{% for s in stands_list %}
<a href="/{{ s.id }}/" class="stand-card {% if s.id == current_stand %}stand-active{% endif %}">
<a href="/{{ s.id }}/" class="stand-card-sm {% 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 %}
</div>
{% endif %}
</header>
<main>
<!-- ── Что такое Polygon ── -->
<section class="card">