Skip to content

shop#17

Open
CHAKIB068 wants to merge 1 commit into
MicroClub-USTHB:mainfrom
CHAKIB068:main
Open

shop#17
CHAKIB068 wants to merge 1 commit into
MicroClub-USTHB:mainfrom
CHAKIB068:main

Conversation

@CHAKIB068

Copy link
Copy Markdown

Features :

  • Products rendered dynamically from an array
  • Low Stock / Out of Stock badges
  • Add to cart, increase, decrease, remove items
  • Prevents adding more than available stock
  • Order confirmation on checkout

Logic :
State is lifted up to App.jsx so both Navbar and Cart can access the cart.
ProductCard receives the cart as a prop to check stock limits.
Cart uses a local useState to switch between the cart view and confirmation screen.

Screenshots
Screenshot 2026-02-27 151055
Screenshot 2026-02-27 151129
Screenshot 2026-02-27 151145
Screenshot 2026-02-27 151202
Screenshot 2026-02-27 151240
Screenshot 2026-02-27 151249

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant