Signup tentatively works
This commit is contained in:
@@ -12,7 +12,7 @@ class Home extends Shadow {
|
||||
|
||||
NavBar()
|
||||
|
||||
img("_/icons/logo.svg", "2.5em")
|
||||
img("/_/icons/logo.svg", "2.5em")
|
||||
.onClick((done) => {
|
||||
if(!done) return
|
||||
window.navigateTo("/")
|
||||
@@ -24,7 +24,7 @@ class Home extends Shadow {
|
||||
|
||||
switch(window.location.pathname) {
|
||||
case "/":
|
||||
img("_/images/knight.png", "29vmax")
|
||||
img("/_/images/knight.png", "29vmax")
|
||||
.position("absolute")
|
||||
.left(50, vw).top(50, vh)
|
||||
.center()
|
||||
@@ -51,13 +51,12 @@ class Home extends Shadow {
|
||||
case "/join":
|
||||
Join()
|
||||
break;
|
||||
case "/signin":
|
||||
SignIn()
|
||||
break;
|
||||
|
||||
default:
|
||||
if(window.location.pathname.startsWith("/signup")) {
|
||||
SignupForm()
|
||||
} else if(window.location.pathname.startsWith("/signin")) {
|
||||
SignIn()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,12 @@ class SignIn extends Shadow {
|
||||
|
||||
render() {
|
||||
ZStack(() => {
|
||||
if(window.location.search.includes("new")) {
|
||||
p("Welcome to Hyperia! You may now log in.")
|
||||
.x(50, vw).y(40, vh)
|
||||
.center()
|
||||
}
|
||||
|
||||
form(() => {
|
||||
input("Email")
|
||||
.attr({name: "email", type: "email"})
|
||||
|
||||
Reference in New Issue
Block a user