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

Product preview card component Solution using Mobile-First workflow

Tuhin Mandal•60
@MandalTuhin
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?

Things I am proud of:

  • I am proud of making my first responsive web page using only HTML and CSS.
  • I learned how to change images based on screen size using the <picture></picture> tag.
  • I learned how to use @media queries to handle responsiveness across different screen sizes.
  • I learned that I should focus on Mobile-first design and then add design for other screen sizes on top of it, doing the reverse can sometimes leads to messy code and messy design.
What challenges did you encounter, and how did you overcome them?

I encountered the following problems:

  • I faced difficulty in making the product-image change with different screen sizes. and I used <picture></picture> tag to solve this problem.
  • I faced difficulty while I tried to make the design large-screen friendly first. It lead to lot of confusion when I tried to make it work on mobile screens. I solved it by making a mobile-first design and then added css for larger screens later. This led to significant simplification of things.
What specific areas of your project would you like help with?

I want help with the following:

  • I want help with understanding web responsiveness and how to handle different screen-sizes.
  • I want to learn mobile-first approach.
  • I want help with box-shadows as they seem complex to me.
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 Tuhin Mandal'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