Design comparison
Solution retrospective
Hello, this is my second challenge, I am still improving day by day, all the feedback received
Community feedback
- @PhoenixDev22Posted about 2 years ago
Hi Fran Sanabria,
Congratulation on completing this frontend mentor challenge. Your solution looks great. I have some suggestions regarding your solution:
- You should use
<main>
for the card and<footer>
for the attribution. HTML5 landmark elements are used to improve navigation experience on your site for users of assistive technology. - In my opinion, the image is an important content. The alternate text is needed on this image. The alternate text should indicate where the Qr code navigate the user : like
QR code to frontend mentor
not describes the image. - Adding
rel="noopener"
orrel="noreferrer"
totarget="_blank"
links. When you link to a page on another site usingtarget=”_blank”
attribute , you can expose your site to performance and security issues. width: 320px
an explicit width is not a good way to have responsive layout . Consider usingmax-width
to the card inrem
.height: 497px;
It's not recommended to set height to component, let the content of the component define the height.- Using percentages for widths, using max-width and avoiding to set heights for the components, with these things is the key to mastering responsive layouts.
- Consider using rem and em units as they are flexible, specially for font size better to use rem. If your web content font sizes are set in absolute units, such as pixels, the user will not be able to re-size the text or control the font size based on their needs. Relative units “stretch” according to the screen size and/or user’s preferred font size, and work on a large range of devices
- Remember a css reset on every project. That will do things like set the images to display block and make all browsers display elements the same.
- Consider including a git ignore. Less important in this challenge but will become extremely important as you move onto larger projects with build steps
Overall, Excellent work! Hopefully this feedback helps.
1@Fran-SanabriaPosted about 2 years ago@PhoenixDev22 Thank you very much for your suggestions, I had not considered many of them and they help me a lot, I will take them into account and start applying them asap
0 - You should use
- @freakyjonesPosted about 2 years ago
Hi Fran,
congratulation on completing the challenge
I just saw your code and like to give my one suggestion with your permission,
- Rather than using media queries throughout your CSS file you can put all your code related to that responsiveness in one place, It will be much cleaner and you have your particular device code in place.
@media screen and (min-width:950px) { img{ height: 268px; width: 268px; }, h1{ font-size: 21px; } }
I hope it helps, Thanks. Happy coding :)
0@Fran-SanabriaPosted about 2 years ago@freakyjones Thank you for your suggestion, it really helps
1
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