Skip to content

LucasEPK/QR_website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 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

Links

My process

Built with

  • HTML5
  • CSS

What I learned

With this challenge I learned about divs, classes, ids and CSS since I never used it before. I also learnt to import fonts

The following code is the main one in the html part, where I applied the new things I learnt:

<div class="central_block">
    <img id="QR" src="images/image-qr-code.png" alt="QR code">
    <p class="bold">Improve your front-end<br>skills by building projects</p>

    <p class="normal">Scan the QR code to visit Frontend<br>Mentor and take your coding skills to<br>the next level</p>
  </div>

The following css code was the most challenging, and I'm still not sure how good it is:

div.central_block{
    margin: 70px auto; /*centers div (finally)*/

    width: 295px;
    padding: 10px;
    text-align: center;
    border-radius: 20px;
    background-color: hsl(0, 0%, 100%);
}

Continued development

I want to focus on placing elements on a webpage since I still don't fully get it. Maybe get into flexbox and grid to get a better understanding of it.

I also want to learn about how to adapt to different page displays, like desktop and phone or different size windows.

Useful resources

Author

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published