Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 2 years ago

Tailwind + TypeScript + React.js | E-commerce Product Page

react, redux-toolkit, tailwind-css, typescript, accessibility
Better5afe•850
@better5afe
A solution to the E-commerce product page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hi there!

This project took me a little bit longer than I expected, the autumn weather definitely does not help with my coding motivation :D

To summarize, the users are able to:

  • Add and remove items from the cart.
  • Update quantity of the cart items.
  • View the cart's content.
  • Open a modal gallery carousel by clicking on the large product image and interact with it.
  • Switch the large product image by clicking on the small thumbnail image.
  • Interact with mobile gallery by tapping the arrow buttons or swiping right or left.
  • View the optimal layout for the site depending on their device's screen size.
  • See hover states for all interactive elements on the page.

In addition to this:

  • The cart is stored within local storage, so it's fetched from there as soon as the page reloads.
  • Users can swipe between slides on mobile devices - I used React Swipeable library to implement this feature.

As always, I'll be grateful for any feedback.

Thanks & Happy Coding! 🎃

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