This is a solution to the Newsletter sign-up form with success message challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Note: Delete this note and update the table of contents based on what sections you keep.
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
- Solution URL: Github Repository
- Live Site URL: Github Live Page
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
-
It is not required but I abled to a the email to an array.
-
I learned that it is best practice to test right after the completion of an expected working component. This way you have shorter amount of code to debug.
-
Misspelled words are the most common bug issue that is at the result of fast typing to get the project done I considerable profession time. Slow down a little and get it done right the first time.
I had to research and copy and this code below because I couldn't remember it. I still need some info on what it means.
// Regular expression for validating email format
const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
- I Leverage my skill in JavaScript more and more.
- I am getting really awesome at CSS.
- Workik - This give in dept explination of why the bug was a bug. Getting explination behind the problem is good.
- Website - Ishmael Sunday
- Frontend Mentor - @okayishmael
N/A