feat(covergen): генератор обложек-плейсхолдеров для постов

Инструмент в tools/covergen: SVG 1200x630, детерминированный от слага
(FNV-1a -> mulberry32 -> палитра), 5 стилей (poster, bauhaus, constructivist,
aurora, paper), типографика с переносом и подбором кегля, аудит геометрии и
WCAG-контраста, CLI для одной обложки и для манифеста.

Без зависимостей, node >= 18, 12 тестов (node --test) — проходят в этой раскладке.
Документация и объём работ по встраиванию в сайт: docs/covergen.md, задача #1.
This commit is contained in:
2026-11-14 03:22:48 +00:00
parent e4fe7fddb9
commit 0de11320bb
22 changed files with 1027 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630" role="img" aria-label="Смысловая пустота">
<defs>
<linearGradient id="bg1pbe" x1="0" y1="0" x2="0.6" y2="1">
<stop offset="0" stop-color="hsl(21 71% 17%)"/><stop offset="1" stop-color="hsl(33 71% 12%)"/>
</linearGradient>
</defs>
<rect width="1200" height="630" fill="url(#bg1pbe)"/>
<rect x="66" y="66" width="1068" height="498" fill="none" stroke="hsl(63 88% 53%)" stroke-opacity="0.55" stroke-width="2"/>
<rect x="66" y="220" width="144" height="5" fill="hsl(63 88% 53%)"/>
<text x="600" y="340" text-anchor="middle" font-family="Inter, "Helvetica Neue", Helvetica, Arial, "DejaVu Sans", sans-serif" font-size="82" font-weight="700" fill="hsl(21 24% 96%)" letter-spacing="-0.5">Смысловая пустота</text>
<text x="600" y="528" text-anchor="middle" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace" font-size="20" fill="hsl(21 18% 74%)" letter-spacing="3">2026-11-14 · ТЕКСТ</text>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB