Design comparison
Solution retrospective
I did go overboard on this project. I didn't use the provided svg background waves, instead, I built randomly generated waves using javascript. But other than that, this project is very simple, and the only Javascript needed is the form validation. I've already done a simple email validation from my previous FrontendMentor challenge(Base Apparel coming soon page) so I just copy and paste it.
For the randomly generated waves, this script is heavily inspired from a library: Wavyfy by peacepostman. And if you wanna try it, I recommend using Wavyfy instead of mine. Wavyfy has a lot more functionality and mine is a little messy
Also, I did consider users who turned off their animation on their device prefers-reduced-motion: reduce
. If you do, it will only generate wave once. And if you are not sure if it's turned off, check the console. I leave a console.log()
to see if it's ON
or OFF
.
If you guys have any suggestion, please don't hesitate to comment. Thaaaanks!
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