najeeb-anwari / interactive-rating-component-using-flexbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

What I learned

During this project I learned to work with nullish coalescing operator which is a great feature.

document.querySelector("#rating").innerHTML = rating ?? 0;

Useful resources

  • Nullish Coalescing Operator - I really liked this feature and will use it going forward.
  • Flexbox Froggy - This is an amazing website which helped me review my flexbox skills. I'd recommend it to anyone because it is an interactive game to practice flexbox.

Author

About


Languages

Language:CSS 53.7%Language:HTML 34.2%Language:JavaScript 12.1%