change logout button based on background

This commit is contained in:
metacryst
2025-10-29 21:51:02 -05:00
parent eaa90703a1
commit 759ee54c32
3 changed files with 33 additions and 3 deletions

View File

@@ -66,6 +66,15 @@ class Home extends Shadow {
this.style.color = "var(--tan)"
}
})
.onNavigate(function () {
if(window.location.pathname === "/") {
this.style.border = "1px solid var(--tan)"
this.style.color = "var(--tan)"
} else {
this.style.border = "1px solid var(--accent)"
this.style.color = "var(--accent)"
}
})
})
}