adding stripe section, parts of dashboard

This commit is contained in:
metacryst
2026-01-07 18:30:58 -06:00
parent eced0b72d1
commit f0694f0b99
24 changed files with 183 additions and 411 deletions

View File

@@ -25,9 +25,8 @@ css(`
border-radius: 5px;
text-underline-offset: 5px;
}
app-menu p:hover {
text-decoration: underline;
transform: translateY(-5%)
app-menu img:hover {
border: "1px solid black";
}
app-menu p.touched {
text-decoration: underline;
@@ -56,19 +55,14 @@ class AppMenu extends Shadow {
render() {
VStack(() => {
HStack(() => {
p("Forum")
p("Messages")
p("Market")
p("Jobs")
img("/_/icons/house.svg", "1.5em")
img("/_/icons/nodes.svg", "1.5em")
img("/_/icons/forum.svg", "1.5em")
img("/_/icons/people.svg", "1.5em")
})
.justifyContent("center")
.gap(1.5, em)
.gap(3, em)
.paddingRight(2, em)
img("/_/images/divider.svg", "40vw")
.attr({
"id": "divider",
})
})
.gap(0.5, em)
.onNavigate(() => {
@@ -81,14 +75,14 @@ class AppMenu extends Shadow {
}
})
.onAppear(() => {
Array.from(this.querySelectorAll("p")).forEach((el) => {
Array.from(this.querySelectorAll("img")).forEach((el) => {
el.addEventListener("mousedown", (e) => {
el.classList.add("touched")
})
})
window.addEventListener("mouseup", (e) => {
let target = e.target
if(!target.matches("app-menu p")) {
if(!target.matches("app-menu img")) {
return
}

View File

@@ -8,23 +8,17 @@ class Home extends Shadow {
render() {
ZStack(() => {
img("/_/icons/logo.svg", "2.5em")
.position("fixed")
.left(3, em)
.top(3, vh)
.zIndex(3)
.onClick(() => {
window.navigateTo("/")
})
div()
.width(100, vw)
.height(100, vh)
.margin(0)
.backgroundImage("/_/images/the_return.webp")
.backgroundSize("cover")
.backgroundPosition("48% 65%")
.backgroundRepeat("no-repeat")
VStack(() => {
img(document.documentElement.classList.contains("red") ? "/_/icons/quillblack.svg" : "/_/icons/quill.svg", "2.5em")
.position("fixed")
.left(3, em)
.top(3, vh)
.zIndex(3)
.onClick(() => {
window.navigateTo("/")
})
})
switch(window.location.pathname) {
case "/":
@@ -82,7 +76,7 @@ class Home extends Shadow {
.gap(1, em)
.xRight(2, em).y(2.3, em)
.position("fixed")
.alignVertical("center")
.verticalAlign("center")
})
}