Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 4 years ago

Ecommerce Page (React + Styled-Components) w/ Modal Design Pattern

react, styled-components
Ben Andrew Merritt•345
@b-a-merritt
A solution to the E-commerce product page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


  1. Unless directly importing photos, why is it necessary to have the photos in the public/assets directory? And when deploying to GitHub, why is it necessary to add the slug of the repository to the relative path?

  2. On the styled-components, I used both the props and the classNames to change styles. Which do you think is more graceful? Any cumbersome CSS?

Thanks a ton!

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 Ben Andrew Merritt'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