Submitted about 4 years ago
Ping Coming Soon One Column Landing Page using HTML, CSS and JS
@SankThomas
Design comparison
SolutionDesign
Solution retrospective
Any feedback on how to do the form validation
Community feedback
- @nikkuvPosted about 4 years ago
First, apply all error styles with a class to the element, then select the element in js DOM and add that class to the element using the email regex function with conditionals. For email validation, you can use this email regex function👇
function validateEmail(email) { const re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(String(email).toLowerCase()); }
1 - @bashirogluPosted about 4 years ago
@SankThomas hi, It really looks good, in order to make it more appealing, you can add some hover effects to button and social icons. Good luck
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord