From bcf0be5888c964a0958f2586c961af97d78960d7 Mon Sep 17 00:00:00 2001 From: Mike Smith <89040888+smiggiddy@users.noreply.github.com> Date: Tue, 7 Nov 2023 10:33:06 -0500 Subject: [PATCH] feat: added javascript error validation --- signup_form/css/style.css | 13 +++++++++++++ signup_form/index.html | 6 ++++-- signup_form/js/script.js | 29 +++++++++++++++++++++++------ 3 files changed, 40 insertions(+), 8 deletions(-) diff --git a/signup_form/css/style.css b/signup_form/css/style.css index 5b19b22..92dbf97 100644 --- a/signup_form/css/style.css +++ b/signup_form/css/style.css @@ -2,6 +2,7 @@ --main-bg: #C4DFDF; --light-bg: #F8F6F4; --text-color: rgb(22, 72, 99); + --error-color: #EF6262; } @@ -74,6 +75,14 @@ margin-bottom: 5px; } + +.error { + color: var(--error-color); + font-size: 0.85rem; + margin-left: 5px; +} + + @media only screen and (min-width: 700px) { .container { flex-direction: row; @@ -147,3 +156,7 @@ body { font-size: 16px; color: var(--text-color); } + +button { + cursor: pointer; +} \ No newline at end of file diff --git a/signup_form/index.html b/signup_form/index.html index 4eec80b..ea0301a 100644 --- a/signup_form/index.html +++ b/signup_form/index.html @@ -2,7 +2,7 @@
-