This is a solution to the Newsletter sign-up form with success message challenge on Frontend Mentor.
Users should be able to:
- Add their email and submit the form
- See a success message with their email after successfully submitting the form
- See form validation messages if:
- The field is left empty
- The email address is not formatted correctly
- View the optimal layout for the interface depending on their device's screen size
- See hover and focus states for all interactive elements on the page
Screenshot 1 Screenshot 2 Screenshot 3
- Solution URL: Solution url
- Live Site URL: Live site
- HTML
- CSS
- Flexbox
- CSS Grid
- Javascript
Previously, I would take my time to write out my mark-up before moving on to styling in CSS. However, in this project, i styled my mark-up as I went along and discovered I spent less time on the project.
My main problem was the email validation. I need to build up on my knowledge of regular expressions for inputs and forms in general.