Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Rating Component using Tailwind CSS

P

@XenoMee

Desktop design screenshot for the Interactive rating component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

I'm proud that I succeeded to build this component using mostly Tailwind CSS. Next time I would use less classes from Tailwind and do more styling using Vanilla CSS.

What challenges did you encounter, and how did you overcome them?

The challenging part was to select one button at a time. The solution was to check if there is an existing selected button whenever the user chooses another rating option and set its state to false.

Data attributes for button state were the highlight of this challenge 🌟

What specific areas of your project would you like help with?

I would like to know how can I refactor my JavaScript code to be more readable and efficient.

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

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