templates/components/header/categories.html.twig line 1

Open in your IDE?
  1. {% set categories = get_featured_categories() %}
  2. {% if (categories | length) > 0 %}
  3.   <div class="navbar-main__categories fixed z-50 top-20">
  4.     <div class="h-[50px] navbar-content py-2 px-edge overflow-auto flex mx-auto">
  5.         {% for category in categories %}
  6.         <a
  7.             href="{{ path('product_category_show', {'slug': category.slug}) }}"
  8.             class="navbar-main__categories__link"
  9.         >{{ category.name }}</a>
  10.         {% endfor %}
  11.         <a href="https://youtu.be/3uFi_I3va-0?si=9MUYGhf3Ir5ap4qq" target="blank" class="hidden navbar-main__categories__link video-onboarding">{{'general.video-onboarding' | trans}}</a>
  12.     </div>
  13.   </div>
  14. {% endif %}