/interactive-rating-component

Interactive rating component challenge from frontendmentor.io

Primary LanguageCSS

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

Links

My process

Built with

  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Vanilla JS

What I learned

  1. How to make custom radio buttons with text;
  2. How to center grid container content with place-content: center; CSS property;
  3. How to get form data in onsubmit event handler with FormData API;

Useful resources

  • Stack Overflow - This helped me to make custom radio buttons for rating values