[TASK] improve a11y in header nav
This commit is contained in:
18
src/page.rs
18
src/page.rs
@@ -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;" {} }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user