Clean, simple & responsive QR component (Vanilla)

Solution retrospective
No questions, just wanted to play around for a bit.
Cheers 😁
Please log in to post a comment
Log in with GitHubCommunity feedback
- @FluffyKas
Hi there,
It looks very close to the original, there are only some corrections to be made in your HTML. ^^
-
You have no landmarks. Adding a
main
would do the trick. You either add it inside thebody
or you replace the carddiv
with it, both should be fine solutions. -
There's no reason to use
width: 100%
on the elements you used it on. Remove them, everything will stay the same. -
There's only one heading on this page so that should be an <h1> instead of <h2>. If you think about this design as part of a bigger website, you could still hide a <h1> somewhere, that gets rid of the issue in the accessibility report.
-
Your attribution could go in a
footer
.
Apart from these, good job! ^^
Marked as helpful -
- @Duyen-codes
Great solution! I'm thinking of doing this challenge using React. I'm starting to learn React so I would like to start small. How have you been?
Marked as helpful
Join 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