Product list with cart

Solution retrospective
This challenge was a lot of fun! I did take some creative liberties with the UI/UX because I had a few concerns about the original design.
What challenges did you encounter, and how did you overcome them?For starters, I thought it was a bit of a pain for mobile users to scroll all the way to the bottom just to check their cart. So, I added a handy cart button with an item counter right where they can see it, and turned the cart into a nifty drawer.
I also threw in a little magic with localStorage to save the cart's state. That way, if you accidentally (or intentionally) refresh the page, your carefully selected items won't disappear. The cart only clears out when you submit your order and start a fresh one.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Chris Psilocybin'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