лого и фавикон готово
This commit is contained in:
+58
-11
@@ -9,6 +9,60 @@ declare(strict_types=1);
|
||||
/** @var array<int, array{title: string, url?: string}> $breadcrumbs */
|
||||
/** @var bool $showBackButton */
|
||||
$megaCategories = [];
|
||||
$brandLogoSvg = <<<'SVG'
|
||||
<svg class="brand-logo-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 650 220" role="img" aria-labelledby="brand-logo-title brand-logo-desc">
|
||||
<title id="brand-logo-title">Рыбсток</title>
|
||||
<desc id="brand-logo-desc">Качество со склада. Стоковые цены.</desc>
|
||||
<defs>
|
||||
<style>
|
||||
.brand-logo-svg .green{fill:#173d2c}
|
||||
.brand-logo-svg .green2{fill:#27634a}
|
||||
.brand-logo-svg .red{fill:#c43d31}
|
||||
.brand-logo-svg .paper{fill:#fffefa}
|
||||
.brand-logo-svg .shadow-green{fill:#173d2c;opacity:.13}
|
||||
.brand-logo-svg .word{font-family:Arial Black, Arial, Helvetica, sans-serif;font-size:104px;font-weight:950;letter-spacing:-7px}
|
||||
.brand-logo-svg .tag{font-family:Arial, Helvetica, sans-serif;font-size:25px;font-weight:900;letter-spacing:-.25px;fill:#173d2c}
|
||||
.brand-logo-svg .rule-red{fill:none;stroke:#c43d31;stroke-width:7;stroke-linecap:round}
|
||||
.brand-logo-svg .rule-green{fill:none;stroke:#173d2c;stroke-width:5;stroke-linecap:round}
|
||||
.brand-logo-svg .rule-shadow{fill:none;stroke:#173d2c;stroke-width:7;stroke-linecap:round;opacity:.12}
|
||||
.brand-logo-svg .stroke{fill:none;stroke-linecap:round;stroke-linejoin:round}
|
||||
</style>
|
||||
</defs>
|
||||
<g transform="translate(8 26)">
|
||||
<text class="word shadow-green" x="9" y="91">Рыб</text>
|
||||
<text class="word shadow-green" x="199" y="91">сток</text>
|
||||
<text class="word green" x="0" y="80">Рыб</text>
|
||||
<text class="word red" x="190" y="80">сток</text>
|
||||
<path class="shadow-green" d="M157 28 C183 30 203 49 203 74 C203 99 183 118 157 120 L157 100 C172 98 183 88 183 74 C183 60 172 50 157 48Z"/>
|
||||
<path class="red" d="M164 22 C190 24 210 43 210 68 C210 93 190 112 164 114 L164 94 C179 92 190 82 190 68 C190 54 179 44 164 42Z"/>
|
||||
<path class="paper" d="M164 39 C179 41 190 53 190 68 C190 83 179 95 164 97 L164 82 C171 80 176 75 176 68 C176 61 171 56 164 54Z"/>
|
||||
<path class="stroke green2" stroke-width="6" d="M141 56 H168"/>
|
||||
<path class="stroke red" stroke-width="5" d="M151 64 H174"/>
|
||||
<path class="stroke green2" stroke-width="6" d="M141 84 H168"/>
|
||||
<path class="stroke red" stroke-width="5" d="M151 92 H174"/>
|
||||
<path class="rule-shadow" d="M8 119 H432"/>
|
||||
<path class="rule-red" d="M4 112 H176"/>
|
||||
<path class="rule-green" d="M178 112 H432"/>
|
||||
<text class="tag" x="4" y="162">Качество со склада. <tspan class="red">Стоковые цены.</tspan></text>
|
||||
</g>
|
||||
</svg>
|
||||
SVG;
|
||||
$faviconSvg = <<<'SVG'
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
||||
<rect width="512" height="512" rx="112" fill="#fffefa"/>
|
||||
<path d="M76 362 H250" fill="none" stroke="#c43d31" stroke-width="26" stroke-linecap="round"/>
|
||||
<path d="M252 362 H436" fill="none" stroke="#173d2c" stroke-width="20" stroke-linecap="round"/>
|
||||
<text x="38" y="284" font-family="Arial Black, Arial, Helvetica, sans-serif" font-size="214" font-weight="950" letter-spacing="-18" fill="#173d2c">Ры</text>
|
||||
<text x="214" y="284" font-family="Arial Black, Arial, Helvetica, sans-serif" font-size="214" font-weight="950" letter-spacing="-18" fill="#c43d31">с</text>
|
||||
<path d="M247 105 C318 111 374 166 374 256 C374 346 318 401 247 407 L247 352 C290 346 320 307 320 256 C320 205 290 166 247 160Z" fill="#c43d31"/>
|
||||
<path d="M248 165 C284 174 306 210 306 256 C306 302 284 338 248 347 L248 300 C266 293 278 277 278 256 C278 235 266 219 248 212Z" fill="#fffefa"/>
|
||||
<path d="M202 225 H267" fill="none" stroke="#27634a" stroke-width="18" stroke-linecap="round"/>
|
||||
<path d="M225 246 H282" fill="none" stroke="#c43d31" stroke-width="14" stroke-linecap="round"/>
|
||||
<path d="M202 287 H267" fill="none" stroke="#27634a" stroke-width="18" stroke-linecap="round"/>
|
||||
<path d="M225 308 H282" fill="none" stroke="#c43d31" stroke-width="14" stroke-linecap="round"/>
|
||||
</svg>
|
||||
SVG;
|
||||
$faviconHref = 'data:image/svg+xml,' . rawurlencode($faviconSvg);
|
||||
|
||||
try {
|
||||
$megaCategories = (new \App\Repositories\CategoryRepository())->tree();
|
||||
@@ -28,18 +82,15 @@ try {
|
||||
<?php if ($metaKeywords !== ''): ?>
|
||||
<meta name="keywords" content="<?= e($metaKeywords) ?>">
|
||||
<?php endif; ?>
|
||||
<link rel="icon" type="image/svg+xml" href="<?= e($faviconHref) ?>">
|
||||
<meta name="theme-color" content="#173d2c">
|
||||
<link rel="stylesheet" href="/assets/css/app.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="site-topbar">
|
||||
<div class="site-topbar-inner">
|
||||
<a class="brand-link" href="/">
|
||||
<?php if (is_file(base_path('public/assets/images/logo-rybstock.svg'))): ?>
|
||||
<img src="/assets/images/logo-rybstock.svg" alt="Рыбсток">
|
||||
<?php else: ?>
|
||||
<span>РЫБ<span>СТОК</span></span>
|
||||
<small>Качественные продукты по стоковым ценам</small>
|
||||
<?php endif; ?>
|
||||
<?= $brandLogoSvg ?>
|
||||
</a>
|
||||
<nav class="main-nav" aria-label="Главное меню">
|
||||
<a href="/">Главная</a>
|
||||
@@ -101,11 +152,7 @@ try {
|
||||
<div class="site-footer-inner">
|
||||
<section class="footer-brand">
|
||||
<a class="footer-logo" href="/">
|
||||
<?php if (is_file(base_path('public/assets/images/logo-rybstock.svg'))): ?>
|
||||
<img src="/assets/images/logo-rybstock.svg" alt="Рыбсток">
|
||||
<?php else: ?>
|
||||
<span>Рыбсток</span>
|
||||
<?php endif; ?>
|
||||
<?= $brandLogoSvg ?>
|
||||
</a>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user