{% set topbarpages = build_property_nav(document, 'navigationTopbar').pages|filter(page => page.visible) %}
<div class="hidden bg-secondary-900 border-t-5 border-primary lg:flex z-1700">
<div class="container flex items-center justify-between p-3 text-white max-w-screen-xxl">
<div class="flex items-center justify-start space-x-8">
{# Topbar Pages #}
<ul class="flex gap-5 text-sm">
<li>
<a href="/{{app.request.locale}}" class="flex items-center gap-2 px-2 text-white">
{# prettier-ignore #}
{% include "icons/home.svg.twig" ignore missing with {class: "w-5 h-5 text-primary"} %}
<span>{{ "topbar-homepage"|trans }}</span>
</a>
</li>
{% if topbarpages %}
{% for page in topbarpages %}
<li>
<a href="{{ page.href }}" target="{{ page.target }}" class="flex items-baseline px-2 gap-2 text-white {{ page.active ? 'font-medium' : '' }}">
{# prettier-ignore #}
{% include "icons/" ~ page.document.property("icon") ~ ".svg.twig" ignore missing with {class: "w-5 h-5 text-primary"} %}
<span>{{ page.label }}</span>
</a>
</li>
{% endfor %}
{% endif %}
</ul>
</div>
<div class="flex gap-6">
{# User #}
{% include "layout/header/topbar-user.html.twig" %}
{# Language #}
{% include "layout/navigation/language.html.twig" %}
</div>
</div>
</div>