Design comparison
Solution retrospective
Hi, everyone. I just completed this challenge. I really enjoyed doing this with the grid layout. I would be grateful if you could give some feedback on my solution or show me where I made mistakes.
Community feedback
- @vanzasetiaPosted over 2 years ago
Hi, Doston! π
Nice work on this challenge! π Your solution is responsive and looks great! π
There are still some areas that can be improved.
header
tag inside themain
tag has no meaning which means it works likediv
. So, it might be good to usediv
instead ofheader
even though I think the current markup won't hurt the accessibility of the site.- All the icons are decorative images which means that they don't add or have any information. Also, if they don't exist the users won't miss any information. So, I recommend leaving the
alt
empty to hide it from the screen readers. - I would strongly recommend writing the styling using the mobile-first approach. It often leads to shorter and better performance code. Also, mobile users won't be required to process all of the desktop styles.
- I highly suggest using
em
instead ofrem
for the unit for the media query. Zell Liew has done some research on it and based on that, theem
unit has consistent results across multiple browsers.
Overall, it looks great. I notice something interesting in the HTML where you group the classes. I guess you follow the CSS Wizardry article, "Grouping related classes in your markup". Anyway, I hope this helps! Keep up the good work! π
1@dostonnabotovPosted over 2 years ago@vanzasetia Thank you for your feedback. You mean, there is no need for
alt
text for images, right?I will definitely check out the usage of
em
in media queryYeah, you found it. I like grouping stuff.
1@vanzasetiaPosted over 2 years ago@dostonnabotov You're welcome! π
Yes, leave the
alt=""
empty for those icons. π0 - @Kamasah-DicksonPosted over 2 years ago
- No accessibility issues
- Your solution also looks great on mobile
- your text is also readable
What I would say is just your box shadow which is a bit different from the design but that's not a problem, besides Good job thereπ Happy codingππ»
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