This is a solution to the QR code component challenge on Frontend Mentor. Frontend Mentor challenges helped me improve my coding skills by building realistic projects.
Note: Delete this note and update the table of contents based on what sections you keep.
- Challenge URL: Click here
- Live Site URL: Click here
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
the html structure included Div(s) :
- box (container)
- a div for bar-code
- a title
- a paragraph
Snippets:
<div class="box">
<div class="bar-code">
<img src="./images/image-qr-code.png" alt="">
</div>
<div class="title">
<p>Improve your front-end skills by building projects</p>
</div>
<div class="QR-text">
<p>Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p>
</div>
</div>
.box{
/* margin-top: 80px; */
margin-top: 10%;
margin-right: auto;
margin-left: auto;
margin-bottom: 0 ;
width: 200px;
height: 310px;
border-radius: 10px;
justify-content: center;
background-color: hsl(0, 0%, 100%);
box-shadow: -5px 13px 13px -8px rgba(0,0,0,0.43);
}
.bar-code img{
margin:10px 10px 10px 10px;
width: 180px;
border-radius: 10px;
height: auto;
}
.title{
font-weight: 700;
font-size: 13px;
text-align: center;
width: 170px;
margin:10px 10px 10px 10px;
}
.QR-text{
font-weight: 400;
font-size: 10px;
text-align: center;
width: 170px;
margin:10px 10px 10px 10px;
}
- Frontend Mentor - @thedefiantone17
- Twitter - @aniketsharma_17
I was inspired by my supportive friends @Aaryan-kapur, @aniketbiprojit and @AbhinavRobinson, wherever i faced any difficulty they were there to help me out.
I would also like to thank frontend Mentor for giving such opportunity to do such interesting challenges, and would also like to thanks GreatLearning for guiding me with an educative journey towards IT industry.