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.
@@ -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 |
@@ -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 |
@@ -0,0 +1,16 @@
|
||||
<?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="Как я перестал бояться DPI-багов">
|
||||
|
||||
<defs>
|
||||
<clipPath id="clipuju"><rect width="1200" height="630"/></clipPath>
|
||||
</defs>
|
||||
<g clip-path="url(#clipuju)">
|
||||
<rect width="1200" height="630" fill="hsl(32 69% 15%)"/>
|
||||
<circle cx="984" cy="164" r="189" fill="hsl(200 88% 65%)" opacity="0.92"/>
|
||||
<rect x="0" y="277" width="552" height="63" fill="hsl(222 82% 45%)" opacity="0.85"/>
|
||||
<polygon points="72,0 288,0 72,139" fill="hsl(32 18% 74%)" opacity="0.5"/>
|
||||
<rect x="96" y="378" width="120" height="4" fill="hsl(200 88% 65%)"/>
|
||||
</g>
|
||||
<text x="96" y="467" font-family="Inter, "Helvetica Neue", Helvetica, Arial, "DejaVu Sans", sans-serif" font-size="69" font-weight="800" fill="hsl(32 24% 96%)">Как я перестал бояться</text><text x="96" y="542" font-family="Inter, "Helvetica Neue", Helvetica, Arial, "DejaVu Sans", sans-serif" font-size="69" font-weight="800" fill="hsl(32 24% 96%)">DPI-багов</text>
|
||||
<text x="96" y="580" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace" font-size="19" fill="hsl(32 18% 74%)" letter-spacing="2">#linux #сети</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -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(21 58% 12%)"/>
|
||||
<polygon points="0,391 1200,176 1200,290 0,504" fill="hsl(63 84% 64%)" opacity="0.9"/>
|
||||
<polygon points="0,542 1200,353 1200,378 0,567" fill="hsl(85 74% 47%)" opacity="0.75"/>
|
||||
<circle cx="1032" cy="113" r="69" fill="hsl(21 18% 74%)" opacity="0.35"/>
|
||||
<g transform="translate(96 214) rotate(-4)" id="title1zoz"><text x="0" y="0" font-family="Inter, "Helvetica Neue", Helvetica, Arial, "DejaVu Sans", sans-serif" font-size="66" font-weight="800" fill="hsl(21 24% 96%)" text-transform="uppercase">МОНИТОРИНГ, КОТОРЫЙ НЕ</text><text x="0" y="71" font-family="Inter, "Helvetica Neue", Helvetica, Arial, "DejaVu Sans", sans-serif" font-size="66" font-weight="800" fill="hsl(21 24% 96%)" text-transform="uppercase">БУДИТ НОЧЬЮ</text></g>
|
||||
<text x="96" y="592" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace" font-size="18" fill="hsl(21 18% 74%)" letter-spacing="4">2026-10-19 · ИНФРАСТРУКТУРА</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -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 |
@@ -0,0 +1,16 @@
|
||||
<?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="Как я перестал бояться DPI-багов">
|
||||
|
||||
<defs>
|
||||
<clipPath id="clipuju"><rect width="1200" height="630"/></clipPath>
|
||||
</defs>
|
||||
<g clip-path="url(#clipuju)">
|
||||
<rect width="1200" height="630" fill="hsl(32 69% 15%)"/>
|
||||
<circle cx="984" cy="164" r="189" fill="hsl(200 88% 65%)" opacity="0.92"/>
|
||||
<rect x="0" y="277" width="552" height="63" fill="hsl(222 82% 45%)" opacity="0.85"/>
|
||||
<polygon points="72,0 288,0 72,139" fill="hsl(32 18% 74%)" opacity="0.5"/>
|
||||
<rect x="96" y="378" width="120" height="4" fill="hsl(200 88% 65%)"/>
|
||||
</g>
|
||||
<text x="96" y="467" font-family="Inter, "Helvetica Neue", Helvetica, Arial, "DejaVu Sans", sans-serif" font-size="69" font-weight="800" fill="hsl(32 24% 96%)">Как я перестал бояться</text><text x="96" y="542" font-family="Inter, "Helvetica Neue", Helvetica, Arial, "DejaVu Sans", sans-serif" font-size="69" font-weight="800" fill="hsl(32 24% 96%)">DPI-багов</text>
|
||||
<text x="96" y="580" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace" font-size="19" fill="hsl(32 18% 74%)" letter-spacing="2">#linux #сети</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -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(21 58% 12%)"/>
|
||||
<polygon points="0,391 1200,176 1200,290 0,504" fill="hsl(63 84% 64%)" opacity="0.9"/>
|
||||
<polygon points="0,542 1200,353 1200,378 0,567" fill="hsl(85 74% 47%)" opacity="0.75"/>
|
||||
<circle cx="1032" cy="113" r="69" fill="hsl(21 18% 74%)" opacity="0.35"/>
|
||||
<text x="96" y="257" transform="rotate(-4 96 257)" font-family="Inter, "Helvetica Neue", Helvetica, Arial, "DejaVu Sans", sans-serif" font-size="66" font-weight="800" fill="hsl(21 24% 96%)">МОНИТОРИНГ, КОТОРЫЙ НЕ</text><text x="96" y="328" transform="rotate(-4 96 328)" font-family="Inter, "Helvetica Neue", Helvetica, Arial, "DejaVu Sans", sans-serif" font-size="66" font-weight="800" fill="hsl(21 24% 96%)">БУДИТ НОЧЬЮ</text>
|
||||
<text x="96" y="592" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace" font-size="18" fill="hsl(21 18% 74%)" letter-spacing="4">2026-10-19 · ИНФРАСТРУКТУРА</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -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 |
@@ -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 |
@@ -0,0 +1,7 @@
|
||||
[
|
||||
{ "slug": "smysl", "title": "Смысловая пустота", "subtitle": "2026-11-14 · текст", "tags": ["дизайн", "типографика"], "style": "poster" },
|
||||
{ "slug": "dpi", "title": "Как я перестал бояться DPI-багов", "subtitle": "2026-11-02 · сети", "tags": ["linux", "сети"], "style": "bauhaus" },
|
||||
{ "slug": "monitoring", "title": "Мониторинг, который не будит ночью", "subtitle": "2026-10-19 · инфраструктура", "tags": ["prometheus", "алерты"], "style": "constructivist" },
|
||||
{ "slug": "covers", "title": "Детерминированные обложки: палитра из слага", "subtitle": "2026-09-28 · hugo", "tags": ["hugo", "svg"], "style": "aurora" },
|
||||
{ "slug": "backup", "title": "Бэкап, который действительно восстанавливается", "subtitle": "2026-09-12 · бэкапы", "author": "Евгений Стороженко", "style": "paper" }
|
||||
]
|
||||
@@ -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 |