Interactive rating component

Solution retrospective
I'm most proud of how clean and responsive the final layout turned out, especially on small screens. I also enjoyed the process of getting the rating logic and thank-you state to work smoothly with JavaScript.
If I were to do it again, I’d focus earlier on structuring my CSS better to avoid little tweaks at the end. I’d also spend more time up front planning the JavaScript, rather than fixing things as I went.
What challenges did you encounter, and how did you overcome them?One challenge was getting the selected rating button to stay styled correctly after clicking at first, it wasn't keeping the "active" style. I realized I needed to remove the class from all buttons first before adding it to the selected one.
Another issue was that the layout broke slightly between 375px and 480px screen sizes. I solved that by carefully adjusting max-width, padding, and making sure my container respected smaller viewports properly.
What specific areas of your project would you like help with?I'd love feedback on how I structured my JavaScript, especially if there are cleaner or more scalable ways to handle toggling views and managing state.
Also open to tips on making my CSS transitions and button styling feel more polished and modern.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Levin Kooss's solution.
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