Design comparison
Solution retrospective
I'm pleased with how the HTML and CSS code was structured to create a product preview card component. The code is organized and utilizes modern CSS techniques like Flexbox and media queries for responsiveness. Additionally, incorporating an SVG icon into the "Add to Cart" button was a nice touch to enhance the user interface.
However, next time, I might suggest exploring more advanced CSS techniques or frameworks like CSS Grid to further improve layout flexibility and responsiveness, especially for complex designs. Additionally, considering accessibility features such as providing alternative text for images and ensuring keyboard navigation for buttons would enhance the overall user experience.
What challenges did you encounter, and how did you overcome them?Managing complex layouts and interactions, and making them responsive. Responsiveness is still kinda hard for me.
What specific areas of your project would you like help with?I would like help with responsiveness mainly but I'm open to any suggestions.
Community feedback
- @danielmrz-devPosted 8 months ago
Hello @shadazls!
Your project looks great!
I have a suggestion about your code that might interest you:
š You can use the
<picture>
tag when you have different versions of the same image.Using the
<picture>
tag will help load the correct image to the user's device, saving bandwidth and improving performance.Example:
<picture> <source media="(max-width: 460px)" srcset="{desktop image path here}"> <img src="{mobile image path here}" alt="{alternative text here}"> </picture>
I hope this helps!
Other than that, excellent work!
Marked as helpful0@shadazlsPosted 8 months agoThanks @danielmrz-dev !
In 2 years of studying development, I have never heard about the tag
<picture>
, I will definitely look at it in more details.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