Intro Component built using SCSS, & Vanilla Javascript with validation
Design comparison
Solution retrospective
This is my solution to the Intro Component with Sign-Up form Challenge. I had gotten most of the inspiration of this project from @vanzasetia.
I struggled a lot while building this challenge. I'm very sure my solution was a clean one. So I might probably be trying out this challenge again but till then, your feedback and suggestions would be appreciated.
Community feedback
- @vanzasetiaPosted over 2 years ago
Hi, Majay! π
Congratulations on finishing this challenge! π
The hardest part of this challenge for me was when I created the Regular Expression for the validations. π How about you?
Anyway, here is some feedback from me.
- The alert message for the first name input says, "Must be made of alphabets, not contain numbers and contain 5-12 characters". But, when I only input two characters, it is a valid input. The same goes for the last name input.
- For the
error-image
, I recommend making it a background image instead of theinput
element. This way, you can clean up the HTML a little bit. input
withtype="submit"
was used before thebutton
element exist. It's best to avoid using legacy elements. So, I recommend usingbutton
element instead.
I notice that
main.css
is minified. It makes me harder to give feedback to your CSS because I have to open the Sass files one by one. So, I recommend adding the "non-minified" CSS for people to review.I hope this helps! Keep up the good work! π
Marked as helpful0@jonathan401Posted over 2 years ago@vanzasetia Thanks for pointing out the error with the first name and last name regex pattern π. I had completely forgot to update it while I was still testing validation on the input fields π . And for the
error-image
, I'll try fixing that as soon as I can βΊοΈ. I'll also make sure I fix that submit button up too π.And lastly for the
main.css
I had used the live sass compiler extension in Vs code, not really sure if I could configure this to not make themain.css
file not minified. I'll also be fixing that up too π. Thanks so much for your review βΊοΈ0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord