accessibility tweaks

This commit is contained in:
bronku 2026-06-10 20:17:29 +02:00
parent 13b5e6d1a9
commit 9ec025b24c
10 changed files with 20 additions and 13 deletions

View file

@ -18,7 +18,7 @@ templ layout(activePage string) {
<script defer src="/album.js"></script>
</head>
<body hx-boost="true" hx-ext="preload" preload="mouseover">
<a href="#main-content" class="sr-only">Przejdź do treści</a>
<a href="#" onclick="document.querySelector('main').focus();return false" class="sr-only">Przejdź do treści</a>
<nav aria-label="Główna nawigacja">
<div>
<a href="/">
@ -33,9 +33,7 @@ templ layout(activePage string) {
<a class="btn" href="#footer">Kontakt</a>
</div>
</nav>
<div id="main-content" tabindex="-1">
{ children... }
</div>
{ children... }
<footer id="footer">
<div>
<div>