Design comparison
Community feedback
- @MelvinAguilarPosted almost 2 years ago
Hello π. Congratulation on successfully completing your first challenge π ! !
I have some recommendations regarding your code that I believe will be of great interest to you.
- The link of the repository is incorrect, it should be
https://github.com/Aguslei/qr-component
, you can update the link of the repository in this solution to redirect the user to the correct repository.
HTML π:
- Use the
<footer>
tag to wrap the footer of the page instead of the<div class="attribution">
.
- The text
Improve Your Front-End Skills by Building Projects
is considered a heading element (h1).
Alt text π·:
-
Alt text should provide a clear and accurate description of the image's content or purpose. In this challenge, if you scan the QR code you will be redirected to the "frontendmentor.io" website, so a better
alt
attribute would beQR code to frontendmentor.io
If you want to learn more about the
alt
attribute, you can read this article. π.
CSS π¨:
- Instead of using pixels in font-size, use relative units like
em
orrem
. The font-size in absolute units like pixels does not scale with the user's browser settings. Source π.
- Use
min-height: 100vh
instead ofheight: 100vh
. Theheight
property can cause your component to be cut off on small screens, such as a mobile phone in landscape mode. screenshot-imgur (landscape mode)πΈ
- The
width: 100vw
property in the.main
tag is not necessary. This will create a horizontal scrollbar on some devices.
I hope you find it useful! π Above all, the solution you submitted is great!
Happy coding!
1 - The link of the repository is incorrect, it should be
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