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 Card Component

eudeees 50

@eudeees

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


Enjoy the code. I finish in 2h40m, newbie xD.

Community feedback

Riki Wendri 1,380

@F4YY

Posted

Hi @eudeees,

Congratulation for successfully completing the challenge... it's so pretty...

There is a little suggestion to make it more similar to given design. To make app adaptive to mobile screens and adjust the image accordingly, you can use media queries and update the image source toimages/image-product-mobile.jpg when the screen width is less than 481px. There are common breakpoints:

  • Mobile devices: 320px — 480px.
  • iPads, Tablets: 481px — 768px.
  • Small screens, laptops: 769px — 1024px.
  • Desktops, large screens: 1025px — 1200px.
  • Extra large screens, TV: 1201px, and more.

Here's such CSS code snippet (you can adjust and customize it as you want):

@media (max-width: 480px) {
.container {
flex-direction: column;
align-items: center;
}
}

Hope that could be pretty much Helpful. Keep happy coding...

Marked as helpful

0

eudeees 50

@eudeees

Posted

Hello @F4YY, Very happy to have finished this project! and thank you very much for the tip, I will add it to my projects. Any help is welcome!

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