Design comparison
Solution retrospective
Hello Frontend Mentor Community!
This is my solution to the QR Code Component Challenge.
If any, are there any ways to improve my approach to this challenge?
Community feedback
- @MelvinAguilarPosted almost 2 years ago
Hi @trunglam7 π, good job completing this challenge! π
At the moment, it is a very well structured and excellent piece of work π, also, I have some suggestions you might consider to improve your code:
- Instead of using pixels in font size, use relative units of measure like
rem
orem
. The font size in absolute length units (px) does not allow users with limited vision to change the text size in some browsers. You can read more about this problem here.
- Use
min-height: 100vh
to themain
selector instead ofheight
. This property lets you set a height and let the element grow even more if necessary.
- Use
max-width: 300px
to.qr-container
selector instead of width, this will make the container card a bit responsive on mobile and set the element's maximum width to 300px.
Please don't worry if your suggestions are long, they are just details. In the end, the project is well done π. Hope you find those tips helpful! π
Good job, and happy coding! π
Marked as helpful1@trunglam7Posted almost 2 years ago@MelvinAguilar Thank you for this feedback! This is very informative and helpful for this project and future projects.
1 - Instead of using pixels in font size, use relative units of measure like
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