Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

catherineisonline/interactive-rating-component-frontendmentor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive rating component

Solution for a challenge from frontendmentor.io.



About The Project

TThis is a nice, small project to practice handling user interactions and updating the DOM. Perfect for anyone who has learned the basics of JavaScript! The challenge is to build out this interactive rating component and get it looking as close to the design as possible. You can use any tools you like to help you complete the challenge. So if you've got something you'd like to practice, feel free to give it a go.

Users should be able to:
1. Select and submit a number rating. 2. See the "Thank you" card state after submitting a rating.
3. View the optimal layout for the app depending on their device's screen size.
4. See hover states for all interactive elements on the page.

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flex
  • Desktop-first workflow
  • Vanilla JavaScript

What I learned

When I first started learning JavaScript it used to be very ahrd to understand how to interact with DOM elements when they have the same class name. With time, it's getting much easier and I am happy to practice it one more time!

Useful resources

  1. Figma - Paste your design image to check the size of containers, width, etc.
  2. Perfect Pixel - Awesome Chrome extension that helps you to match the pixels of the provided design.

Acknowledgments

A big thank you to anyone providing feedback on my solution. It definitely helps to find new ways to code and find easier solutions!