pyro/templates/banner.html
Irrlicht aefb9d8ac8 [javascript] Use event listener registration on buttons
- To respect the Contant Security Policy (CSP) of the web site, remove
  the "onclick" attribute of button and use event listener through
  "addEventListener" function
2025-07-15 17:55:10 +02:00

29 lines
1.1 KiB
HTML

<header class="site-header">
<div class="banner">
<div class="logo-block">
{% if SITEAVATAR %}
<img class="logo" src="{{ SITEURL }}/{{ SITEAVATAR }}" alt="{{ SITEAVATAR_ALT }}">
{% endif %}
</div>
<div class="title-block">
<a href="{{ SITEURL }}/">
<div class="title">{{ SITENAME }}</div>
</a>
<div class="subtitle">{{ SITESUBTITLE }}</div>
</div>
<div class="social">
<div class="social-left">
<button id="menu-button" class="menu-button" title="menu" aria-label="navigation menu">
<img class="icon" src="/theme/icons/menu.svg" alt="logo menu">
</button>
</div>
<div class="social-right">
{% for social in SOCIAL %}
<a href="{{ social[1] }}" rel="me" title="{{ social[0] }}">
<img class="icon" src="/theme/icons/{{ social[0] }}.svg" alt="logo {{ social[0] }}">
</a>
{% endfor %}
</div>
</div>
</div>
</header>