/FM-rating-component

A rating component widget made with html, css and javaScript

Primary LanguageHTML

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

Screenshot

Desktop Version
Desktop Screenshot
Desktop Version Submitted state
Desktop Screenshot
Mobile Version
Mobile Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • jQuery

What I learned

I learnt about the sessionStorage to store the data for a session to pass between different pages using javaScript.

sessionStorage.setItem("rating", rating);

Continued development

I'm willing to build an e-commerce website. So this rating component can be useful.

Useful resources

Author