Frontend Mentor Project
Frontend Mentor Project
My challenge was to build an introductory component and get it to look as close to the design as possible.
My users should be able to:
form
is submitted if:input
field is empty. The message for this error should say “[Field Name] cannot be empty”name@host.tld
). The message for this error should say “Looks like this is not an email”I chose this project to practice using Vanilla JS. I used MDN Form Validation as a resource to organize my JS code and to learn about using RegEx to validate email addresses. This resource was very helpful. Initially thought that my error messages should be placed in my JS code. However, it was more efficient to include in my HTML code and use CSS to hide the messages until needed.
You can see the my final design here: Intro Component with Sign-Up Form
Designer: T.Lanette Pollard
Challenge by Frontend Mentor