Title: Gift Card Purchase & Management UI
Objective: Build a mobile-first, responsive UI for a gift card platform with:
Gift card browsing/purchasing
Credit card payment flow
Voucher sharing
Order history tracking
Components to Generate
Category Filters: Chips for Shopping/Dining/Travel.
Trending Offers: Grid of 3-4 cards with discounts (e.g., "15% off Amazon").
Best Sellers: Horizontal scroll of top gift cards.
Recipient Toggle: "For Me" (default) vs. "Gift to Friend" (email/phone input).
CTA: "Proceed to Pay ₹X" (dynamic amount).
OTP Modal: "Enter OTP sent to ******7890".
Save Card: Checkbox with "Securely save for future purchases".
Sharing: WhatsApp/SMS/Email icons with pre-filled messages.
Expiry: "Valid until 31 Dec 2024" (subtext).
Filters: Dropdown for Merchant, toggle for Latest/Oldest expiry.
Design Requirements
Style: Clean, minimal (white background, #2563EB
for CTAs).
Trust Elements:
Padlock icon on payment screen.
"PCI DSS Certified" badge in footer.
Responsive: Works on 320px (mobile) to 1024px (desktop).
Technical Notes Use React components (e.g., Modal, Table).
Mock API responses for:
Gift card inventory (10 dummy merchants).
Voucher generation (2-second delay).
Include loading states for OTP/payment.
I'll create a mobile-first, responsive UI for a gift card platform with all the components you've requested. Let's build this out!
I've created a complete mobile-first, responsive UI for a gift card platform with all the requested components. Here's a breakdown of what I've built:
#2563EB
) for CTAs as requestedThe UI includes all loading states, mock data, and simulated API responses as requested. The components are built with shadcn/ui for a consistent, modern look and feel.