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.
Note: Delete this note and update the table of contents based on what sections you keep.
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
In this lesson I was able to learn about the use of flex box when making my styles I realized that I can center vertically and horizontally with the advantage that flex box offers me when declaring my flexible components
To see how you can add code snippets, see below:
<div class="container">
<div class="card">
<div class="card-header">
<img src="./images/image-qr-code.png" alt="CODE-QR">
</div>
<div class="card-body">
<h2>Improve your front-end skills by building projects</h2>
<p>Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p>
</div>
</div>
</div>
.container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.card {
background-color:hsl(0, 0%, 100%);
width: 320px;
padding: 15px 15px;
border-radius: 20px;
}
.card-header img {
width: 100%;
border-radius: 10px;
}
.card-body {
display: flex;
flex-direction: column;
padding: 0 15px;
}
I would like to improve the box concept and how should I apply it to my styles, either with felt box or in a future grid
- Website - Add your name here
- Frontend Mentor - @RiveraHan
- Twitter - @rivera_hanzell
I relied on a solution from Eyüp Uçmaz, he helped me understand how I can group the elements and give it a custom style