temporary signout fix, small aesthetics
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
--accent: black;
|
||||
--accent2: black;
|
||||
|
||||
--parchment: #FFEBCC;
|
||||
--parchment: #FEBA7D;
|
||||
--gold: #FEBA7D;
|
||||
--divider: #bb7c36;
|
||||
--green: #0857265c;
|
||||
|
||||
@@ -32,7 +32,6 @@ class Home extends Shadow {
|
||||
.border("1px solid var(--accent)")
|
||||
.attr({value: "dark"})
|
||||
.onChange((e) => {
|
||||
console.log("onchange")
|
||||
document.documentElement.className = e.target.value
|
||||
localStorage.setItem("theme", e.target.value);
|
||||
const event = new CustomEvent('themechange', {
|
||||
|
||||
@@ -40,6 +40,10 @@ class Sidebar extends Shadow {
|
||||
.height(100, vh)
|
||||
.borderRight("1px solid var(--accent)")
|
||||
.zIndex(3)
|
||||
.onEvent("themechange", () => {
|
||||
console.log("change")
|
||||
this.rerender()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -127,6 +127,8 @@ class Home extends Shadow {
|
||||
SignupForm()
|
||||
} else if(window.location.pathname.startsWith("/login")) {
|
||||
SignIn()
|
||||
} else {
|
||||
SignIn()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user