Skip to content

aclf12/qr-code_challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 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

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

Overview

Screenshot

Screenshot 2024-02-11 at 00-25-28 Frontend Mentor QR code component Captura de tela 2024-02-11 - 00 24 12

Links

My process

Built with

  • Semantic HTML5 markup
  • Border - box
  • CSS Grid
  • Mobile-first workflow

What I learned

As expected from a beginner, you may notice some difficulties in building this website. It's literally the first time I've made a website on my own. However, as a good student, I studied some ways to solve my little problem, thus helping my learning. The biggest difficulty I had was in relation to CSS, where I'm still seeing the issue of fixed sizes, etc.

The first point was the use of the “main” tag. When I researched it, I saw that it is well used due to the semantics of main. Unlike the div, it responds to the browser by showing the main part of the website.

<main class="principal">
     <img src="images/image-qr-code.png"/>
     <h1>Improve your front-end skills by building projects</h1>
     <p>Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p>
</main>

The biggest difficulty I had with CSS was the issue of margins conflicting with "width" and "height". With some research, I discovered that when we use these two to determine content size, we use either "margin-inline" or "margin-right" / "margin-left", both in "auto".

.principal{
    width: 300px;
    height: 470px;
    margin-right: auto;
    margin-left: auto;
    padding-top: 15px;
    margin-bottom: 10%;
    background-color: white;
    border-radius: 20px;
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.4);
    
}

Continued development

In this project I did not use anything about JavaScript. However, I intend to start using it in the future. This may be the most difficult part of learning, since we are talking about Programming Language.

Useful resources

  • DevMedia - Helped me with the "box-shadow" issue
  • Figma - Helped with designing the layout

Author

Acknowledgments

I want to thank everyone who stopped to give advice on the subject, as well as those who were willing to help me.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published