- NextJS with App Router:
- Zustand:
- NextUI :
-
Checkout Page:
- Fetches data from the provided API and displays cart items, order summary, and a call-to-action button.
-
Payment Options Page:
- Fetches payment methods from the order-details API.
- Design visually engaging page allowing users to choose a preferred payment method.
- Implements form validation for payment information.
-
Order Confirmation Page:
- Displays order details, selected payment method, and a status message indicating transaction success, failure, or pending.
- State Managment
- theme Purple , White with purple tint
- Typography Gray , purple , font semibold,normal
- Component used Nextui card , Nextui shadowScroll , Nextui Input , Nextui Button
Button
- project
- app
- Checkout
- Page.tsx
- Payement
- Page.tsx
- Confirmation
- Page.tsx
- Components
- Navbar
- Breadcrumbs
- checkout-page
- components
- payment-page
- components
- Store
- Zustand store
- Checkout
- app
To run the project locally, follow these steps:
- Clone the repository.
- Install dependencies using
npm install
. - Run the development server with
npm run dev
.