[TASK] improve a11y in header nav

This commit is contained in:
Marie Birner
2025-08-02 19:45:09 +02:00
parent 5c81cd4995
commit 328bcad296
2 changed files with 15 additions and 4 deletions

View File

@@ -16,9 +16,21 @@ pub fn new(content: Markup) -> Markup {
li { a href="/" { strong { "Digital Shadows" } } }
}
ul {
li { a href="/" { "🏠" } }
li { a href="/game" { "📸" } }
li { div id="theme_switcher" style="width: 20px; height: 20px;" {} }
li {
a href="/"{
span role="img" aria-label="home" {
"🏠"
}
}
}
li {
a href="/game" {
span role="img" aria-label="camera" {
"📸"
}
}
}
li { span id="theme_switcher" style="width: 20px; height: 20px;" {} }
}
}
}

View File

@@ -17,7 +17,6 @@ h1 {
margin-top: clamp(3rem, 1.875rem + 2vw, 5rem);
margin-bottom: clamp(5rem, 1.875rem + 2vw, 8rem);
text-align: center;
text-shadow: 0 1px 0px #378ab4, 1px 0 0px #5dabcd, 1px 2px 1px #378ab4, 2px 1px 1px #5dabcd, 2px 3px 2px #378ab4, 3px 2px 2px #5dabcd, 3px 4px 2px #378ab4, 4px 3px 3px #5dabcd, 4px 5px 3px #378ab4, 5px 4px 2px #5dabcd, 5px 6px 2px #378ab4, 6px 5px 2px #5dabcd, 6px 7px 1px #378ab4, 7px 6px 1px #5dabcd, 7px 8px 0px #378ab4, 8px 7px 0px #5dabcd;
}
header a {