Design comparison
Solution retrospective
I'd like to start paying attention to the accessibilty report and the read.me. If you have a good example of what a good read.me looks like I'd love to refine my github.
What challenges did you encounter, and how did you overcome them?Adding the icon to the add cart. I wasn't able to resize but happy I was able to get close with bootstrap icons.
What specific areas of your project would you like help with?I should get better at using landmarks. I just realized that it's best practice to design for mobile first. any other relevant best practices would help. I was not able to maintain the centerline of the prices. Please take a look and advise.
Community feedback
- @dylan-dot-cPosted 3 days ago
Well done! Looks really close to the design and you made good use of semantic HTML!
For the prices that don't align vertically it because of a margin you have on the
newPrice
selector.margin: 0.25em 0.5em 0.5em 0;
Due to that it won't center align. I see you used flex so if you want a spacing, you can usegap: .5rem
it works for both grid and flexbox.I see that in that section you have 2
p
s in aspan
. Generally its bad practice to put block level elements in inline elements(I don't know the actual disadvantages but its best practice). What you could do is switch them so you have 1p
tag and 2span
tags. That would be more semantic.For making the image change for mobile devices, make sure to use the
picture
tag as its useful and allows pictures to change based on media attribute and can be done without CSS. It's generally a best practice as well.ALso for the Add to cart button you could make it accessible by making it an actual button so it can be focusable by keyboard.
<div class="heading">Gabrielle Essence Eau De Parfum</div>
for this, it is the heading of the webpage so make it an h1/h2(h2 would be better since h1 would be too important) but it's your choice.<div class="cardWrapper">
this could have been a section as you don't really need a div to wrap it again.Also use a
p
tag for the description.Overall you did good but you still have a few more things to improve to get better.
FOr the readme there is a template that Frontend Mentor wants you to follow so you others can see what you have learnt and gain more insights about your process and solution. ALso read the first readme.md to get an idea of the process FEM expects you to use.
0
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