Adding buttons to market

This commit is contained in:
metacryst
2025-11-06 02:22:44 -06:00
parent 8a8fb7f4b1
commit cb526b5ec0
5 changed files with 54 additions and 31 deletions

View File

@@ -58,8 +58,8 @@ class Home extends Shadow {
.top("3em")
.right("2em")
.background("transparent")
.border("1px solid var(--tan)")
.color("var(--tan)")
.border(window.location.pathname === "/" ? "1px solid var(--tan)" : "1px solid var(--accent)")
.color(window.location.pathname === "/" ? "var(--tan)" : "var(--accent)")
.borderRadius(5, px)
.onHover(function (hovering) {
console.log('hovering', hovering, this)
@@ -68,10 +68,11 @@ class Home extends Shadow {
this.style.color = "black"
} else {
this.style.background = ""
this.style.color = "var(--tan)"
this.style.color = window.location.pathname === "/" ? "var(--tan)" : "var(--accent)"
}
})
.onNavigate(function () {
console.log("navigate")
if(window.location.pathname === "/") {
this.style.border = "1px solid var(--tan)"
this.style.color = "var(--tan)"
@@ -81,7 +82,6 @@ class Home extends Shadow {
}
})
})
}
}