adding qr codes, converting site to quill

This commit is contained in:
metacryst
2025-10-29 00:06:59 -05:00
parent 9a829ab34f
commit a61562abfb
16 changed files with 353 additions and 130 deletions

View File

@@ -30,29 +30,23 @@ css(`
}
`)
export default class ProfileMenu extends HTMLElement {
connectedCallback() {
this.render()
util.observeClassChange(this, (cl) => {
this.render()
})
}
class ProfileMenu extends Shadow {
render() {
if(this.classList.contains("open")) {
setTimeout(() => {
this.innerHTML = /* html */`
<a href="signout" style="position: absolute; left: 0px; color: white; z-index: 2">sign out</a>
<p>Profile</p>
`
}, 200)
} else {
this.innerHTML === ""
}
ZStack(() => {
if(this.classList.contains("open")) {
setTimeout(() => {
// this.innerHTML = /* html */`
// <a href="signout" style="position: absolute; left: 0px; color: white; z-index: 2">sign out</a>
// <p>Profile</p>
// `
}, 200)
}
})
util.observeClassChange(this, (cl) => {
})
}
}
customElements.define("profile-menu", ProfileMenu)
registerShadow(ProfileMenu, "profile-menu")