Basic qr component utilizing only HTML and basic CSS
Design comparison
Solution retrospective
I tried to build this project using only basic css, do you guys think flexbox or grid are necessary to make it better? I don't really know how to start building with a mobile first workflow, anyone has a resource suggestion?
Community feedback
- @denieldenPosted over 2 years ago
Hi Luis, great work on this challenge! 😉
Here are a few tips for improve your code:
- add
main
tag and wrap the card for improve the Accessibility - add descriptive text in the
alt
attribute of the images - remove all unnecessary code, the less you write the better as well as being clearer: for example the comments
- remove
margin-top, left and transform
properties fromcontainer
class - use flexbox to the body to center the card. Read here -> best flex guide
- after, add
min-height: 100vh
to body because Flexbox aligns child items to the size of the parent container
Overall you did well 😁 Hope this help!
Marked as helpful1 - add
- @vanzasetiaPosted over 2 years ago
Hi, Luis! 👋
Congratulations on completing your first Frontend Mentor challenge! 🎉 It's great that you are able to finish this challenge without any media queries! Well done! 👏
I would recommend adding an alternative text for the QR code. It's the main content of the page and it should be visible for all users (including the users of assistive technology). So, the alternative text like "QR code for Frontend Mentor site" would be great.
Keep up the great work! 👍
Marked as helpful1
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