Skip to content

Commit

Permalink
fix feedback at login and register forms b00tc4mp#131
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDev21 committed May 5, 2024
1 parent 56e2b87 commit 461cf43
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,4 @@

.FormWithFeedback {
color: greenyellow;
}

.RegisterForm .FormWithFeedback {
top: 50rem;
}
5 changes: 5 additions & 0 deletions staff/jose-canto/socialcode/app/login/LoginComponent.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@
height: 200px;
background-image: linear-gradient(to right top, #f97c16, #d25a2c, #a54031, #742c2e, #441c22, #2f161b, #1c0e11, #1b1b1b, #1b1b1b, #1b1b1b, #000000, #000000);
letter-spacing: 2px;
}

.LoginForm p {
position: absolute;
top: 40rem;
}
2 changes: 0 additions & 2 deletions staff/jose-canto/socialcode/app/login/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ loginForm.onSubmit(event => {

loginForm.clear()

loginForm.setFeedback("User logged in ✅", "success")

setTimeout(() => {
location.href = '../home'
}, 1000)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@
height: 30rem;
background-image: linear-gradient(to right top, #f97c16, #d25a2c, #a54031, #742c2e, #441c22, #2f161b, #1c0e11, #1b1b1b, #1b1b1b, #1b1b1b, #000000, #000000);
letter-spacing: 2px;
}

.RegisterForm p {
position: absolute;
top: 49rem
}
4 changes: 1 addition & 3 deletions staff/jose-canto/socialcode/app/register/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ registerForm.onSubmit(event => {

registerForm.clear()

registerForm.setFeedback("User registered ✅", "success")

setTimeout(() => location.href = '../login', 1000)

} catch (error) {
Expand All @@ -49,7 +47,7 @@ registerForm.onSubmit(event => {
} else {
registerForm.setFeedback("❌ Sorry, ther was an error, please try again later ❌")
}
setTimeout(() => registerForm.clearFeedback(), 2000)
//setTimeout(() => registerForm.clearFeedback(), 2000)
}
})

Expand Down

0 comments on commit 461cf43

Please sign in to comment.