diff --git a/src/index.html b/src/index.html index 04bd19e..eff3a69 100644 --- a/src/index.html +++ b/src/index.html @@ -20,18 +20,18 @@ id="hamburger-button" onclick="toggleNav()" title="Toggle Navigation Menu" - > + > + - JobSimulator.Dev - Browse Challenges - Sign Up + + +
diff --git a/src/script.js b/src/script.js index 529f585..a60ab52 100644 --- a/src/script.js +++ b/src/script.js @@ -30,6 +30,17 @@ addEventListener("submit", (event) => { // 2. empty email // 3. taken email // 4. repeat email + let user = usersTable.find((user) => user.username === email); + if(user){ + renderEmailTakenError(); + } + else if(email.length !== 0){ + renderSuccess(); + usersTable.push({username: `${email}`}); + } + else { + renderEmailEmptyError(); + } }); let toggleNav = () => { diff --git a/src/styles.css b/src/styles.css index 2cbb72e..8873292 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: 1fr 1fr; grid-auto-rows: 10rem; gap: 1rem; padding-top: 2rem;