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.
- Solution URL: https://github.com/mrxshinji/FE_Mentor-Interactive-rating-component
- Live Site URL: https://mrxshinji.github.io/FE_Mentor-Interactive-rating-component/
- Semantic HTML5 markup
- Flexbox
- CSS Grid
- Mobile-first workflow
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
})
-Still require more practice on centering item.
- [https://stackoverflow.com/] - Provide alot of insight on centering item.
- [https://www.w3schools.com/] - Provide alot help on syntax and how to use each method
- [https://api.jquery.com/] - Lots of jQuery function usage and syntax to copy from
- Website - [https://github.com/mrxshinji]
- Frontend Mentor - @mrxshinji
Mark's solution - Glance through the codes for some insight and to check am I on the right path. Thanks!