Skip to content

Latest commit

 

History

History
75 lines (54 loc) · 2.16 KB

README.md

File metadata and controls

75 lines (54 loc) · 2.16 KB

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

Image of the QR code webpage

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid

What I learned

Throughout this project, element sizing and flexbox were used to style the webpage. Some of the notable code include:

body {
    background-color: #d6eaf8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-width: 100vw;
}

div {
    background-color: #ffffff;
    text-align: center;
    width: 20%;
    border-radius: 5%;
    padding: 20px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-self: center;
}

Continued development

Currently, the QR code is not displayed in full when the window is shrunk to a certain size, while the background of the body element is still shown. Specific code on flexbox will have to be further acquired and applied in order to allow the main contents to take up a minimun size of the whole window.

Useful resources

  • The Web Developer Bootcamp 2023 - This taught me basic HTML and CSS for me to complete this project. The Pricing Panel Code-along helped me familiarise with the concepts of flexbox.

Author