webseite/templates/header_slim_submenu.html
muli 49c6063f5f fix: Move inline style to css file and set max-height.
This prevents the logo from overlapping the menu icon when the font-size is increased for accessibility.
2024-12-08 18:01:10 +01:00

47 lines
2.2 KiB
HTML

{% extends "layout.html" %}
{% block header %}
<div class="header__top_box">
<div class="header__logo_box">
<a class="header__homelink" href="{{ '/'|url }}" title="Startseite">
{% if '/images/wtf_logo.svg'|asseturl is defined -%}
<img class="header__logo" src="{{ '/images/wtf_logo.svg'|asseturl }}">
{%- endif %}
</a>
</div>
<nav class="header__secondary_nav">
<ul class="secondary_nav__navlist">
{% for alt in get_alts(this) %}
{%- if this.alt != alt and not (this.record.path == '/blog' or this.record.path == '/podcast') %}
<li class="secondary_nav__navitem">
<a class="secondary_nav__navlink" href="{{ '.'|url(alt=alt) }}">{{ alt|title|upper }}</a>
</li>
{% endif -%}
{% endfor %}
<li class="secondary_nav__navitem">
<a class="secondary_nav__navlink" href="https://forum.wtf-eg.de/">Login</a>
</li>
</ul>
</nav>
</div>
<div class="header__slim_box">
{% include "blocks/navigation.html" %}
<div class="slim_box__top_bar_left"></div>
<div class="slim_box__top_bar_middle"></div>
<div class="slim_box__top_bar_right"></div>
<div class="slim_box__unicorns"></div>
<div class="slim_box__submenu">
{# TODO: Links für Submenü aus navigation.json ziehen. #}
<a href="/blog">
Blog&nbsp;<img src="{{ 'images/rss_logo_rounded_square.svg'|asseturl }}" alt="Square orange RSS logo with rounded corners" aria-hidden="true">
</a>
<a href="/podcast">
Podcast&nbsp;<img src="{{ 'images/podcast_logo_rounded_square.svg'|asseturl }}" alt="Square orange podcast logo with rounded corners" aria-hidden="true">
</a>
<a href="https://www.breenbuedel.de/wtf-eg/" target="_blank">
Merch&nbsp;<img src="{{ 'images/merch_logo_rounded_square.svg'|asseturl }}" alt="Square orange merch logo with rounded corners" aria-hidden="true">
</a>
</div>
</div>
{% endblock %}