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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
>
- JobSimulator.Dev
- Browse Challenges
- Sign Up
+ JobSimulator.Dev
+ 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 @@
-
-
-
-
- Want to test your software dev skills?
+ Sign Up +
+
+ Browse Our Challenges
+ +
+
+
+
+ Sign Up & Get Started
+ +Want to test your software dev skills?
- Sign Up -
-
- Browse Our Challenges
- -
-
-
-
-