templates/components/header.html.twig line 1

Open in your IDE?
  1. <header class="site-header">
  2.   <div class="shell header-inner">
  3.     <a class="logo-link" href="/">
  4.       <img src="/assets/logo.svg" alt="PlayPapa" />
  5.     </a>
  6.     <div class="theme-switch" aria-label="Переключение темы">
  7.       <button class="theme-btn is-active" type="button" data-theme="light" aria-label="Светлая тема" aria-pressed="true">
  8.         <img src="/assets/white-theme.svg" alt="" />
  9.       </button>
  10.       <button class="theme-btn" type="button" data-theme="dark" aria-label="Темная тема" aria-pressed="false">
  11.         <img src="/assets/dark-theme.svg" alt="" />
  12.       </button>
  13.     </div>
  14.     <button class="catalog-btn" type="button" aria-label="Каталог" aria-expanded="false" aria-controls="catalogMegaMenu">
  15.       <img src="/assets/catalog.svg" alt="" />
  16.       <span>Каталог</span>
  17.     </button>
  18.     <form class="search-form" action="#">
  19.       <input type="search" placeholder="Игра, приложение или услуга..." />
  20.       <button class="search-favorite" type="button" aria-label="Избранное">
  21.         <img src="/assets/favorite.svg" alt="" />
  22.       </button>
  23.       <button class="search-submit" type="submit" aria-label="Найти">
  24.         <svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
  25.           <path d="m21 21-4.35-4.35m2.35-5.65a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" />
  26.         </svg>
  27.       </button>
  28.     </form>
  29.     <button class="bonus-btn" aria-label="Бонусы">
  30.       <img src="/assets/bonus.svg" alt="Бонусы" />
  31.     </button>
  32.     <div class="profile-menu">
  33.       <button class="profile-btn" type="button" aria-label="Профиль" aria-expanded="false" aria-controls="profilePopover">
  34.         <img src="/assets/profile.svg" alt="" />
  35.         <span class="profile-toggle-indicator" aria-hidden="true">
  36.           <svg viewBox="0 0 12 8" fill="none">
  37.             <path d="m2 2 4 4 4-4" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" />
  38.           </svg>
  39.         </span>
  40.       </button>
  41.       <section class="profile-popover" id="profilePopover" aria-hidden="true" aria-label="Меню профиля" inert>
  42.         <div class="profile-popover-heading">
  43.           <h2>Вы не авторизованы</h2>
  44.           <p>
  45.             <span>Войдите, чтобы видеть бонусы и</span>
  46.             <span>рефералов</span>
  47.           </p>
  48.         </div>
  49.         <nav class="profile-popover-nav" aria-label="Разделы профиля">
  50.           <button class="profile-menu-item" type="button" disabled>
  51.             <img class="profile-menu-icon" src="/assets/profile-menu-profile.svg" alt="" />
  52.             <span>Профиль</span>
  53.           </button>
  54.           <button class="profile-menu-item" type="button" disabled>
  55.             <img class="profile-menu-icon" src="/assets/profile-menu-referrals.svg" alt="" />
  56.             <span>Рефералы</span>
  57.           </button>
  58.           <button class="profile-menu-item" type="button" disabled>
  59.             <img class="profile-menu-icon" src="/assets/profile-menu-bonus.svg" alt="" />
  60.             <span>Бонусы</span>
  61.           </button>
  62.           <button class="profile-menu-item" type="button" disabled>
  63.             <img class="profile-menu-icon" src="/assets/profile-menu-topup.svg" alt="" />
  64.             <span>Пополнить</span>
  65.           </button>
  66.           <button class="profile-menu-item profile-help" type="button">
  67.             <img class="profile-menu-icon" src="/assets/profile-menu-help.svg" alt="" />
  68.             <span>Помощь</span>
  69.           </button>
  70.           <button class="profile-menu-item profile-login" type="button" data-auth-open="login">
  71.             <img class="profile-menu-icon" src="/assets/profile-menu-login.svg" alt="" />
  72.             <span>Войти</span>
  73.           </button>
  74.         </nav>
  75.       </section>
  76.     </div>
  77.   </div>
  78.   <div class="catalog-layer" id="catalogMegaMenu" aria-hidden="true" inert>
  79.     <div class="shell catalog-mega" role="dialog" aria-label="Каталог товаров">
  80.       <aside class="catalog-sidebar" aria-label="Разделы каталога">
  81.         <button class="catalog-side-link is-active" type="button">
  82.           <svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M7.5 8.2h9a4.5 4.5 0 0 1 4.2 6.1l-1.1 2.8a2.2 2.2 0 0 1-3.7.7l-1.2-1.5H9.3l-1.2 1.5a2.2 2.2 0 0 1-3.7-.7l-1.1-2.8a4.5 4.5 0 0 1 4.2-6.1Z" stroke="currentColor" stroke-width="1.8"/><path d="M8 11v3m-1.5-1.5h3M16.5 11.7h.01m2 2h.01" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg>
  83.           <span>Игры и игровые сервисы</span>
  84.           <span class="catalog-chevron" aria-hidden="true">›</span>
  85.         </button>
  86.         <button class="catalog-side-link" type="button">
  87.           <svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="m12 2.8 8.1 5.5L12 21.2 3.9 8.3 12 2.8Z" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round"/><path d="m3.9 8.3 5.1.2 3-5.7 3 5.7 5.1-.2M9 8.5l3 12.7 3-12.7" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg>
  88.           <span>Игровые ценности</span>
  89.           <span class="catalog-chevron" aria-hidden="true">›</span>
  90.         </button>
  91.         <button class="catalog-side-link" type="button">
  92.           <svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><rect x="6.2" y="2.5" width="11.6" height="19" rx="2.2" stroke="currentColor" stroke-width="1.8"/><path d="M10 5h4m-2 13.5h.01" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg>
  93.           <span>Мобильные игры</span>
  94.           <span class="catalog-chevron" aria-hidden="true">›</span>
  95.         </button>
  96.         <button class="catalog-side-link" type="button">
  97.           <svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><circle cx="12" cy="12" r="9" stroke="currentColor" stroke-width="1.8"/><path d="M3.4 12h17.2M12 3c2.2 2.5 3.3 5.5 3.3 9S14.2 18.5 12 21c-2.2-2.5-3.3-5.5-3.3-9S9.8 5.5 12 3Z" stroke="currentColor" stroke-width="1.5"/></svg>
  98.           <span>Сервисы и соцсети</span>
  99.           <span class="catalog-chevron" aria-hidden="true">›</span>
  100.         </button>
  101.         <button class="catalog-side-link" type="button">
  102.           <svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><rect x="3" y="4.2" width="18" height="12.3" rx="1.8" stroke="currentColor" stroke-width="1.8"/><path d="M8.5 20h7M12 16.5V20" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg>
  103.           <span>Программы</span>
  104.           <span class="catalog-chevron" aria-hidden="true">›</span>
  105.         </button>
  106.       </aside>
  107.       <div class="catalog-content">
  108.         <section class="catalog-showcase" aria-labelledby="catalogFeaturedTitle">
  109.           <h2 id="catalogFeaturedTitle">Игры и игровые сервисы <span aria-hidden="true">›</span></h2>
  110.           <div class="catalog-showcase-row" id="catalogFeatured"></div>
  111.         </section>
  112.         <section class="catalog-showcase catalog-new" aria-labelledby="catalogNewTitle">
  113.           <h2 id="catalogNewTitle">Новинки и предзаказы <span aria-hidden="true">›</span></h2>
  114.           <div class="catalog-showcase-row" id="catalogNew"></div>
  115.         </section>
  116.         <div class="catalog-platforms">
  117.           <section class="catalog-link-group">
  118.             <h3>Steam <span aria-hidden="true">›</span></h3>
  119.             <a href="#">Игры и DLC</a>
  120.             <a href="#">Пополнение баланса</a>
  121.             <a href="#">Подарочные карты</a>
  122.             <a href="#">Коллекционные карточки</a>
  123.             <a href="#">Смена региона</a>
  124.           </section>
  125.           <section class="catalog-link-group">
  126.             <h3>PlayStation <span aria-hidden="true">›</span></h3>
  127.             <a href="#">Игры и DLC</a>
  128.             <a href="#">Пополнение баланса</a>
  129.             <a href="#">Новые аккаунты</a>
  130.             <a href="#">PS Plus</a>
  131.             <a href="#">EA Play</a>
  132.           </section>
  133.           <section class="catalog-link-group">
  134.             <h3>Xbox <span aria-hidden="true">›</span></h3>
  135.             <a href="#">Игры и DLC</a>
  136.             <a href="#">Пополнение баланса</a>
  137.             <a href="#">Новые аккаунты</a>
  138.             <a href="#">Xbox Game Pass</a>
  139.             <a href="#">Услуги</a>
  140.           </section>
  141.           <section class="catalog-link-group">
  142.             <h3>Nintendo <span aria-hidden="true">›</span></h3>
  143.             <a href="#">Игры и DLC</a>
  144.             <a href="#">Подарочные карты</a>
  145.             <a href="#">Новые аккаунты</a>
  146.             <a href="#">NS Online</a>
  147.           </section>
  148.           <section class="catalog-link-group">
  149.             <h3>Battle.net <span aria-hidden="true">›</span></h3>
  150.             <a href="#">World of Warcraft</a>
  151.             <a href="#">Подарочные карты</a>
  152.             <a href="#">Прямое пополнение</a>
  153.             <a href="#">Новые аккаунты</a>
  154.             <a href="#">Смена региона</a>
  155.           </section>
  156.         </div>
  157.       </div>
  158.     </div>
  159.   </div>
  160. </header>