feat: add autumn Belki web theme

This commit is contained in:
nyan404 committed 2026-10-03 01:07:48 +03:00
1 parent 62af71e6b1
commit 623cf5ad3a
4 files changed
+34 -6

No files matched your search

+1
View File
@@ -58,6 +58,7 @@
- 2026-08-25: authenticated admin refresh WebSockets use a separate pool of eight slots so they cannot consume the bounded general HTTP worker pool. History sorting normalizes old string IDs with current numeric IDs. - 2026-08-25: authenticated admin refresh WebSockets use a separate pool of eight slots so they cannot consume the bounded general HTTP worker pool. History sorting normalizes old string IDs with current numeric IDs.
- 2026-09-01: admin XLSX downloads are session/password-protected routes. Keep report category/cat/kitten and application status plus period/date-range query parameters identical between the API list and export endpoint so the file matches the visible selection. - 2026-09-01: admin XLSX downloads are session/password-protected routes. Keep report category/cat/kitten and application status plus period/date-range query parameters identical between the API list and export endpoint so the file matches the visible selection.
- 2026-09-01: all web-facing Belki dates are UTC+3. Never change persisted UTC moments to implement this; convert at the UI/XLSX boundary and interpret calendar inputs in UTC+3. - 2026-09-01: all web-facing Belki dates are UTC+3. Never change persisted UTC moments to implement this; convert at the UI/XLSX boundary and interpret calendar inputs in UTC+3.
- 2026-10-03: `web/calculator.html` and `web/admin.html` use a shared autumn theme with warm paper tokens, amber/brown accents, and decorative CSS leaves. The leaves are pointer-transparent, behind content, and reduced to faint static accents for `prefers-reduced-motion`; visual changes require no new assets or dependencies.
- 2026-09-01: report attachments are a web inspection-only requirement. Enforce it in `validate_web_report_attachments`, not only by hiding the field, and retain optional dated output for legacy bot training sessions. - 2026-09-01: report attachments are a web inspection-only requirement. Enforce it in `validate_web_report_attachments`, not only by hiding the field, and retain optional dated output for legacy bot training sessions.
# 2026-08-16 — несколько котят в прокачке # 2026-08-16 — несколько котят в прокачке
+1
View File
@@ -46,6 +46,7 @@
- Typed flows are: feather donation (amount/color/source rows), kitten (activity screenshot), flying squirrel (past practice and a review link when applicable), and curator (LU screenshot with fraction). VK uses `/заявка`, `/перо`, `/бельчонок`, `/летяга`, and `/куратор`; its context keyboard drives every selectable application branch, while users type only free-form values. The bot polls accepted VK applications every 15 seconds and notifies the original peer; web applications have no inferred VK recipient. - Typed flows are: feather donation (amount/color/source rows), kitten (activity screenshot), flying squirrel (past practice and a review link when applicable), and curator (LU screenshot with fraction). VK uses `/заявка`, `/перо`, `/бельчонок`, `/летяга`, and `/куратор`; its context keyboard drives every selectable application branch, while users type only free-form values. The bot polls accepted VK applications every 15 seconds and notifies the original peer; web applications have no inferred VK recipient.
- Google Sheets export is pre-wired but disabled by `BELKI_GOOGLE_EXPORT_ENABLED=0`. `ApplicationStore` records `application_created` and `application_accepted` snapshots in the PostgreSQL `belki_application_export_events` or SQLite `application_export_events` outbox. `GoogleSheetsExportService` sends FIFO JSON events only to an explicitly configured Google Apps Script Web App URL, retains failed events for retry, and is polled by the bot every 15 seconds when enabled. - Google Sheets export is pre-wired but disabled by `BELKI_GOOGLE_EXPORT_ENABLED=0`. `ApplicationStore` records `application_created` and `application_accepted` snapshots in the PostgreSQL `belki_application_export_events` or SQLite `application_export_events` outbox. `GoogleSheetsExportService` sends FIFO JSON events only to an explicitly configured Google Apps Script Web App URL, retains failed events for retry, and is polled by the bot every 15 seconds when enabled.
- The admin page uses a restrained light editorial table layout with a separate password gate, category tabs (all, осмотры, ЛУ, ЗУ, ПУ/уроки), responsive filters, client-side sorting across every visible column, cat/kitten selectors, sticky headings, and a keyboard-navigable photo gallery; behavior remains backed by the existing history API. - The admin page uses a restrained light editorial table layout with a separate password gate, category tabs (all, осмотры, ЛУ, ЗУ, ПУ/уроки), responsive filters, client-side sorting across every visible column, cat/kitten selectors, sticky headings, and a keyboard-navigable photo gallery; behavior remains backed by the existing history API.
- 2026-10-03: public calculator and `/admin` share an autumn visual layer: warm paper/ground tokens, amber-brown accents, subtle radial atmosphere, and seven CSS leaves with staggered fall motion. Leaves are decorative (`aria-hidden`, pointer-events disabled), stay behind content, and become static/faint under `prefers-reduced-motion`; no image or runtime dependency was added.
- VK `messages.send` responses include a serialized context-aware keyboard; button payloads are translated back into the same dialog commands, while text commands remain supported. - VK `messages.send` responses include a serialized context-aware keyboard; button payloads are translated back into the same dialog commands, while text commands remain supported.
- Production k3s deployment (2026-08-16): namespace `belki` runs the Belki web calculator, VK bot, PostgreSQL 16, and the migrated cwshed Nginx gateway. The gateway keeps MetalLB IP `10.12.0.204`, serves the legacy CatWar site, and routes `/belki`, `/admin`, and `/api/*` to Belki web on `10.12.0.212`. Belki images are `reg.nyan404.ru/cwshed-clone/belki` and `reg.nyan404.ru/cwshed`; PostgreSQL is mirrored as `reg.nyan404.ru/library/postgres:16-alpine-amd64` because cluster nodes cannot pull Docker Hub directly. Registry pull credentials and runtime secrets are created out-of-band in the `belki` namespace. - Production k3s deployment (2026-08-16): namespace `belki` runs the Belki web calculator, VK bot, PostgreSQL 16, and the migrated cwshed Nginx gateway. The gateway keeps MetalLB IP `10.12.0.204`, serves the legacy CatWar site, and routes `/belki`, `/admin`, and `/api/*` to Belki web on `10.12.0.212`. Belki images are `reg.nyan404.ru/cwshed-clone/belki` and `reg.nyan404.ru/cwshed`; PostgreSQL is mirrored as `reg.nyan404.ru/library/postgres:16-alpine-amd64` because cluster nodes cannot pull Docker Hub directly. Registry pull credentials and runtime secrets are created out-of-band in the `belki` namespace.
- The previously inspected `stage-zone-runner` at `10.3.1.236` is not the runner used by the current pipeline. Runner `#2` (`Ryzen-builder`) at `10.3.1.168` is a privileged Docker executor and supports the DinD service used by `.gitlab-ci.yml`. - The previously inspected `stage-zone-runner` at `10.3.1.236` is not the runner used by the current pipeline. Runner `#2` (`Ryzen-builder`) at `10.3.1.168` is a privileged Docker executor and supports the DinD service used by `.gitlab-ci.yml`.
+13 -2
View File
@@ -6,9 +6,19 @@
<title>Беличья нора — админка</title> <title>Беличья нора — админка</title>
<link rel="icon" href="/favicon.png" type="image/png" sizes="192x192"> <link rel="icon" href="/favicon.png" type="image/png" sizes="192x192">
<style> <style>
:root { color-scheme: light; font-family: "Trebuchet MS", ui-sans-serif, sans-serif; background: #f4f1eb; color: #292725; --ink:#292725; --muted:#625d57; --line:#ded9d1; --paper:#fffdfa; --accent:#9a542e; --danger:#8e3630; --focus:#9a542e; } :root { color-scheme: light; font-family: "Trebuchet MS", ui-sans-serif, sans-serif; background: #f5efe3; color: #2d2924; --ink:#2d2924; --muted:#675c50; --line:#ded3c2; --paper:#fffdf7; --accent:#b56824; --gold:#d89a28; --danger:#8e3630; --focus:#a9541d; }
* { box-sizing: border-box; } * { box-sizing: border-box; }
body { margin: 0; background: #f4f1eb; color: var(--ink); } body { margin: 0; background: #f5efe3; color: var(--ink); }
body::before { content:""; position:fixed; inset:0; pointer-events:none; z-index:0; opacity:.42; background: radial-gradient(circle at 12% 8%, #fff8e7 0 0.7rem, transparent 13rem), radial-gradient(circle at 88% 24%, #ead8bd 0 0.45rem, transparent 15rem); }
.leaf-field { position:fixed; inset:0; overflow:hidden; pointer-events:none; z-index:1; }
.leaf { position:absolute; top:-3rem; width:1.1rem; height:1.65rem; border-radius:100% 0 100% 0; background:var(--accent); box-shadow:inset .18rem -.12rem 0 #8e431d; opacity:.62; transform:rotate(35deg); animation:leaf-fall 15s linear infinite; }
.leaf:nth-child(2n) { background:var(--gold); width:.82rem; height:1.3rem; animation-duration:19s; }
.leaf:nth-child(3n) { background:#a84e22; width:1.35rem; height:1.85rem; animation-duration:22s; }
.leaf:nth-child(1) { left:7%; animation-delay:-4s; } .leaf:nth-child(2) { left:18%; animation-delay:-12s; } .leaf:nth-child(3) { left:32%; animation-delay:-7s; }
.leaf:nth-child(4) { left:49%; animation-delay:-16s; } .leaf:nth-child(5) { left:64%; animation-delay:-2s; } .leaf:nth-child(6) { left:78%; animation-delay:-10s; } .leaf:nth-child(7) { left:91%; animation-delay:-18s; }
@keyframes leaf-fall { 0% { transform:translate3d(0,-4rem,0) rotate(20deg); } 45% { transform:translate3d(3.5rem,48vh,0) rotate(170deg); } 100% { transform:translate3d(-4rem,112vh,0) rotate(330deg); } }
main, dialog { position:relative; z-index:2; }
@media (prefers-reduced-motion: reduce) { .leaf { animation: none; top: 8vh; opacity: .16; } }
main { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 64px; } main { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 64px; }
h1 { margin: 0; font: 500 clamp(2rem, 4vw, 3.25rem)/1 Georgia, "Times New Roman", serif; letter-spacing: -.035em; } h1 { margin: 0; font: 500 clamp(2rem, 4vw, 3.25rem)/1 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
h2 { margin: 0 0 8px; font: 500 2rem/1.1 Georgia, "Times New Roman", serif; } h2 { margin: 0 0 8px; font: 500 2rem/1.1 Georgia, "Times New Roman", serif; }
@@ -96,6 +106,7 @@
</style> </style>
</head> </head>
<body> <body>
<div class="leaf-field" aria-hidden="true"><span class="leaf"></span><span class="leaf"></span><span class="leaf"></span><span class="leaf"></span><span class="leaf"></span><span class="leaf"></span><span class="leaf"></span></div>
<main> <main>
<section id="authView" class="auth-view"> <section id="authView" class="auth-view">
<h2>Админская панель</h2> <h2>Админская панель</h2>
+19 -4
View File
@@ -6,9 +6,22 @@
<title>Генератор отчётов и калькулятор</title> <title>Генератор отчётов и калькулятор</title>
<link rel="icon" href="/favicon.png" type="image/png" sizes="192x192"> <link rel="icon" href="/favicon.png" type="image/png" sizes="192x192">
<style> <style>
:root { color-scheme: light; font-family: "Trebuchet MS", ui-sans-serif, sans-serif; --ink:#292725; --muted:#625d57; --paper:#fffdfa; --ground:#f4f1eb; --line:#ded9d1; --accent:#9a542e; --focus:#9a542e; --error:#8e3630; } :root { color-scheme: light; font-family: "Trebuchet MS", ui-sans-serif, sans-serif; --ink:#2d2924; --muted:#675c50; --paper:#fffdf7; --ground:#f5efe3; --line:#ded3c2; --accent:#b56824; --gold:#d89a28; --leaf:#c96f25; --focus:#a9541d; --error:#8e3630; }
* { box-sizing: border-box; } html, body { max-width: 100%; } body { margin: 0; background: var(--ground); color: var(--ink); } * { box-sizing: border-box; } html, body { max-width: 100%; } body { margin: 0; background: var(--ground); color: var(--ink); }
main { width: min(1060px, calc(100% - 32px)); margin: 48px auto 72px; } body::before { content:""; position:fixed; inset:0; pointer-events:none; z-index:-1; opacity:.42; background: radial-gradient(circle at 12% 8%, #fff8e7 0 0.7rem, transparent 13rem), radial-gradient(circle at 88% 24%, #ead8bd 0 0.45rem, transparent 15rem); }
.leaf-field { position:fixed; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
.leaf { position:absolute; top:-3rem; width:1.1rem; height:1.65rem; border-radius:100% 0 100% 0; background:var(--leaf); box-shadow:inset .18rem -.12rem 0 #8e431d; opacity:.74; transform:rotate(35deg); animation:leaf-fall 15s linear infinite; }
.leaf:nth-child(2n) { background:#e0a02f; width:.82rem; height:1.3rem; animation-duration:19s; }
.leaf:nth-child(3n) { background:#a84e22; width:1.35rem; height:1.85rem; animation-duration:22s; }
.leaf:nth-child(1) { left:7%; animation-delay:-4s; }
.leaf:nth-child(2) { left:18%; animation-delay:-12s; }
.leaf:nth-child(3) { left:32%; animation-delay:-7s; }
.leaf:nth-child(4) { left:49%; animation-delay:-16s; }
.leaf:nth-child(5) { left:64%; animation-delay:-2s; }
.leaf:nth-child(6) { left:78%; animation-delay:-10s; }
.leaf:nth-child(7) { left:91%; animation-delay:-18s; }
@keyframes leaf-fall { 0% { transform:translate3d(0,-4rem,0) rotate(20deg); } 45% { transform:translate3d(3.5rem,48vh,0) rotate(170deg); } 100% { transform:translate3d(-4rem,112vh,0) rotate(330deg); } }
main { position:relative; z-index:1; width: min(1060px, calc(100% - 32px)); margin: 48px auto 72px; }
h1 { margin: 0 0 6px; font: 500 clamp(2.25rem, 5vw, 4rem)/1 Georgia, "Times New Roman", serif; letter-spacing: -.045em; } h1 { margin: 0 0 6px; font: 500 clamp(2.25rem, 5vw, 4rem)/1 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
h2 { font: 500 1.55rem/1.15 Georgia, "Times New Roman", serif; } .muted { color: var(--muted); line-height: 1.55; } h2 { font: 500 1.55rem/1.15 Georgia, "Times New Roman", serif; } .muted { color: var(--muted); line-height: 1.55; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 16px; } .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 16px; }
@@ -16,12 +29,12 @@
.section-tabs button { border-color: transparent; background: transparent; } .section-tabs button { border-color: transparent; background: transparent; }
button, select, input, textarea { font: inherit; } button, select, input, textarea { font: inherit; }
button { min-height:44px; cursor: pointer; touch-action:manipulation; border: 1px solid #bdb6ad; border-radius: 7px; padding: 9px 14px; background: var(--paper); color: var(--ink); transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out; } button { min-height:44px; cursor: pointer; touch-action:manipulation; border: 1px solid #bdb6ad; border-radius: 7px; padding: 9px 14px; background: var(--paper); color: var(--ink); transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out; }
button:hover { border-color:var(--accent); background:#fff8ef; } button:focus-visible, a:focus-visible { outline:3px solid var(--focus); outline-offset:3px; } button:hover { border-color:var(--accent); background:#fff6e5; } button:focus-visible, a:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
button.active, button.primary { background: var(--ink); color: #fffdfa; border-color: var(--ink); } button.active:hover, button.primary:hover { background:#45413d; } button.active, button.primary { background: var(--ink); color: #fffdfa; border-color: var(--ink); } button.active:hover, button.primary:hover { background:#45413d; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 28px; box-shadow:0 10px 28px #3b30220d; } .panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 28px; box-shadow:0 10px 28px #3b30220d; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; } .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
label { display: grid; gap: 6px; color: #403b36; font-weight:700; } label { display: grid; gap: 6px; color: #403b36; font-weight:700; }
input, select, textarea { min-height:44px; width: 100%; border: 1px solid #c8c1b8; border-radius: 7px; padding: 9px 12px; background: #fff; color: var(--ink); } input:focus,select:focus,textarea:focus { outline:3px solid #9a542e2b; border-color:var(--accent); } input, select, textarea { min-height:44px; width: 100%; border: 1px solid #c8bca9; border-radius: 7px; padding: 9px 12px; background: #fffefa; color: var(--ink); } input:focus,select:focus,textarea:focus { outline:3px solid #b5682433; border-color:var(--accent); }
textarea { min-height: 210px; resize: vertical; } textarea { min-height: 210px; resize: vertical; }
.wide { grid-column: 1 / -1; } .wide { grid-column: 1 / -1; }
.actions { display: flex; gap: 10px; margin-top: 18px; } .actions { display: flex; gap: 10px; margin-top: 18px; }
@@ -78,9 +91,11 @@
input, select, textarea { font-size: 16px; } input, select, textarea { font-size: 16px; }
.site-footer { margin-top: 32px; } .site-footer { margin-top: 32px; }
} }
@media (prefers-reduced-motion: reduce) { .leaf { animation: none; top: 8vh; opacity: .18; } }
</style> </style>
</head> </head>
<body> <body>
<div class="leaf-field" aria-hidden="true"><span class="leaf"></span><span class="leaf"></span><span class="leaf"></span><span class="leaf"></span><span class="leaf"></span><span class="leaf"></span><span class="leaf"></span></div>
<main> <main>
<h1>Генератор отчётов и калькулятор</h1> <h1>Генератор отчётов и калькулятор</h1>
<p class="muted">Отчёты и заявки — в одном месте.</p> <p class="muted">Отчёты и заявки — в одном месте.</p>