Skip to content

nicolasfig/interactive-rating-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Four card feature section solution

This is a solution to the Interactive rating component on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

Users should be able to:

  • View the optimal layout for the site depending on their device's screen size
  • Select a rating and display it on screen after pressing a submit button

Screenshots

Desktop

Mobile

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Vanilla Javascript

What I learned

How to add interactivity to the html, basic DOM manipulation, how to add and remove classes using javascript and more flexbox

.submitted-form {
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
scores.forEach((score) => {
  score.addEventListener("click", () => {
    final_score.innerHTML = score.innerHTML;
  });
});

Useful resources

  • Flexbox Malven - Useful flexbox reference as always
  • MDN - MDN the best documentation

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published