Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
antono91 committed Jun 27, 2023
1 parent 85dd9f4 commit 52e38d0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
13 changes: 13 additions & 0 deletions src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,24 @@ addEventListener("submit", (event) => {

let email = document.getElementById("email").value;

userObject = usersTable.find(element => element["username"] == email)

if (userObject){
renderEmailTakenError();
} else if(email == "") {
renderEmailEmptyError();
} else {
renderSuccess();
usersTable.push({username: email})
}

// TODO: Show Correct Status Messages on Signup Form
// 1. successful signup
// 2. empty email
// 3. taken email
// 4. repeat email


});

let toggleNav = () => {
Expand Down
7 changes: 4 additions & 3 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,8 @@ form > span {

#jumbo-image {
max-height: 20rem;
/* TODO: Invert banner colors using CSS */
/* TODO: Invert banner colors using CSS done */
filter: invert(1);
}

@media (max-width: 600px) {
Expand Down Expand Up @@ -876,8 +877,8 @@ form > span {

#challenge-grid {
display: grid;
/* TODO: Fix Issue, Tiles Need to be 2x2 Grid. Change only grid-template-columns */
grid-template-columns: none;
/* TODO: Fix Issue, Tiles Need to be 2x2 Grid. Change only grid-template-columns done*/
grid-template-columns: 50% 50%;
grid-auto-rows: 10rem;
gap: 1rem;
padding-top: 2rem;
Expand Down

0 comments on commit 52e38d0

Please sign in to comment.