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 Solution

harigsr1998β€’ 30

@harigsr1998

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


This was very difficult as I tried to incorporate more and more bootstrap and kept failing. The code is not refactored or particularly good. Been tackling this for 4 days and just wanted to submit it the moment I completed it. Will try to refactor and add README sometime, hopefully when I'm less fed up with this challenge. Now off to learn more, I definitely need to.

Community feedback

Tushar Biswasβ€’ 4,080

@itush

Posted

Congratulations on completing the challenge! πŸŽ‰

  • I understand the amount of effort it took for you.

  • Feel free to checkout my product preview project code and notice how I handle responsiveness with mobile and desktop product images.

In my projects:

  • I always start with mobile-first workflow.
  • I use at least one main element for a page (entire content goes into the main, if I'm not using header & footer), and avoid divs as much as possible and use section and article element wherever I can.
<body>
<main>
All content 
</main>
</body>
  • I Use relative units as much as possible and avoid absolute units whenever possible.

  • If you are someone who is just starting out with front-end development, I strongly suggest starting with the QR code component project. Also in the challenges page you may filter by (Newbie, HTML&CSS) sort by (easier first) to select projects that will help you solidify your foundation. Also, to avoid any knowledge gap first solidify HTML, CSS, JS fundamentals and then move on to any framework or library.

  • I remember when I started out, I made countless mistakes and spent long hours searching for solutions. But hey, you don't need to go through the same struggles! πŸ™Œ To help you shorten the learning curve, I recommend going through the following articles. They contain valuable insights that can make your journey smoother:

πŸ“šπŸ” 12 important CSS topics where I discuss about css position, z-index, box-model, flexbox, grid, media queries, mobile-first workflow, best practices etc. in a simple way.

πŸ“šπŸ” 11 important HTML topics where I discuss about my thought process and approach to convert a design/mock-up to HTML along with other topics.

I hope you find these resources helpful in your coding adventures! 🀞

I'm eagerly looking forward to seeing the amazing projects you'll create in the future! πŸš€πŸ’»

Keep up the fantastic work and happy hacking! πŸ’ͺ✨

Marked as helpful

0

harigsr1998β€’ 30

@harigsr1998

Posted

@itush Thanks for the suggestions

1
Tushar Biswasβ€’ 4,080

@itush

Posted

@harigsr1998

You are most welcome!

Always happy to help😁

BTW: It would mean the world to me, and help me provide quality support to the community, if you could spare a moment to give my GitHub pinned projects a ⭐️ star.

0
Joachimβ€’ 840

@Thewatcher13

Posted

You're html is not good, take a look on this:

https://fedmentor.dev/posts/html-plan-product-preview/

Marked as helpful

0

harigsr1998β€’ 30

@harigsr1998

Posted

@Thewatcher13 I know. Thanks for the link man. Huge helpπŸ₯²πŸ₯²πŸ™πŸ™πŸ™

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