{% extends 'web/base.html.twig' %}{% block title %}{{'brands.title'| trans}}{% endblock %}{% block keywords %}{{ 'brands.keywords' | trans }}{% endblock %}{% block description %}{{ 'brands.metaDescription' | trans }}{% endblock %}{% trans_default_domain 'web' %}{% block javascripts %}<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/3.0.6/isotope.pkgd.min.js"></script>{#<script>// JavaScript pro posunutí stránky na daný blok s odpovídajícím písmenemconst alphabetNavLinks = document.querySelectorAll('.alphabet-nav a');alphabetNavLinks.forEach(link => {link.addEventListener('click', (e) => {e.preventDefault();const targetId = link.getAttribute('href');const targetBlock = document.querySelector(targetId);const targetBlockTop = targetBlock.getBoundingClientRect().top;const offset = window.pageYOffset;const screenHeight = window.innerHeight;const targetOffset = targetBlockTop + offset - (screenHeight / 5) + (targetBlock.clientHeight / 5);window.scrollTo({top: targetOffset,behavior: 'smooth'});});});</script>#}<script>const alphabetNavLinks = document.querySelectorAll('.alphabet-nav a');alphabetNavLinks.forEach(link => {link.addEventListener('click', (e) => {e.preventDefault();const targetId = link.getAttribute('href');const targetBlock = document.querySelector(targetId);const targetBlockTop = targetBlock.getBoundingClientRect().top;const offset = window.pageYOffset;const headerHeight = document.querySelector('.qodef-page-header').clientHeight;const targetOffset = targetBlockTop + offset - headerHeight - 20;window.scrollTo({top: targetOffset,behavior: 'smooth'});});});</script>{% endblock %}{% block body %}<style>.alphabet-block {display: block; /* Změna display na block */margin-bottom: 60px; /* Odstup mezi bloky */}h2 {font-size: 36px;text-transform: uppercase;}ul {list-style: none;margin: 0;padding: 0;flex-wrap: wrap;}li {margin-right: 20px;margin-bottom: 10px;}</style>{{ include('web/core/header.html.twig') }}<div class="qodef-content"><div class="qodef-content-inner"><div class="qodef-full-width"><div class="qodef-full-width-inner"><div class="qodef-grid-row"><div class="qodef-page-content-holder qodef-grid-col-12"><div class="qodef-row-grid-section-wrapper "><div class="qodef-row-grid-section"><div class="vc_row wpb_row vc_row-fluid vc_custom_1567069896783"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper"><div class="qodef-title-holder qodef-breadcrumbs-type qodef-title-full-width qodef-title-va-header-bottom breadcrumb"><div itemprop="breadcrumb" class="qodef-breadcrumbs"><a itemprop="url" href="{{ path('app_web_homepage') }}">Home</a><span class="qodef-delimiter"> /  </span><a itemprop="url" href="{{ path('app_web_brands') }}">{{ 'brands.title'|trans }}</a></div><div class="qodef-section-title-holder" style="text-align: center; padding-bottom: 50px;"><div class="qodef-st-inner"><h1 class="qodef-st-title">{{ 'brands.title'|trans }}</h1></div></div></div>{#Navigation to scroll#}<div class="alphabet-nav">{% for k,v in brands %}<a href="#{{ k }}">{{ k }}</a>{% endfor %}</div><div class="col-sm-12" style="padding-top: 30px">{% for k,v in brands %}<div class="alphabet-block"><div class="alphabet-title" id="{{ k }}">{{ k }}</div><div class="alphabet-list"><ul>{% for b in v %}<li><a href="{{ path('app_web_shop_detail',{'slug':b.stores[0].getSlug}) }}">{{ b.name }}</a></li>{% endfor %}</ul></div></div>{% endfor %}</div></div></div></div></div></div></div></div></div></div></div>{{ include('web/core/gift-card.html.twig') }}</div></div>{{ include('web/core/footer.html.twig') }}{% endblock %}