Small edits, fixing bug with app spawning, working on forum page

This commit is contained in:
metacryst
2025-11-20 00:44:42 -06:00
parent 2bc5c00830
commit 30faf12b20
9 changed files with 42 additions and 81 deletions

View File

@@ -58,7 +58,6 @@ class AppMenu extends Shadow {
VStack(() => {
HStack(() => {
p("Forum")
p("Tasks")
p("Messages")
p("Market")
p("Jobs")

View File

@@ -18,9 +18,6 @@ class AppWindow extends Shadow {
case "Forum":
Forum()
break;
case "Tasks":
Tasks()
break;
case "Messages":
Messages()
break;
@@ -32,15 +29,15 @@ class AppWindow extends Shadow {
break;
}
})
.display(this.app ? '' : 'none')
.position("fixed")
.display(this.app ? 'block' : 'none')
.width(100, "vw")
.height(100, "vh")
.background("var(--main)")
.top(0)
.left(0)
.background("#591d10")
.x(0)
.y(0)
// .backgroundImage("/_/images/fabric.png")
// .backgroundSize("33vw auto")
// .position("fixed")
}
open(app) {

View File

@@ -43,10 +43,6 @@ class Home extends Shadow {
AppWindow("Market")
AppMenu("Market")
break;
case "/app/tasks":
AppWindow("Tasks")
AppMenu("Tasks")
break;
case "/app/forum":
AppWindow("Forum")
AppMenu("Forum")
@@ -67,7 +63,7 @@ class Home extends Shadow {
.top(5, vh)
.right(2, em)
.background("transparent")
.border(window.location.pathname === "/" ? "1px solid var(--tan)" : "1px solid var(--accent2)")
.border(window.location.pathname === "/" ? "1px solid var(--tan)" : "0.5px solid #bb7c36")
.color(window.location.pathname === "/" ? "var(--tan)" : "var(--accent)")
.borderRadius(5, px)
.onHover(function (hovering) {
@@ -82,7 +78,7 @@ class Home extends Shadow {
this.style.border = "1px solid var(--tan)"
this.style.color = "var(--tan)"
} else {
this.style.border = "1px solid var(--accent2)"
this.style.border = "0.5px solid #bb7c36"
this.style.color = "var(--accent)"
}
})