mirror of
https://github.com/wasrusgen/zov-tech.git
synced 2026-06-03 17:04:48 +00:00
feat(miniapp): hybrid Architectural Clean design — Inter + Instrument Serif italic + JetBrains Mono, paper palette, ZOV accents
This commit is contained in:
parent
6fadc11163
commit
d7bd0aa5c2
@ -67,9 +67,9 @@ function el(html) {
|
|||||||
|
|
||||||
function statusLabel(s) {
|
function statusLabel(s) {
|
||||||
return ({
|
return ({
|
||||||
active: "Доступ открыт",
|
active: "Активен",
|
||||||
lapsed: "Доступ ограничен",
|
lapsed: "Ограничен",
|
||||||
grace: "Грейс-период",
|
grace: "Грейс",
|
||||||
})[s] || s;
|
})[s] || s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,20 +82,27 @@ function renderManager(me) {
|
|||||||
const status = me.status || "active";
|
const status = me.status || "active";
|
||||||
const statusUntil = me.status_until ? `до ${me.status_until}` : "";
|
const statusUntil = me.status_until ? `до ${me.status_until}` : "";
|
||||||
const initial = me.user?.avatar_initial || getInitial(me.user?.full_name);
|
const initial = me.user?.avatar_initial || getInitial(me.user?.full_name);
|
||||||
|
const tgId = me.user?.tg_id ? `ID ${me.user.tg_id}` : "";
|
||||||
|
|
||||||
app.innerHTML = "";
|
app.innerHTML = "";
|
||||||
|
|
||||||
app.appendChild(el(`
|
app.appendChild(el(`
|
||||||
<header class="profile-card">
|
<header class="profile-card">
|
||||||
<div class="avatar">${initial}</div>
|
|
||||||
<div class="info">
|
|
||||||
<div class="role-tag">Менеджер</div>
|
<div class="role-tag">Менеджер</div>
|
||||||
|
<div class="head-row">
|
||||||
|
<div class="info">
|
||||||
<div class="name">${me.user?.full_name || ""}</div>
|
<div class="name">${me.user?.full_name || ""}</div>
|
||||||
<div class="meta">${me.user?.salon || ""}</div>
|
<div class="meta">${me.user?.salon || ""}</div>
|
||||||
|
</div>
|
||||||
|
<div class="avatar">${initial}</div>
|
||||||
|
</div>
|
||||||
|
<div class="meta-row">
|
||||||
<span class="status-row">
|
<span class="status-row">
|
||||||
<span class="status-dot ${status}"></span>
|
<span class="status-dot ${status}"></span>
|
||||||
<span>${statusLabel(status)}${statusUntil ? " · " + statusUntil : ""}</span>
|
<span>${statusLabel(status)}</span>
|
||||||
</span>
|
</span>
|
||||||
|
${statusUntil ? `<span class="sep">·</span><span>${statusUntil}</span>` : ""}
|
||||||
|
${tgId ? `<span class="sep">·</span><span>${tgId}</span>` : ""}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
`));
|
`));
|
||||||
@ -126,8 +133,10 @@ function renderManager(me) {
|
|||||||
|
|
||||||
app.appendChild(el(`
|
app.appendChild(el(`
|
||||||
<div class="footer-hint">
|
<div class="footer-hint">
|
||||||
Куратор партнёрской сети — Руслан Васильев<br>
|
<div class="signature">Куратор партнёрской сети — Руслан Васильев</div>
|
||||||
<a href="https://t.me/wasrusgen">@wasrusgen</a>
|
<div class="meta">
|
||||||
|
<a href="https://t.me/wasrusgen">@wasrusgen</a> · ЗОВ
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`));
|
`));
|
||||||
}
|
}
|
||||||
@ -140,12 +149,14 @@ function renderClient(me) {
|
|||||||
|
|
||||||
app.appendChild(el(`
|
app.appendChild(el(`
|
||||||
<header class="profile-card">
|
<header class="profile-card">
|
||||||
<div class="avatar">${initial}</div>
|
|
||||||
<div class="info">
|
|
||||||
<div class="role-tag">Клиент</div>
|
<div class="role-tag">Клиент</div>
|
||||||
|
<div class="head-row">
|
||||||
|
<div class="info">
|
||||||
<div class="name">${greetName}</div>
|
<div class="name">${greetName}</div>
|
||||||
<div class="meta">${me.manager ? "Менеджер: " + me.manager.full_name + (me.manager.salon ? ", " + me.manager.salon : "") : "ЗОВ — кухонная мебель"}</div>
|
<div class="meta">${me.manager ? "Менеджер: " + me.manager.full_name + (me.manager.salon ? ", " + me.manager.salon : "") : "ЗОВ — кухонная мебель"}</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="avatar">${initial}</div>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
`));
|
`));
|
||||||
|
|
||||||
@ -175,9 +186,11 @@ function renderClient(me) {
|
|||||||
|
|
||||||
app.appendChild(el(`
|
app.appendChild(el(`
|
||||||
<div class="footer-hint">
|
<div class="footer-hint">
|
||||||
Фабрика кухонной мебели <strong>ЗОВ</strong><br>
|
<div class="signature">Фабрика кухонной мебели «ЗОВ»</div>
|
||||||
|
<div class="meta">
|
||||||
<a href="https://t.me/wasrusgen1">канал @wasrusgen1</a>
|
<a href="https://t.me/wasrusgen1">канал @wasrusgen1</a>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
`));
|
`));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,84 +1,90 @@
|
|||||||
/* ============================================================
|
/* ============================================================
|
||||||
ЗОВ MiniApp — design system v2
|
ЗОВ MiniApp — design system v3 ("Architectural Clean")
|
||||||
|
Гибрид Architectural Clean (Claude.ai Frontend Design)
|
||||||
|
+ бренд-палитра ЗОВ + редакторская типографика
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
/* Brand */
|
/* ====== Brand ====== */
|
||||||
--brand-green: #76BD22;
|
--zov-blue: #003E7E;
|
||||||
--brand-green-dark: #5FA316;
|
--zov-green: #76BD22;
|
||||||
--brand-blue: #003E7E;
|
--zov-warning: #C0392B;
|
||||||
--brand-blue-dark: #002952;
|
|
||||||
--brand-cream: #FAF8F3;
|
|
||||||
--brand-gold: #C9A95E;
|
|
||||||
|
|
||||||
/* Neutral palette adapts to Telegram theme */
|
/* ====== Paper palette (ВАРИАНТ A — светлая «бумага») ====== */
|
||||||
--bg: var(--tg-theme-bg-color, #FFFFFF);
|
--paper: var(--tg-theme-bg-color, #FAFAF7);
|
||||||
--bg-secondary: var(--tg-theme-secondary-bg-color, #F4F4F5);
|
--paper-2: var(--tg-theme-secondary-bg-color, #F0EDE5);
|
||||||
--bg-section: var(--tg-theme-section-bg-color, #FFFFFF);
|
--card: var(--tg-theme-section-bg-color, #FFFFFF);
|
||||||
--text: var(--tg-theme-text-color, #0F0F0F);
|
--ink: var(--tg-theme-text-color, #0F0F0E);
|
||||||
--text-muted: var(--tg-theme-hint-color, #707579);
|
--ink-2: #2A2622;
|
||||||
--text-section: var(--tg-theme-section-header-text-color, #707579);
|
--muted: var(--tg-theme-hint-color, #6E6A62);
|
||||||
--link: var(--tg-theme-link-color, #003E7E);
|
--muted-2: #A09C92;
|
||||||
--line: rgba(0, 0, 0, 0.08);
|
--line: rgba(15, 15, 14, 0.08);
|
||||||
|
--line-strong: rgba(15, 15, 14, 0.16);
|
||||||
|
|
||||||
/* Status */
|
/* ====== Status ====== */
|
||||||
--status-active: #76BD22;
|
--status-active: var(--zov-green);
|
||||||
--status-active-bg: #EEF7E0;
|
--status-active-bg: rgba(118, 189, 34, 0.10);
|
||||||
--status-lapsed: #DC2626;
|
--status-lapsed: var(--zov-warning);
|
||||||
--status-lapsed-bg: #FEE2E2;
|
--status-lapsed-bg: rgba(192, 57, 43, 0.08);
|
||||||
--status-grace: #D97706;
|
--status-grace: #B07E00;
|
||||||
--status-grace-bg: #FEF3C7;
|
--status-grace-bg: rgba(176, 126, 0, 0.08);
|
||||||
|
|
||||||
/* Shadows */
|
/* ====== Radii (architectural — небольшие скругления) ====== */
|
||||||
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
|
--r-tag: 4px;
|
||||||
--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
|
--r-btn: 12px;
|
||||||
--shadow-lg: 0 8px 32px rgba(0, 62, 126, 0.18);
|
--r-card: 14px;
|
||||||
|
--r-pill: 999px;
|
||||||
|
|
||||||
/* Radii */
|
/* ====== Spacing ====== */
|
||||||
--r-sm: 8px;
|
|
||||||
--r-md: 12px;
|
|
||||||
--r-lg: 16px;
|
|
||||||
--r-xl: 20px;
|
|
||||||
|
|
||||||
/* Spacing */
|
|
||||||
--s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
|
--s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
|
||||||
--s5: 20px; --s6: 24px; --s7: 28px; --s8: 32px;
|
--s5: 20px; --s6: 24px; --s7: 32px; --s8: 40px;
|
||||||
|
|
||||||
/* Type */
|
/* ====== Type ====== */
|
||||||
--font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
--font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
|
||||||
|
--font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
|
||||||
|
--font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Dark theme overrides */
|
/* ====== Dark theme ====== */
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
:root {
|
:root {
|
||||||
--line: rgba(255, 255, 255, 0.10);
|
--paper: var(--tg-theme-bg-color, #16140F);
|
||||||
--status-active-bg: rgba(118, 189, 34, 0.15);
|
--paper-2: var(--tg-theme-secondary-bg-color, #1F1C16);
|
||||||
--status-lapsed-bg: rgba(220, 38, 38, 0.15);
|
--card: var(--tg-theme-section-bg-color, #1A1813);
|
||||||
--status-grace-bg: rgba(217, 119, 6, 0.15);
|
--ink: var(--tg-theme-text-color, #F2EFE8);
|
||||||
--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
|
--ink-2: #D6D2C7;
|
||||||
|
--muted: var(--tg-theme-hint-color, #94918A);
|
||||||
|
--muted-2: #6B6862;
|
||||||
|
--line: rgba(255, 255, 255, 0.07);
|
||||||
|
--line-strong: rgba(255, 255, 255, 0.14);
|
||||||
|
--status-active-bg: rgba(118, 189, 34, 0.18);
|
||||||
|
--status-lapsed-bg: rgba(220, 38, 38, 0.18);
|
||||||
|
--status-grace-bg: rgba(217, 119, 6, 0.18);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ============================================================
|
/* ============================================================
|
||||||
Reset
|
Reset
|
||||||
============================================================ */
|
============================================================ */
|
||||||
* { box-sizing: border-box; }
|
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
|
||||||
* { -webkit-tap-highlight-color: transparent; }
|
|
||||||
html, body { margin: 0; padding: 0; }
|
html, body { margin: 0; padding: 0; }
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: var(--font-body);
|
font-family: var(--font-ui);
|
||||||
font-size: 16px;
|
font-size: 15px;
|
||||||
line-height: 1.4;
|
font-weight: 400;
|
||||||
color: var(--text);
|
line-height: 1.45;
|
||||||
background: var(--bg-secondary);
|
letter-spacing: -0.01em;
|
||||||
|
color: var(--ink);
|
||||||
|
background: var(--paper);
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
|
font-feature-settings: "ss01", "cv01", "cv11";
|
||||||
}
|
}
|
||||||
|
|
||||||
a { color: inherit; text-decoration: none; }
|
a { color: inherit; text-decoration: none; }
|
||||||
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
|
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
|
||||||
|
|
||||||
/* ============================================================
|
/* ============================================================
|
||||||
Layout
|
Layout
|
||||||
@ -86,8 +92,7 @@ button { font: inherit; cursor: pointer; border: none; background: none; color:
|
|||||||
#app {
|
#app {
|
||||||
max-width: 560px;
|
max-width: 560px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: var(--s4);
|
padding: var(--s5) var(--s4) calc(var(--s8) + env(safe-area-inset-bottom));
|
||||||
padding-bottom: calc(var(--s8) + env(safe-area-inset-bottom));
|
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,163 +106,190 @@ button { font: inherit; cursor: pointer; border: none; background: none; color:
|
|||||||
}
|
}
|
||||||
|
|
||||||
.spinner {
|
.spinner {
|
||||||
width: 36px;
|
width: 32px;
|
||||||
height: 36px;
|
height: 32px;
|
||||||
border: 3px solid var(--line);
|
border: 1.5px solid var(--line-strong);
|
||||||
border-top-color: var(--brand-blue);
|
border-top-color: var(--zov-blue);
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
animation: spin 0.7s linear infinite;
|
animation: spin 0.7s linear infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes spin {
|
@keyframes spin { to { transform: rotate(360deg); } }
|
||||||
to { transform: rotate(360deg); }
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ============================================================
|
/* ============================================================
|
||||||
Profile card (header)
|
Profile card (header) — editorial premium
|
||||||
============================================================ */
|
============================================================ */
|
||||||
.profile-card {
|
.profile-card {
|
||||||
background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
|
background: var(--card);
|
||||||
color: #FFFFFF;
|
border: 1px solid var(--line);
|
||||||
border-radius: var(--r-lg);
|
border-radius: var(--r-card);
|
||||||
padding: var(--s5);
|
padding: var(--s6) var(--s5) var(--s5);
|
||||||
margin-bottom: var(--s5);
|
margin-bottom: var(--s7);
|
||||||
box-shadow: var(--shadow-lg);
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: var(--s4);
|
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Тонкая брендовая «лента» сверху карточки */
|
||||||
.profile-card::before {
|
.profile-card::before {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: -40px;
|
top: 0;
|
||||||
top: -40px;
|
left: 0;
|
||||||
width: 160px;
|
right: 0;
|
||||||
height: 160px;
|
height: 3px;
|
||||||
background: var(--brand-green);
|
background: linear-gradient(90deg, var(--zov-blue) 0%, var(--zov-green) 100%);
|
||||||
opacity: 0.18;
|
|
||||||
border-radius: 50%;
|
|
||||||
filter: blur(8px);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-card::after {
|
.profile-card .role-tag {
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 500;
|
||||||
|
letter-spacing: 0.12em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--muted);
|
||||||
|
margin-bottom: var(--s2);
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: var(--s2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile-card .role-tag::after {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
display: inline-block;
|
||||||
right: 16px;
|
width: 24px;
|
||||||
bottom: -20px;
|
height: 1px;
|
||||||
width: 80px;
|
background: var(--line-strong);
|
||||||
height: 80px;
|
vertical-align: middle;
|
||||||
background: var(--brand-gold);
|
|
||||||
opacity: 0.12;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-card .avatar {
|
.profile-card .head-row {
|
||||||
width: 56px;
|
display: flex;
|
||||||
height: 56px;
|
align-items: flex-start;
|
||||||
border-radius: 50%;
|
gap: var(--s4);
|
||||||
background: rgba(255, 255, 255, 0.15);
|
margin-bottom: var(--s4);
|
||||||
backdrop-filter: blur(8px);
|
|
||||||
display: grid;
|
|
||||||
place-items: center;
|
|
||||||
flex-shrink: 0;
|
|
||||||
font-size: 24px;
|
|
||||||
font-weight: 600;
|
|
||||||
color: #FFFFFF;
|
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-card .info {
|
.profile-card .info {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.profile-card .role-tag {
|
|
||||||
font-size: 11px;
|
|
||||||
font-weight: 600;
|
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: 0.08em;
|
|
||||||
opacity: 0.7;
|
|
||||||
margin-bottom: 2px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-card .name {
|
.profile-card .name {
|
||||||
font-size: 19px;
|
font-family: var(--font-display);
|
||||||
font-weight: 600;
|
font-style: italic;
|
||||||
letter-spacing: -0.01em;
|
font-size: 30px;
|
||||||
white-space: nowrap;
|
font-weight: 400;
|
||||||
overflow: hidden;
|
line-height: 1.05;
|
||||||
text-overflow: ellipsis;
|
letter-spacing: -0.02em;
|
||||||
|
color: var(--ink);
|
||||||
|
margin-bottom: var(--s2);
|
||||||
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-card .meta {
|
.profile-card .meta {
|
||||||
font-size: 13px;
|
font-size: 14px;
|
||||||
opacity: 0.85;
|
color: var(--ink-2);
|
||||||
margin-top: 2px;
|
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.profile-card .avatar {
|
||||||
|
width: 52px;
|
||||||
|
height: 52px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: var(--paper-2);
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 26px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: var(--zov-blue);
|
||||||
|
border: 1px solid var(--line-strong);
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile-card .meta-row {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: center;
|
||||||
|
gap: var(--s2);
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 500;
|
||||||
|
letter-spacing: 0.08em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--muted);
|
||||||
|
margin-top: var(--s4);
|
||||||
|
padding-top: var(--s4);
|
||||||
|
border-top: 1px solid var(--line);
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile-card .meta-row .sep { color: var(--muted-2); }
|
||||||
|
|
||||||
.profile-card .status-row {
|
.profile-card .status-row {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 6px;
|
gap: var(--s2);
|
||||||
margin-top: var(--s2);
|
|
||||||
padding: 4px 10px 4px 6px;
|
|
||||||
background: rgba(255, 255, 255, 0.15);
|
|
||||||
backdrop-filter: blur(8px);
|
|
||||||
border-radius: 999px;
|
|
||||||
font-size: 12px;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-card .status-dot {
|
.profile-card .status-dot {
|
||||||
width: 8px;
|
width: 7px;
|
||||||
height: 8px;
|
height: 7px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: var(--brand-green);
|
background: var(--zov-green);
|
||||||
box-shadow: 0 0 0 3px rgba(118, 189, 34, 0.4);
|
box-shadow: 0 0 0 3px rgba(118, 189, 34, 0.18);
|
||||||
animation: pulse 2s ease-in-out infinite;
|
animation: pulse 2.5s ease-in-out infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes pulse {
|
@keyframes pulse {
|
||||||
0%, 100% { box-shadow: 0 0 0 3px rgba(118, 189, 34, 0.4); }
|
0%, 100% { box-shadow: 0 0 0 3px rgba(118, 189, 34, 0.18); }
|
||||||
50% { box-shadow: 0 0 0 6px rgba(118, 189, 34, 0.0); }
|
50% { box-shadow: 0 0 0 6px rgba(118, 189, 34, 0); }
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-card .status-dot.lapsed { background: #FCA5A5; box-shadow: 0 0 0 3px rgba(252, 165, 165, 0.4); animation: none; }
|
.profile-card .status-dot.lapsed {
|
||||||
.profile-card .status-dot.grace { background: #FCD34D; box-shadow: 0 0 0 3px rgba(252, 211, 77, 0.4); }
|
background: var(--zov-warning);
|
||||||
|
box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.20);
|
||||||
|
animation: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.profile-card .status-dot.grace {
|
||||||
|
background: var(--status-grace);
|
||||||
|
box-shadow: 0 0 0 3px rgba(176, 126, 0, 0.20);
|
||||||
|
}
|
||||||
|
|
||||||
/* ============================================================
|
/* ============================================================
|
||||||
Section label
|
Section label
|
||||||
============================================================ */
|
============================================================ */
|
||||||
.section-label {
|
.section-label {
|
||||||
font-size: 12px;
|
font-family: var(--font-mono);
|
||||||
font-weight: 600;
|
font-size: 11px;
|
||||||
|
font-weight: 500;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.06em;
|
letter-spacing: 0.14em;
|
||||||
color: var(--text-section);
|
color: var(--muted);
|
||||||
padding: 0 var(--s4) var(--s2);
|
padding: 0 var(--s4);
|
||||||
margin-top: var(--s5);
|
margin: var(--s7) 0 var(--s3);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: var(--s3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-label::after {
|
||||||
|
content: "";
|
||||||
|
flex: 1;
|
||||||
|
height: 1px;
|
||||||
|
background: var(--line);
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-label:first-child { margin-top: 0; }
|
.section-label:first-child { margin-top: 0; }
|
||||||
|
|
||||||
/* ============================================================
|
/* ============================================================
|
||||||
Menu (grouped list)
|
Menu (grouped list — minimal architectural)
|
||||||
============================================================ */
|
============================================================ */
|
||||||
.menu {
|
.menu {
|
||||||
background: var(--bg-section);
|
background: var(--card);
|
||||||
border-radius: var(--r-md);
|
border: 1px solid var(--line);
|
||||||
|
border-radius: var(--r-card);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow: var(--shadow-sm);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu + .menu { margin-top: var(--s4); }
|
.menu + .menu { margin-top: var(--s4); }
|
||||||
@ -265,12 +297,12 @@ button { font: inherit; cursor: pointer; border: none; background: none; color:
|
|||||||
.menu-item {
|
.menu-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: var(--s3);
|
gap: var(--s4);
|
||||||
padding: var(--s3) var(--s4);
|
padding: var(--s4) var(--s5);
|
||||||
min-height: 64px;
|
min-height: 64px;
|
||||||
color: var(--text);
|
color: var(--ink);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background 0.15s;
|
transition: background 0.12s;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -278,44 +310,33 @@ button { font: inherit; cursor: pointer; border: none; background: none; color:
|
|||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 64px;
|
left: var(--s5);
|
||||||
right: 0;
|
right: 0;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
background: var(--line);
|
background: var(--line);
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-item:active {
|
.menu-item:active { background: var(--paper-2); }
|
||||||
background: var(--bg-secondary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-item .icon {
|
.menu-item .icon {
|
||||||
width: 36px;
|
width: 32px;
|
||||||
height: 36px;
|
height: 32px;
|
||||||
border-radius: 9px;
|
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
color: var(--ink);
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-item .icon svg {
|
.menu-item .icon svg {
|
||||||
width: 20px;
|
width: 22px;
|
||||||
height: 20px;
|
height: 22px;
|
||||||
stroke-width: 2;
|
stroke-width: 1.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Icon variants */
|
/* Тонкие цветовые акценты для ключевых разделов — без «таблеток» */
|
||||||
.menu-item .icon.green { background: #EEF7E0; color: #5FA316; }
|
.menu-item .icon.green { color: var(--zov-green); }
|
||||||
.menu-item .icon.blue { background: #E5EDF5; color: #003E7E; }
|
.menu-item .icon.blue { color: var(--zov-blue); }
|
||||||
.menu-item .icon.gold { background: #FAF1DC; color: #BF8A2E; }
|
.menu-item .icon.gold { color: var(--status-grace); }
|
||||||
.menu-item .icon.gray { background: var(--bg-secondary); color: var(--text-muted); }
|
|
||||||
.menu-item .icon.red { background: #FEE2E2; color: #DC2626; }
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
.menu-item .icon.green { background: rgba(118, 189, 34, 0.15); color: #A4D85F; }
|
|
||||||
.menu-item .icon.blue { background: rgba(0, 62, 126, 0.25); color: #6FA0D6; }
|
|
||||||
.menu-item .icon.gold { background: rgba(201, 169, 94, 0.15); color: #E0C079; }
|
|
||||||
.menu-item .icon.red { background: rgba(220, 38, 38, 0.15); color: #F87171; }
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-item .text {
|
.menu-item .text {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@ -323,7 +344,8 @@ button { font: inherit; cursor: pointer; border: none; background: none; color:
|
|||||||
}
|
}
|
||||||
|
|
||||||
.menu-item .label {
|
.menu-item .label {
|
||||||
font-size: 15.5px;
|
font-family: var(--font-ui);
|
||||||
|
font-size: 15px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
letter-spacing: -0.01em;
|
letter-spacing: -0.01em;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -332,67 +354,90 @@ button { font: inherit; cursor: pointer; border: none; background: none; color:
|
|||||||
}
|
}
|
||||||
|
|
||||||
.menu-item .sub {
|
.menu-item .sub {
|
||||||
font-size: 13px;
|
font-family: var(--font-mono);
|
||||||
color: var(--text-muted);
|
font-size: 11px;
|
||||||
margin-top: 2px;
|
font-weight: 400;
|
||||||
|
letter-spacing: 0.06em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--muted);
|
||||||
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-item .chevron {
|
.menu-item .chevron {
|
||||||
color: var(--text-muted);
|
color: var(--muted-2);
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
opacity: 0.5;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-item.disabled {
|
.menu-item .chevron svg { width: 18px; height: 18px; }
|
||||||
cursor: not-allowed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
.menu-item.disabled { cursor: not-allowed; }
|
||||||
.menu-item.disabled .label,
|
.menu-item.disabled .label,
|
||||||
.menu-item.disabled .icon {
|
.menu-item.disabled .icon { color: var(--muted-2); }
|
||||||
opacity: 0.45;
|
|
||||||
}
|
|
||||||
|
|
||||||
.badge {
|
.badge {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: 10px;
|
font-family: var(--font-mono);
|
||||||
font-weight: 700;
|
font-size: 9.5px;
|
||||||
|
font-weight: 500;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.06em;
|
letter-spacing: 0.1em;
|
||||||
padding: 2px 7px;
|
padding: 2px 8px;
|
||||||
border-radius: 999px;
|
border-radius: var(--r-tag);
|
||||||
background: var(--bg-secondary);
|
background: var(--paper-2);
|
||||||
color: var(--text-muted);
|
color: var(--muted);
|
||||||
vertical-align: 1px;
|
vertical-align: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ============================================================
|
/* ============================================================
|
||||||
Footer hint
|
Footer hint — editorial signature
|
||||||
============================================================ */
|
============================================================ */
|
||||||
.footer-hint {
|
.footer-hint {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 12px;
|
margin-top: var(--s8);
|
||||||
color: var(--text-muted);
|
padding: var(--s5) var(--s4) 0;
|
||||||
margin-top: var(--s6);
|
border-top: 1px solid var(--line);
|
||||||
padding: 0 var(--s4);
|
|
||||||
line-height: 1.5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-hint a { color: var(--link); }
|
.footer-hint .signature {
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 16px;
|
||||||
|
color: var(--ink-2);
|
||||||
|
margin-bottom: var(--s2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-hint .meta {
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 11px;
|
||||||
|
letter-spacing: 0.1em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-hint a { color: var(--zov-blue); }
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
.footer-hint a { color: #6FA0D6; }
|
||||||
|
}
|
||||||
|
|
||||||
/* ============================================================
|
/* ============================================================
|
||||||
Error state
|
Error state
|
||||||
============================================================ */
|
============================================================ */
|
||||||
.error {
|
.error {
|
||||||
background: var(--bg-section);
|
background: var(--card);
|
||||||
border-radius: var(--r-md);
|
border: 1px solid var(--line);
|
||||||
padding: var(--s5);
|
border-radius: var(--r-card);
|
||||||
|
padding: var(--s7) var(--s5);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: var(--text-muted);
|
color: var(--muted);
|
||||||
box-shadow: var(--shadow-sm);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.error h3 {
|
.error h3 {
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 22px;
|
||||||
|
font-weight: 400;
|
||||||
margin: 0 0 var(--s2);
|
margin: 0 0 var(--s2);
|
||||||
color: var(--text);
|
color: var(--ink);
|
||||||
font-size: 17px;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,8 +8,11 @@
|
|||||||
<meta http-equiv="Pragma" content="no-cache">
|
<meta http-equiv="Pragma" content="no-cache">
|
||||||
<meta http-equiv="Expires" content="0">
|
<meta http-equiv="Expires" content="0">
|
||||||
<title>ЗОВ — Кабинет</title>
|
<title>ЗОВ — Кабинет</title>
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap">
|
||||||
<script src="https://telegram.org/js/telegram-web-app.js"></script>
|
<script src="https://telegram.org/js/telegram-web-app.js"></script>
|
||||||
<link rel="stylesheet" href="assets/styles.css?v=20260509b">
|
<link rel="stylesheet" href="assets/styles.css?v=20260509c">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main id="app">
|
<main id="app">
|
||||||
@ -17,7 +20,7 @@
|
|||||||
<div class="spinner"></div>
|
<div class="spinner"></div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
<script src="assets/icons.js?v=20260509b"></script>
|
<script src="assets/icons.js?v=20260509c"></script>
|
||||||
<script src="assets/app.js?v=20260509b"></script>
|
<script src="assets/app.js?v=20260509c"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user