32 lines
865 B
Plaintext
32 lines
865 B
Plaintext
---
|
||
const { category, contentType } = Astro.props;
|
||
|
||
import Stores from './LazyStores.astro';
|
||
import MainMenu from '@components/Menus/MainMenu.astro';
|
||
|
||
const MENU_ID = 3340; // 103246 (бургер 1). 103247 (бургер 2 )
|
||
let menuItems = [];
|
||
---
|
||
|
||
<header class="header" itemscope itemtype="https://schema.org/WPHeader">
|
||
|
||
<div class="top-bar">
|
||
<a href="/"><img alt="Профиль" width="249" height="55" src="https://cdn.profile.ru/wp-content/themes/profile/assets/img/profile-logo-delovoy.svg"></a>
|
||
|
||
{category && (
|
||
<div class="header__subtitle">
|
||
{contentType === 'news' && (
|
||
<span class="header__news-badge"><a href="/news">Новости</a></span>
|
||
)}
|
||
<a href={`/${category.slug}`}>{category.name}</a>
|
||
</div>
|
||
)}
|
||
|
||
<Stores />
|
||
</div>
|
||
|
||
<MainMenu menuId={MENU_ID} />
|
||
|
||
</header>
|
||
|