Frontend Mentor - Interactive rating component solution

This is a solution to the Interactive rating component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

The challenge

Users should be able to:

  • View the optimal layout for the app depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Select and submit a number rating
  • See the "Thank you" card state after submitting a rating

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow

What I learned

It was quite challenging especially with the javascript as this was my first project with javascript. Due to this challenge i was able to learn new things and commit alot of things to memory

rates.forEach((rate) => {
    rate.addEventListener("click", () => {
 rating.innerHTML = rate.innerHTML;
    })
 });

Continued development

selecting and changing elements with javascript

Author

Acknowledgments

I want to give a special thanks to the user whose code helped me alot with the completion of this project- https://github.com/MFega