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,18 @@
|
||||
<?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>
|
||||
<radialGradient id="a1vml" cx="0.2" cy="0.15" r="0.7">
|
||||
<stop offset="0" stop-color="hsl(44 79% 59%)" stop-opacity="0.55"/><stop offset="1" stop-color="hsl(44 79% 59%)" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="a2vml" cx="0.85" cy="0.8" r="0.65">
|
||||
<stop offset="0" stop-color="hsl(66 69% 38%)" stop-opacity="0.5"/><stop offset="1" stop-color="hsl(66 69% 38%)" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
</defs>
|
||||
<rect width="1200" height="630" fill="hsl(2 53% 20%)"/>
|
||||
<rect width="1200" height="630" fill="url(#a1vml)"/>
|
||||
<rect width="1200" height="630" fill="url(#a2vml)"/>
|
||||
<line x1="600" y1="179" x2="600" y2="185" stroke="hsl(44 79% 59%)" stroke-width="3"/>
|
||||
<text x="600" y="310" text-anchor="middle" font-family="Georgia, "Times New Roman", "DejaVu Serif", serif" font-size="63" fill="hsl(2 24% 96%)">Детерминированные обложки:</text><text x="600" y="378" text-anchor="middle" font-family="Georgia, "Times New Roman", "DejaVu Serif", serif" font-size="63" fill="hsl(2 24% 96%)">палитра из слага</text>
|
||||
<text x="600" y="567" text-anchor="middle" font-family="Inter, "Helvetica Neue", Helvetica, Arial, "DejaVu Sans", sans-serif" font-size="19" fill="hsl(2 18% 74%)" letter-spacing="1">#hugo #svg</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
Reference in New Issue
Block a user