feat(web): brand logo 'news flow', favicon set and OG image

This commit is contained in:
kpa39l
2026-11-04 17:36:40 +00:00
parent 8ab0da29a1
commit b719dc00b4
24 changed files with 477 additions and 3 deletions
+44
View File
@@ -0,0 +1,44 @@
{% macro logo(variant='header', cls='') -%}
{%- if variant == 'mark' -%}
<svg class="h-7 w-auto {{ cls }}" viewBox="0 0 64 52" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
<rect x="0" y="0" width="56" height="12" rx="3" fill="currentColor"/>
<rect x="0" y="20" width="44" height="12" rx="3" fill="currentColor"/>
<rect x="0" y="40" width="64" height="12" rx="3" fill="#00A6F4"/>
</svg>
{%- elif variant == 'header' -%}
<svg class="h-9 w-auto {{ cls }}" viewBox="0 0 232 56" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
<rect x="0" y="4" width="56" height="12" rx="3" fill="currentColor"/>
<rect x="0" y="22" width="44" height="12" rx="3" fill="currentColor"/>
<rect x="0" y="40" width="64" height="12" rx="3" fill="#00A6F4"/>
<text x="80" y="41" font-family="Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif"
font-size="34" font-weight="800" fill="currentColor" letter-spacing="-1">вести</text>
</svg>
{%- else -%}
<svg class="h-14 w-auto {{ cls }}" viewBox="0 0 320 80" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
<rect x="12" y="14" width="56" height="12" rx="3" fill="currentColor"/>
<rect x="12" y="34" width="44" height="12" rx="3" fill="currentColor"/>
<rect x="12" y="54" width="64" height="12" rx="3" fill="#00A6F4"/>
<text x="96" y="46" font-family="Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif"
font-size="34" font-weight="800" fill="currentColor" letter-spacing="-1">вести</text>
<text x="98" y="64" font-family="Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif"
font-size="13" fill="currentColor" opacity="0.6" letter-spacing="2">НОВОСТНОЙ КОНВЕЙЕР</text>
</svg>
{%- endif -%}
{%- endmacro %}
{# Иконки вкладки и OG-мета: одинаковы для всех страниц. #}
{% macro head_brand(title, description) -%}
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" type="image/svg+xml" href="/static/img/favicon.svg">
<link rel="icon" type="image/png" sizes="32x32" href="/static/img/favicon-32.png">
<link rel="icon" type="image/png" sizes="32x32" href="/static/img/favicon-dark-32.png" media="(prefers-color-scheme: dark)">
<link rel="apple-touch-icon" href="/static/img/apple-touch-icon.png">
<meta name="theme-color" content="#000000">
<meta property="og:type" content="website">
<meta property="og:site_name" content="вести">
<meta property="og:title" content="{{ title }}">
<meta property="og:description" content="{{ description }}">
<meta property="og:image" content="https://vesti.nixg.ru/static/img/og.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
{%- endmacro %}