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.
- Solution URL: github
- Live Site URL: live github pages
- Semantic HTML5 markup
- CSS custom properties
Note: These are just examples. Delete this note and replace the list above with your own choices
Use this section to recap over some of your major learnings while working through this project. Writing these out and providing code samples of areas you want to highlight is a great way to reinforce your own knowledge.
To see how you can add code snippets, see below:
<div class="container">
<picture class="QRcode-img">
<img src="images/image-qr-code.png" alt="QRcode image" srcset="">
</picture>
<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>
body{
font-family: Outfit,sans-serif;
background-color: hsl(212, 45%, 89%);
padding: 80px 0;
}
.container{
background-color: hsl(0, 0%, 100%);
border-radius: 1rem;
padding: 1rem;
width: 18rem;
margin: auto;
}
.QRcode-img >img{
border-radius: 1rem;
width: 18rem;
}
h2,p{
text-align: center;
}
p{
color: hsl(220, 15%, 55%);
font-weight: 400;
}
this is not a final solution, theres way more easy to solve this problem, if u see this code, im gladly to achive some advice from u thanks 🫰.
- Example resource 1 - This helped me for centering content. I really liked how easy for make content in center using margin.
- github - nisfu-saaban
- Frontend Mentor - @nisfu-saaban
thanks for w3school, its help me alot, and thanks for kevin powel video, i can find goot place for practice to understand html and css