Design comparison
Solution retrospective
Hi!👋
This time I am using PRO so the website should be more accurate. I made some mistakes with max-width and margin, so I'll improve in the next project. This project was the nicest for me of all. I hope you like it!
Would be great to hear some feedback from you! 😀
Community feedback
- @mattstuddertPosted over 3 years ago
Hey Mikolaj, nice work on this challenge! How did you get on working with the design file? Your solution looks good and compares well to the design, so great job on that! 👍
I've got a couple of small pieces of feedback:
- You're not using any
img
elements and are instead only usingbackground-image
in your CSS. I'd love to hear your rationale around that if you're happy to explain. I'd say that the logo and the keyboard images add context to the content and therefore, should beimg
elements with the appropriatealt
text to describe the images for screen reader users. At the moment, none of the imagery would be read out to screen reader users. The icons near the bottom are fine to be omitted for screen reader users as they're decorative, but I'd still probably useimg
elements with blankalt
attributes. - I'd also recommend avoiding chaining your selectors unnecessarily. For example, this selector
.general .info button.second-preorder
could be changed to this.second-preorder
. Keeping the specificity of your selectors as low as possible will help you write more maintainable CSS. Especially in larger projects!
I hope that helps. Let me know if you have any questions! 🙂
2@fytrwPosted over 3 years ago@mattstuddert Thanks a lot for your feedback!
-
Sure, I should use img tags instead of background-image in this elements. I'm still learning and for now accessible isn't the most important for me.
-
Thanks, I haven't known about that, I will change it in future projects. Maybe I should use sass.
Thanks for your time and your comment.
0 - You're not using any
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