Website/app/frontend/templates/components/BurgerMenu/Nav.html.twig
Snoweuph 983cbb8f3b
Some checks failed
Quality Check / QS Backend (push) Successful in 20s
Quality Check / QS Frontend (push) Failing after 36s
Quality Check / QS Mixed (push) Successful in 34s
Use Symfony UX Twig
2024-07-21 13:55:15 +02:00

16 lines
561 B
Twig

<nav class="burger-menu-nav">
<ul class="burger-menu-nav__list">
{{ _self.nav_item('Test1', '#test1', 'list') }}
{{ _self.nav_item('Test2', '#test2', 'list') }}
{{ _self.nav_item('Test3', '#test3', 'list') }}
</ul>
</nav>
{% macro nav_item(name, href, icon) %}
<li class="burger-menu-nav__item">
<a class="burger-menu-nav__link" href="{{ href }}">
<twig:ux:icon name="ph:{{ icon }}" class="burger-menu-nav__icon"/>
<span class="flex-1">{{ name }}</span>
</a>
</li>
{% endmacro %}