This is a solution to the Intro component with sign up form challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
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
formis submitted if:- Any
inputfield 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:
name@host.tld). The message for this error should say "Looks like this is not an email"
- Any
- Solution URL: intro-component-with-signup
- Live Site URL: intro-component-with-signup
- Semantic HTML5 markup
- SCSS
- BEM CSS Naming convention
- CSS custom properties
- CSS Grid
- Mobile-first workflow
- vanilla JavaScript
I learnt how to implement form validation using regular expressions in JavaScript
The email regex used in this project doesn't return a match for some valid emails. I plan to come up with a better regex pattern using the RFC 3696 specifications
- Regexr - This helped me test regex patterns before using them
- Regular expressions - This helped me learn about some advanced regular expression patterns
- Website - Olamide Atitebi
- Frontend Mentor - @olamide203
- Twitter - @olamide_farouq
