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.
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
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;
}
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.
- 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.