Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Your session has expired please log in again.
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Product preview card component

shadazlsā€¢ 200

@shadazls

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

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

Daniel šŸ›øā€¢ 44,210

@danielmrz-dev

Posted

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 helpful

0

shadazlsā€¢ 200

@shadazls

Posted

Thanks @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 GitHub
Discord logo

Join 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