Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Product preview component

@pnarne148

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?

Making the page exactly as the question

What challenges did you encounter, and how did you overcome them?

Implementation of responsive image

What specific areas of your project would you like help with?

Implementing responsive images effeciently.

I used javascript, added windows event listener to check for resize. Is there a better way to implement it.

Community feedback

@stephanievanoverberghe

Posted

You did well to use JavaScript. I wanted to too but I told myself I had to try without it and it wasn't an easy task. Congratulations on your project, it is pixel perfect.

0

@pnarne148

Posted

@stephanievanoverberghe I tried to accomplish it without javascript as well

https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images

Check out this page, I was not able to implement it perfectly but maybe you can.

0

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