From 06fec182b1e3ec0814ae9832187800d512ba5578 Mon Sep 17 00:00:00 2001 From: Gianna <34192912+gvc222@users.noreply.github.com> Date: Wed, 20 Sep 2023 15:20:28 -0700 Subject: [PATCH 01/10] Add files via upload --- src/index.html | 8 ++++---- src/script.js | 21 +++++++++++++++++++-- src/styles.css | 10 ++++++++-- 3 files changed, 31 insertions(+), 8 deletions(-) diff --git a/src/index.html b/src/index.html index 04bd19e..e12766e 100644 --- a/src/index.html +++ b/src/index.html @@ -23,9 +23,9 @@ > - - Browse Challenges - Sign Up + + Browse Challenges + Sign Up @@ -44,7 +44,7 @@

Want to test your software dev skills?

-

Browse Our Challenges

+

Browse Our Challenges

{ addEventListener("submit", (event) => { event.preventDefault(); resetMessage(); - + let validUser = false; + let takenUser = false; let email = document.getElementById("email").value; + for (const user of usersTable) { + if (email === user.username) { + document.getElementById("taken-error-message").hidden = false; + takenUser = true; + } + } + if (email === '') { + document.getElementById("empty-error-message").hidden = false; + } else if (email && takenUser === false) { + document.getElementById("success-message").hidden = false; + validUser = true; + } + + if (validUser) { + usersTable = [...usersTable, {username: email}]; + } // TODO: Show Correct Status Messages on Signup Form // 1. successful signup // 2. empty email diff --git a/src/styles.css b/src/styles.css index 2cbb72e..40d1cc9 100644 --- a/src/styles.css +++ b/src/styles.css @@ -670,6 +670,8 @@ form > span { #jumbo-image { max-height: 20rem; /* TODO: Invert banner colors using CSS */ + -webkit-filter: invert(1); + filter: invert(1); } @media (max-width: 600px) { @@ -704,6 +706,10 @@ form > span { .dropdown-click.mobile .button { width: 100%; } + #nav-logo, #nav-challenges, #nav-signup { + display: none; + } + } @media (max-width: 768px) { .modal-content { @@ -877,7 +883,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: auto auto; grid-auto-rows: 10rem; gap: 1rem; padding-top: 2rem; @@ -1477,4 +1483,4 @@ form > span { .success-message { color: green; -} +} \ No newline at end of file From cc0db530098acad926846188a116affc62c4619b Mon Sep 17 00:00:00 2001 From: Gianna <34192912+gvc222@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:09:19 -0700 Subject: [PATCH 02/10] Fixed html anchor href link --- index.html | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 index.html diff --git a/index.html b/index.html new file mode 100644 index 0000000..3016f75 --- /dev/null +++ b/index.html @@ -0,0 +1,83 @@ + + + + + JobSimulator.Dev + + + + + + + + + + + + + + +
+
+

Browse Our Challenges

+ +
+
+ +
+
+
+

Sign Up & Get Started

+
+ + + + + +
+
+
+
+ + From 81c1f61b8e8d59c55773899ca59e68b084d8f8e6 Mon Sep 17 00:00:00 2001 From: Gianna <34192912+gvc222@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:15:02 -0700 Subject: [PATCH 03/10] Updated anchor tags to add href links --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 3016f75..18dd5dc 100644 --- a/index.html +++ b/index.html @@ -30,8 +30,8 @@ From 5b43fe1a57335e06e0ea98b336823f23ce8d9c19 Mon Sep 17 00:00:00 2001 From: Gianna <34192912+gvc222@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:24:39 -0700 Subject: [PATCH 04/10] Fix From 1c4ded31cb3cf1110de90a6d9583c16b545d660b Mon Sep 17 00:00:00 2001 From: Gianna <34192912+gvc222@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:26:03 -0700 Subject: [PATCH 05/10] Fix --- src/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/index.html b/src/index.html index e12766e..18dd5dc 100644 --- a/src/index.html +++ b/src/index.html @@ -23,15 +23,15 @@ > - - Browse Challenges - Sign Up + + Browse Challenges + Sign Up
From 99c285eff46915da8c13ebc11c603a776e33714b Mon Sep 17 00:00:00 2001 From: Gianna <34192912+gvc222@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:29:33 -0700 Subject: [PATCH 06/10] Fix #2 From e396b16ba89229026a6a8badb4686aa871000408 Mon Sep 17 00:00:00 2001 From: Gianna <34192912+gvc222@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:30:04 -0700 Subject: [PATCH 07/10] Delete index.html that is outside the src directory --- index.html | 83 ------------------------------------------------------ 1 file changed, 83 deletions(-) delete mode 100644 index.html diff --git a/index.html b/index.html deleted file mode 100644 index 18dd5dc..0000000 --- a/index.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - JobSimulator.Dev - - - - - - - - - - - - - - -
-
-

Browse Our Challenges

- -
-
- -
-
-
-

Sign Up & Get Started

-
- - - - - -
-
-
-
- - From ab5c394e7e7228d6d4f4c15dc56cf90c036e7eea Mon Sep 17 00:00:00 2001 From: Gianna <34192912+gvc222@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:31:16 -0700 Subject: [PATCH 08/10] Fixed navbar for mobile to show home logo --- src/styles.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles.css b/src/styles.css index 40d1cc9..b2ee596 100644 --- a/src/styles.css +++ b/src/styles.css @@ -706,7 +706,7 @@ form > span { .dropdown-click.mobile .button { width: 100%; } - #nav-logo, #nav-challenges, #nav-signup { + #nav-challenges, #nav-signup { display: none; } From ec821a304474b487870eb119d47763b57454089c Mon Sep 17 00:00:00 2001 From: Gianna <34192912+gvc222@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:49:47 -0700 Subject: [PATCH 09/10] Added class to anchor tag for mobile nav --- src/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.html b/src/index.html index 18dd5dc..eadeec6 100644 --- a/src/index.html +++ b/src/index.html @@ -30,8 +30,8 @@ From 6c28beb899a118176102209399a57495450c3345 Mon Sep 17 00:00:00 2001 From: Gianna <34192912+gvc222@users.noreply.github.com> Date: Wed, 20 Sep 2023 18:48:53 -0700 Subject: [PATCH 10/10] Hopefully final fix --- src/index.html | 8 ++++---- src/styles.css | 8 ++------ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/index.html b/src/index.html index eadeec6..8a891f8 100644 --- a/src/index.html +++ b/src/index.html @@ -24,14 +24,14 @@ > - Browse Challenges - Sign Up + Browse Challenges + Sign Up
- Browse Challenges - Sign Up + Browse Challenges + Sign Up
diff --git a/src/styles.css b/src/styles.css index b2ee596..b65f24d 100644 --- a/src/styles.css +++ b/src/styles.css @@ -686,7 +686,7 @@ form > span { .dropdown-click.mobile .dropdown-content { position: relative; } - .hide-small { + .hide-medium{ display: none !important; } .mobile { @@ -706,10 +706,6 @@ form > span { .dropdown-click.mobile .button { width: 100%; } - #nav-challenges, #nav-signup { - display: none; - } - } @media (max-width: 768px) { .modal-content { @@ -731,7 +727,7 @@ form > span { } } @media (max-width: 992px) and (min-width: 601px) { - .hide-medium { + .hide-small { display: none !important; } }