Compare commits

...

2 Commits

Author SHA1 Message Date
metacryst
3bf23daa7a Merge branch 'main' of https://git.sun.museum/sam/ForumMobile 2026-02-06 06:41:56 -06:00
metacryst
6cbb4c8dad basic sidebar toggle 2026-02-06 06:41:54 -06:00

View File

@@ -9,6 +9,22 @@ class Home extends Shadow {
render() {
ZStack(() => {
img("/_/icons/hamburger.svg", "3em")
.position("absolute")
.zIndex(2)
.left(2, em)
.top(2, em)
.onTouch(function (start) {
console.log("touch", start)
if(start) {
this.style.scale = "0.8"
} else if(start === false) {
this.style.scale = ""
$("sidebar-").toggle()
}
})
Sidebar()
VStack(() => {
@@ -37,6 +53,8 @@ class Home extends Shadow {
// this.rerender()
// })
})
.backgroundColor("var(--main)")
.overflowX("hidden")
.height(100, vh)
}