Files
profile-front/src/components/Header/Header.astro

56 lines
1.2 KiB
Plaintext
Raw Normal View History

2025-12-11 01:12:45 +03:00
---
2026-02-27 00:12:33 +03:00
const { category } = Astro.props;
2025-12-11 01:12:45 +03:00
import Stores from './LazyStores.astro';
2025-12-17 23:05:49 +03:00
import MainMenu from '@components/MainMenu.astro';
2025-12-11 01:12:45 +03:00
2026-01-25 01:00:24 +03:00
const MENU_ID = 3340; // 103246 (бургер 1). 103247 (бургер 2 )
2025-12-11 01:12:45 +03:00
let menuItems = [];
---
<header class="header" itemscope itemtype="https://schema.org/WPHeader">
<div class="top-bar">
<img alt="Профиль" width="249" height="55" src="https://cdn.profile.ru/wp-content/themes/profile/assets/img/profile-logo-delovoy.svg">
2026-02-27 00:12:33 +03:00
{category && (
2026-03-02 00:39:07 +03:00
<div class="header__subtitle">
<a href={`/${category.slug}`}>{category.name}</a>
2026-02-27 00:12:33 +03:00
</div>
)}
2025-12-11 01:12:45 +03:00
<Stores />
</div>
2025-12-17 23:05:49 +03:00
<MainMenu menuId={MENU_ID} />
2025-12-11 01:12:45 +03:00
</header>
<style>
.top-bar{
display: flex;
justify-content: space-between;
2026-03-02 00:39:07 +03:00
align-items: center;
2025-12-11 01:12:45 +03:00
}
2026-03-02 00:39:07 +03:00
.header__subtitle{
font-size: 22px;
font-weight: bold;
margin-left: 42px;
position: relative;
}
.header__subtitle::before{
content: '';
position: absolute;
top: 50%;
left: -15px;
width: 3px;
height: 80%;
border-left: 3px solid;
transform: translate(0, -40%);
}
2025-12-11 01:12:45 +03:00
</style>