Design comparison
Solution retrospective
I'm happy:
- to have used a regular expression for the first time.
- to have used
FromData
to retrieve data from the form. - to have made a form accessible even with the keyboard.
The biggest challenge I found was on the desktop design, managing to align the left image with the right margin and the correct distance from the text took more time than I had anticipated. I overcame this difficulty by trial and error until I managed to get where I wanted with grid.
What specific areas of your project would you like help with?I think I messed up with:
inputEmail.classList.remove("border-tomato"); inputEmail.classList.remove("bg-tomato-light"); inputEmail.classList.remove("text-tomato");
Is there a way to make this part of the code simpler and less repetitive?
I did the same thing to add the classes I wanted, it seems like too much code and too repetitive, I was thinking about toggle
but it might not work as intended.
Join 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