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:
@@ -0,0 +1,10 @@
|
||||
<?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="Бэкап, который действительно восстанавливается">
|
||||
|
||||
<rect width="1200" height="630" fill="hsl(268 24% 96%)"/>
|
||||
<rect x="54" y="54" width="1092" height="522" fill="none" stroke="hsl(268 45% 15%)" stroke-opacity="0.18"/>
|
||||
<line x1="108" y1="88" x2="1092" y2="88" stroke="hsl(268 45% 15%)" stroke-opacity="0.28" stroke-width="1"/><line x1="108" y1="189" x2="1092" y2="189" stroke="hsl(268 45% 15%)" stroke-opacity="0.28" stroke-width="1"/><line x1="108" y1="529" x2="1092" y2="529" stroke="hsl(268 45% 15%)" stroke-opacity="0.28" stroke-width="1"/><line x1="108" y1="567" x2="1092" y2="567" stroke="hsl(268 45% 15%)" stroke-opacity="0.28" stroke-width="1"/>
|
||||
<text x="108" y="214" font-family="Georgia, "Times New Roman", "DejaVu Serif", serif" font-size="63" fill="hsl(268 45% 15%)">Бэкап, который действительно</text><text x="108" y="282" font-family="Georgia, "Times New Roman", "DejaVu Serif", serif" font-size="63" fill="hsl(268 45% 15%)">восстанавливается</text>
|
||||
<text x="108" y="504" font-family="Inter, "Helvetica Neue", Helvetica, Arial, "DejaVu Sans", sans-serif" font-size="18" fill="hsl(268 45% 15%)" fill-opacity="0.75" letter-spacing="3">2026-09-12 · БЭКАПЫ</text>
|
||||
<text x="108" y="592" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace" font-size="16" fill="hsl(268 45% 15%)" fill-opacity="0.6">Евгений Стороженко</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
Reference in New Issue
Block a user