// Web screens — Order success, Tracking, Order detail, Lab tests, Doctor consult, Rx upload const Wstyles3 = { fontFamily: 'Inter, -apple-system, system-ui, sans-serif', color: C.ink900 }; // ═════════════════════════════════════════════════════════════ // W7) ORDER PLACED (post-payment confirmation) // ═════════════════════════════════════════════════════════════ function WebOrderSuccess() { return (
{/* Left — success */}
{/* Confetti dots */} {[ { c: C.mint500, x: 30, y: 30, s: 6 }, { c: C.blue600, x: '85%', y: 50, s: 8 }, { c: C.amber500, x: '50%', y: 20, s: 5 }, { c: C.rose500, x: '15%', y: 80, s: 7 }, { c: C.blue400, x: '70%', y: 100, s: 4 }, ].map((d, i) => (
))} {/* Hero check */}
Order placed successfully!
We've sent a confirmation to aarav@gmail.com and via WhatsApp.
{/* Order summary card */}
ORDER ID
#JN-2841-09
● Confirmed
{/* What happens next */}
What happens next
{[ { l: 'Your prescription is being verified by Dr. P. Mehta', t: 'in ~5 min', done: true }, { l: 'Order packed at our Indiranagar store', t: 'by 6:00 PM', active: true }, { l: 'Out for delivery — rider assigned', t: 'by 6:15 PM', done: false }, { l: 'Delivered to your door', t: 'by 6:40 PM', done: false }, ].map((s, i, a) => (
{s.done && }
{i < a.length - 1 &&
}
{s.l}
{s.t}
))}
{/* CTAs */}
{/* Right — Items + delivery + rewards */}
{/* Items */}
3 items
{[ { name: 'Metformin SR 500mg', qty: 2, price: 156, hue: 'blue' }, { name: 'Vitamin D3 60K IU', qty: 1, price: 149, hue: 'amber' }, { name: 'Cetirizine 10mg', qty: 1, price: 24, hue: 'mint' }, ].map((p, i) => (
{p.name}
Qty {p.qty}
₹{p.price}
))}
Total paid ₹248
UPI · aarav@oksbi · Today, 5:42 PM
{/* Delivery address */}
Delivering to
Home
Apt 4B, Maple Residency, 100ft Road, Indiranagar, Bengaluru 560038
+91 98••• 12•••
{/* Rewards */}
You earned 24 JANA+ points
Use them on your next order
); } // ═════════════════════════════════════════════════════════════ // W8) LIVE ORDER TRACKING // ═════════════════════════════════════════════════════════════ function WebTracking() { const steps = [ { label: 'Order confirmed', time: '5:42 PM', done: true }, { label: 'Pharmacist verified Rx', time: '5:48 PM', done: true }, { label: 'Packed at Indiranagar store', time: '5:55 PM', done: true, active: true }, { label: 'Out for delivery', time: 'Est 6:10 PM', done: false }, { label: 'Delivered', time: 'Est 6:40 PM', done: false }, ]; return (
Account Orders #JN-2841-09
Tracking #JN-2841-09
Placed today at 5:42 PM · 3 items · ₹248
● Packing now
{/* Map */}
{/* Roads */} {/* Buildings */} {[ [50,80,70,55],[160,40,55,55],[250,80,60,55],[420,150,80,55],[560,80,70,55], [80,300,75,55],[270,260,65,55],[480,300,70,55],[630,180,65,55],[50,460,60,55], [500,460,80,55],[640,420,55,55], ].map(([x,y,w,h], i) => )} {/* Pickup */}
STORE
{/* Rider */}
{/* Destination */}
HOME
{/* ETA pill */}
ETA 28 min · 2.4 km
{/* Side panel */}
{/* Rider card */}
RK
Rohit will deliver
4.9 ★ · 320 deliveries · DL 87••
{/* Timeline */}
Status
{steps.map((s, i) => (
{s.done && }
{i < steps.length - 1 &&
}
{s.label}
{s.time}
{s.active && ● Now}
))}
{/* Help */}
); } // ═════════════════════════════════════════════════════════════ // W9) RX UPLOAD // ═════════════════════════════════════════════════════════════ function WebRxUpload() { return (
Home Upload prescription
{/* Left — upload */}
Upload your prescription
Our licensed pharmacists will verify it in under 5 minutes. We accept handwritten prescriptions, e-prescriptions, and photos from your phone.
{/* Step indicator */}
{['Upload', 'Verify', 'Order'].map((s, i, a) => (
{i + 1}
{s}
{i < a.length - 1 &&
} ))}
{/* Drop zone */}
Drag and drop your prescription
JPG, PNG, or PDF — up to 10 MB.
Make sure doctor's name, your name, date, and medicine list are clearly visible.
{/* Attached file */}
Attached
Dr_Mehta_Rx.jpg
1.8 MB · Just now
{/* Patient & continue */}
Who is this for?
{[ { name: 'Aarav Kumar', sub: 'Self · 32 yrs', active: true, init: 'AK', hue: 'blue' }, { name: 'Meera Kumar', sub: 'Mother · 58', active: false, init: 'MK', hue: 'mint' }, { name: 'Add member', sub: '+', active: false, add: true }, ].map((p, i) => (
{p.add ? : p.init}
{p.name}
{p.sub}
))}
{/* Right — info */}
Encrypted & private
Your prescription is end-to-end encrypted. Only our licensed pharmacist can view it.
What makes a valid prescription?
{[ { ok: true, l: 'Doctor\u2019s name, signature & registration number' }, { ok: true, l: 'Patient\u2019s name and age' }, { ok: true, l: 'Issue date (within last 90 days)' }, { ok: true, l: 'Medicine names with dosage & duration' }, { ok: false, l: 'No blurry photos or cropped corners' }, ].map((t, i) => (
{t.ok ? : }
{t.l}
))}
No prescription?
Talk to one of our partner doctors online and get an e-prescription in minutes.
); } Object.assign(window, { WebOrderSuccess, WebTracking, WebRxUpload });