Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Mobile first solution

react, sass/scss
Fidelisuzoma•380
@UzomaFidelis
A solution to the E-commerce product page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

The page overlay that shows up when the sidebar is open (on mobile) surprising gave me quite a bit of difficulty. I initially put the overlay element outside the header and whenever I showed it, it covered the page but not the header. I played around with the z-index but then it covered the header and sidebar. Somehow I learned that as the sidebar itself was a child of the header I could not put the overlay between the header and the sidebar just by manipulating the z-index. Finally solved it by just putting the overlay element in the header component

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

Tried to implement lazy loading for the images and a placeholder spinner. Gave up on this as the results weren't exactly what I was looking for. Would love to study and practice more with lazy loading and maybe implement it in a future challenge. Any feedback on good resources would be appreciated

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 Fidelisuzoma'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