Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 3 years ago

Interactive rating component using flex and JS

Prateek Saini•30
@PrateekSaini15
A solution to the Interactive rating component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I have faced the following issues in this challenge.

  1. While creating the "Thankyou Card" I have to drop the font size of the last paragraph to 12px in order to look similar to the design image provided but in the style specification its mentioned that the paragraph should be 15px.

  2. I have to use three different paragraph for bottom text in "Thankyou Card" to make the text look in same as in design image. Is there a better way to do it.

  3. For adding the active state on the rating button in the "Rating Card" I have to add event listener on each button, although it did the job but could we get away with just one event listener.

  4. I couldn't see any difference between mobile and desktop design. Am I missing something here?

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Prateek Saini'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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License