Skip to content

tchydy/Interactive-rating-component

Repository files navigation

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

Overview

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
  • If no rating is selected the submit button would be disabled

Screenshot

Links

My process

Built with

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

What I learned

For some reason i could not get get hiding one container and showing another simultaneously to work as I thought. hmmm

culprit found css was not working because i used

.thankyou-card-container .hide 

with a space between instead of this

.thankyou-card-container.hide 

That slight difference made the code fail. Another logic I encountered was if no score is selected what happens. I made the button disabled.

To see how you can add code snippets, see below:

Continued development

  • Would love to add animations to the elements on load.
  • Add jiggle animation when no score is selected on submit

Useful resources

Author

About

Design for the interactive rating component coding

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published