Finish up new index page and improve accessibility

This commit is contained in:
Bad Manners 2024-08-15 23:56:11 -03:00
parent e3d1f6999b
commit 403ae18b6e
23 changed files with 304 additions and 185 deletions

View file

@ -12,7 +12,7 @@
}
document.querySelectorAll<HTMLElementTagNameMap["button"]>("button[data-dark-mode]").forEach((button) => {
button.classList.remove("hidden");
button.removeAttribute("aria-hidden");
button.setAttribute("aria-hidden", "false");
button.addEventListener("click", (e) => {
e.preventDefault();
if (colorScheme === "dark") {