Skip to content

mrxshinji/FE_Mentor-Interactive-rating-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - QR code component solution

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

Table of contents

Overview

Screenshot

  • Rating Form Card

  • Thank You card

Links

My process

Built with

  • Semantic HTML5 markup
  • Flexbox
  • CSS Grid
  • Mobile-first workflow

What I learned

Practice jquery which i just learned right before doing this task. Im shocked how much shorter the code is.

Was having hard time and googline on how to unselect other button when another button is pressed until I realized i can do it easily like below;

$(".btn").click(function() {
    $(".btn").removeClass("active") // target all button and remove active class if any
    $(this).addClass("active") // this button only have active class when clicked
})

Continued development

-Still require more practice on centering item.

Useful resources

Author

Acknowledgments

Mark's solution - Glance through the codes for some insight and to check am I on the right path. Thanks!