Design comparison
SolutionDesign
Solution retrospective
QR Code component: responsive card containing QR Code that redirects to frontend mentor page
Community feedback
- @WebDevMirzaPosted almost 2 years ago
Hi,
I found an area where you can improve your code.
HTML:
- Wrap everything inside
<main></main>
to solve accessibility WARNING that you have now.main
is used for the unique part of the site where any repeated sections such as nav, sidebar, footer are not allowed. For more info visit W3 School - Give a
<h1></h1>
with small font size to solvePage should contain a level-one heading
warning. - Provide an
alt
text for image to solveImages must have alternate text
error.
CSS
.qr-img { height: 250px; width: 100%; border: 1px #000 solid; border-radius: 0.625rem; }
- No need to use
border: 1px #000 solid;
since the provided design has no border. - You can use shadow in
.card
for good appearance:
.card { box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; }
Apart from this, the rest of the part is great.👍👍
1 - Wrap everything inside
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord