Adding buttons to market
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user