Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 6 months ago

Frontend Mentor | Product preview card component

Dadir-Dev•220
@Dadir-Dev
A solution to the Product preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

In this project, I used the clamp() function to create a responsive font size, which was a new technique for me and I'm really happy with how it turned out. However, it took me longer than expected because I didn't set a deadline. Next time, I’ll make sure to set an estimated deadline before starting a project.

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

I started with a mobile-first approach, which I was able to finish quickly. However, when I worked on the desktop design, I had to adjust the product image since the desktop version was taller than the mobile version. This became a new challenge. In the end, I imported both images into the HTML and used the display property to toggle their visibility between none and block, depending on the design. Thankfully, it worked as expected!

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

I’m happy with how this project turned out. If there’s any area I can improve, I’d really appreciate your feedback.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Dadir-Dev's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License