diff --git a/src/index.html b/src/index.html index 04bd19e..aa86736 100644 --- a/src/index.html +++ b/src/index.html @@ -23,15 +23,18 @@ > - JobSimulator.Dev - Browse Challenges - Sign Up + JobSimulator.Dev + +
diff --git a/src/script.js b/src/script.js index 529f585..dd52e2c 100644 --- a/src/script.js +++ b/src/script.js @@ -30,6 +30,15 @@ addEventListener("submit", (event) => { // 2. empty email // 3. taken email // 4. repeat email + if (email === "") return renderEmailEmptyError() + + for (const user of usersTable) + { + if(user.username === email) return renderEmailTakenError() + } + + usersTable.push({username: email}) + renderSuccess() }); let toggleNav = () => { diff --git a/src/styles.css b/src/styles.css index 2cbb72e..8d60fa3 100644 --- a/src/styles.css +++ b/src/styles.css @@ -670,6 +670,7 @@ form > span { #jumbo-image { max-height: 20rem; /* TODO: Invert banner colors using CSS */ + filter: invert(1); } @media (max-width: 600px) { @@ -877,7 +878,7 @@ form > span { #challenge-grid { display: grid; /* TODO: Fix Issue, Tiles Need to be 2x2 Grid. Change only grid-template-columns */ - grid-template-columns: none; + grid-template-columns: repeat(2, 1fr); grid-auto-rows: 10rem; gap: 1rem; padding-top: 2rem;