templates/layout/navigation/brick_navigation.html.twig line 1

Open in your IDE?
  1. {% set anchors = anker_brick_navigation_get(document) %}
  2. {# Dekstop Navigation #}
  3. {% if anchors %}
  4.   <div class="hidden w-full bg-neutral-50 sm:block">
  5.     <div class="container justify-end hidden w-full gap-4 py-4 sm:flex">
  6.       {% for anchor in anchors %}
  7.         <a target="_top" href="{{ '#' ~ anchor }}" class="btn-sm btn btn-neutral">
  8.           {{ anchor|trans }}
  9.         </a>
  10.       {% endfor %}
  11.     </div>
  12.   </div>
  13.   {# Mobile Scrollable Navigation #}
  14.   <div class="sticky w-full max-w-full bg-neutral-50 z-1500 sm:hidden top-20">
  15.     <div data-controller="section-navigation"
  16.       data-section-navigation-active-class="text-white bg-black"
  17.       data-section-navigation-inactive-class="text-black bg-neutral-200 "
  18.       id="profile-scroll-bar"
  19.       class="relative inline-flex w-screen gap-4 p-3 overflow-scroll sm:my-3 snap-x snap-mandatory sm:hidden">
  20.       {% for anchor in anchors %}
  21.         <a target="_top"
  22.           href="{{ '#' ~ anchor }}"
  23.           class="flex-none p-3 text-sm font-medium tracking-widest text-black uppercase bg-neutral-200 snap-center snap-always">
  24.           {{ anchor|trans }}
  25.         </a>
  26.       {% endfor %}
  27.     </div>
  28.   </div>
  29. {% endif %}