Skip to content

ehsanidev/qr-code-component

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

Links

My process

Built with

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

What I learned

I learned how clean and useful using variables in styling can be, and how it can help speed up the process.

I learned that it is not necessary to define a class or ID for every HTML tag. To style it like this, we first need to check whether our tag is unique and not repeated. If it is unique and not repeated, we use the name of the same tag in CSS for styling. Like this:

<h1>Improve your front-end</br>skills by building projects</h1>
h1{
    font-size: larger;
    font-weight: var(--outfit-bold);
    color: var(--qr-heading-color);
}

Continued development

I like to immerse myself in creating animations with CSS and then move on to creating various functions with JavaScript.

Useful resources

Author

Acknowledgments

I thank Frontend Mentor for providing this platform where people from all over the world can develop their skills.