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

E-commerce product page

percydocomo•550
@percydocomo
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 are you most proud of, and what would you do differently next time?

This is the first time I worked on a project with slideshow, thumbnails, lightbox, shopping cart etc..besides working on accessibility. I therefore needed to do a lot of research online. Glad I'm able to come up with something that seems to work! Possibly there are many things to be improved the next time! But I really enjoyed this challenge.

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

Changing the color and size of svg images. I used svg's path element in css to change its color with stroke or fill property. I changed its size with viewBox attribute in HTML.

The initial JavaScript file was much longer than the final. I tried to rewrite functions that were doing similar things into some reusable functions and was able to reduce the size of the file.

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

All feedback is welcome!

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