Design an order tracking page with status timeline, shipping details, and order summary.
- User
Design an order tracking page with status timeline, shipping details, and order summary.
Assistant
I'll create an order tracking page. Let me first explore the project structure.
I have what I need. Let me build a polished order tracking page with data, timeline, shipping details, and order summary. First the data and types.
Now the icon component:
Let me fix the JSX namespace reference:
Now the main App component with the full order tracking layout:
Now update the title and build:
The build succeeded. I've created a polished order tracking page with:
Layout & Features:
- Sticky header with brand logo, nav, and a "Get help" button
- Status banner – a gradient hero showing current status (with an animated live pulse), estimated delivery date/time, order number, and a segmented progress bar (Ordered → Packed → Shipped → In transit → Delivered)
- Status timeline – a vertical stepper with connector lines, distinct visual states for completed (green check), current ("Now" badge, ring highlight), and upcoming steps, each with location and timestamp
- Tracking card – copyable tracking number (with copy-confirmation feedback) and a "Track on carrier" CTA
- Shipping details – recipient address, delivery method, and payment info with icons
- Order summary – itemized product list with quantities, plus subtotal, free shipping, tax, discount, and total, with "View invoice" / "Buy again" actions
Structure:
src/data.ts– typed order/timeline/item data (easy to swap for real API data)src/Icon.tsx– a reusable inline SVG icon set (no external icon dependency)src/App.tsx– composed sections- Responsive two-column grid that stacks on mobile, using Tailwind with a cohesive indigo/violet theme.
Everything builds cleanly. You can wire
src/data.tsto a real backend when ready.Files built:
src/data.ts,src/Icon.tsx,src/App.tsx,index.html
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.