mrcbq / portfolio-mobile-first

Portfolio web page, it's a showcase of my main projects with my contact info. Built with JS Vanilla, HTML and CSS.
https://mrcbq.github.io/portfolio-mobile-first/
MIT License
5 stars 1 forks source link

Portfolio: validate contact form #10

Closed mrcbq closed 1 year ago

mrcbq commented 1 year ago

In this branch, we work on the contact form validation:

🏁 The content of the email field has to be in lowercase. 🏁 When the user submits the form, you check if the email is in lowercase. 🏁 If the validation is OK, the form is sent. 🏁 If the validation is not OK, you show an error message to the user near the submit button informing them of the error, and the form is not sent. 🏁 When the form validation is not OK, we provide the user with their text converted to lowercase so they can use it directly in the input field.