This is a solution to the intro-component-with-signup-form
Your challenge is to build out this introductory component and get it looking as close to the design as possible.
Your users should be able to:
- View the optimal layout for the site depending on their device's screen size
- See hover states for all interactive elements on the page
- Receive an error message when the
form
is submitted if:- Any
input
field is empty. The message for this error should say "[Field Name] cannot be empty" - The email address is not formatted correctly (i.e. a correct email address should have this structure:
[email protected]
). The message for this error should say "Looks like this is not an email"
- Any
- Error Message
- Solution URL: (https://github.com/Anubhav-Ray/Intro-Component-With-Signup-Form)
- Live Site URL: (https://anubhav-ray.github.io/Intro-Component-With-Signup-Form/)
- I first focused on making the mobile view of the given design and then styled the input elements of the form.
- My Next focus was on making the client side validation and give the appropriate message for different incorrect inputs from the user upon submission.
- Semantic HTML5 markup
- CSS custom properties
- Bootstrap
- Mobile-first workflow
- This project helped me in learning to validate the input from user using Regex.
- It also helped in learning how to control the flow to give message for a specific input and style it accordingly.
- I am looking forward to take on more challenging projects to apply my JavaScript knowledge and increase my understanding of the Web Development.
- StackOverflow - Helped with validation
- w3Schools - Helped me with CSS
Frontend Mentor - @Anubhav-Ray