From 32ae61a7a10207b24a9fe089726af141f03b7ba6 Mon Sep 17 00:00:00 2001 From: deepeshyadavrd Date: Fri, 15 Nov 2024 11:06:13 +0530 Subject: [PATCH 1/3] logo rendering fixed --- src/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index e7c4417..6fcb250 100644 --- a/src/index.html +++ b/src/index.html @@ -9,7 +9,7 @@
- + From 5196fb3ca1bf93d57196911423266895375ae5b7 Mon Sep 17 00:00:00 2001 From: deepeshyadavrd Date: Fri, 15 Nov 2024 11:09:55 +0530 Subject: [PATCH 2/3] email and password validation done --- src/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.html b/src/index.html index 6fcb250..672e976 100644 --- a/src/index.html +++ b/src/index.html @@ -14,10 +14,10 @@ - + - + From 975f0021a9e7d1e352878c3a92e662031705d59a Mon Sep 17 00:00:00 2001 From: deepeshyadavrd Date: Fri, 15 Nov 2024 11:19:09 +0530 Subject: [PATCH 3/3] css and js part done --- src/script.js | 8 ++++++++ src/styles.css | 1 + 2 files changed, 9 insertions(+) diff --git a/src/script.js b/src/script.js index 4e3be16..a8008ba 100644 --- a/src/script.js +++ b/src/script.js @@ -30,4 +30,12 @@ addEventListener("submit", (event) => { 2. If they are, call renderSuccess() 3. If they are not, call renderError() */ + const user = usersTable.find( + (u) => u.username === email && u.password === password + ); + if (user) { + renderSuccess(); + } else { + renderError(); + } }); diff --git a/src/styles.css b/src/styles.css index 25969e5..22a4fac 100644 --- a/src/styles.css +++ b/src/styles.css @@ -2,6 +2,7 @@ body { height: 100vh; display: flex; /* TODO: Adjust CSS so that form is centered on page */ + justify-content: center; align-items: center; }