Interactive rating component built with Flex and ❤️

Solution retrospective
Had a lot of fun with this one. The JS side of things was interesting and a nice break from writing regex and toggling error classes :)
Please log in to post a comment
Log in with GitHubCommunity feedback
- @NeoScripter
Nice! I also recently did this one. Just as an improvement (just my idea), you could add a way to return back to the survey. In my case, I set timeout in JS file like that:
setTimeout(() => { document.getElementById('result-page').style.display = 'none'; document.getElementById('evaluation-page').style.display = 'grid'; document.querySelectorAll('#evaluation-page button').forEach(b => { b.style.backgroundColor = ''; }); selectedScore = null; }, 3000);
And will return back to the first page after 3 seconds. But that's just my idea.
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