Skip to content

winceh7/QR-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 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

This is a small website showcasing an image of a QR code with some stylized text underneath it, all inside a white rectangle in the middle of the screen. All using only HTML and CSS.

Screenshot

Links

My process

Built with

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

What I learned

The challenge being recreating the design, having to center elements made me learn how to use Flexbox and CSS Grids with the display property along with combining it with other properties in order to align the elements inside the box and the contents of each. A key, in my case when researching, was the transform property as it gave me the missing piece to center the design.

.card {
    width: 100%;
    max-width: 340px;
    height: 60%;
    background-color: white;
    border-radius: 20px;
    transform: translate(0, 50%);
}

As there was only going to be one central element, I decided to work without margins setting the box-size to the border of the box.

div {
    box-sizing: border-box;
}

A key point for the development was the responsiveness of the web page as I wanted it to be visible for small and big screens.

.container{
    min-width: 300px;
    width: 100%;
    display: flex;
    justify-content: center;
}

As a beginner Front-end Developer I have a long way to go with a lot to learn and develop my skillset. This project helped me put into a broader perspective how well each element must interact with each other through correct syntax and use of tags in order for a web page to work and look as intended. The importance of the communication between the HTML code and CSS for stylization as the project was developed using only these languages.

Continued development

For future projects I plan on practicing with the layout systems as well as trying to see ways to customize and stylize the projects combining different libraries to develop websites, web pages and web apps with a more complex design.

Useful resources

Author

Acknowledgments

Thankful with Frontend Mentor for having this challenge for free and letting me practice my skills and help me grow as a beginner Front-End Developer.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors