// Web screens — Homepage, PLP (Search/Browse), PDP (Product Detail) const Wstyles = { fontFamily: 'Inter, -apple-system, system-ui, sans-serif', color: C.ink900 }; // ═════════════════════════════════════════════════════════════ // W1) HOMEPAGE // ═════════════════════════════════════════════════════════════ function WebHome() { return (
{/* Hero */}
Express delivery available in your area
Genuine medicines,
delivered in 28 minutes.
Upload your prescription and our licensed pharmacists verify in under 5 minutes. Cold-chain compliant. Free delivery over ₹199.
{/* Search */}
paracetamol
RX OK
{[ { v: '4.8★', l: 'on 220k+ reviews' }, { v: '12M+', l: 'orders fulfilled' }, { v: '2,400+', l: 'cities served' }, ].map((s, i) => (
{s.v}
{s.l}
))}
{/* Hero card cluster */}
Rx verified
by Dr. P. Mehta
Out for delivery
Arriving in 14 min
20% off code: JAN20
{/* Trust strip */}
{[ { Icon: IconShield, t: '100% genuine', s: 'Sourced from approved distributors' }, { Icon: IconRx, t: 'Verified by pharmacists', s: 'In-house licensed team · 24×7' }, { Icon: IconTruck, t: 'Free express delivery', s: 'For orders over ₹199' }, { Icon: IconHeart, t: 'Cold-chain compliant', s: 'Insulin, biologics tracked end-to-end' }, ].map((t, i) => (
{t.t}
{t.s}
))}
{/* Categories strip */}
Shop by category
See all 24 →
{[ { l: 'Medicines', Icon: IconPill, hue: 'blue' }, { l: 'Wellness', Icon: IconHeart, hue: 'mint' }, { l: 'Devices', Icon: IconShield, hue: 'navy' }, { l: 'Lab tests', Icon: IconScan, hue: 'amber' }, { l: 'Babycare', Icon: IconUser, hue: 'rose' }, { l: 'Ayurveda', Icon: IconStar, hue: 'mint' }, { l: 'Diabetes', Icon: IconRx, hue: 'blue' }, { l: 'Skin', Icon: IconHeart, hue: 'rose' }, ].map((c) => (
{c.l}
))}
{/* Best sellers */}
Best-sellers this week
View all →
{[ { name: 'Dolo 650', sub: 'Paracetamol · 15 tabs', price: '32', mrp: '40', hue: 'blue', off: '20', rx: false, rating: '4.8' }, { name: 'Vitamin D3 60K', sub: 'Cholecalciferol · 4 caps', price: '149', mrp: '189', hue: 'amber', off: '21', rx: false, rating: '4.7' }, { name: 'Pan-D', sub: 'Pantoprazole · 10 caps', price: '108', mrp: '128', hue: 'mint', off: '16', rx: true, rating: '4.6' }, { name: 'Metformin SR', sub: 'Glycomet · 30 tabs', price: '78', mrp: '95', hue: 'blue', off: '18', rx: true, rating: '4.5' }, { name: 'Cetirizine 10', sub: 'Anti-allergy · 10 tabs', price: '24', mrp: '32', hue: 'mint', off: '25', rx: true, rating: '4.7' }, ].map((p, i) => (
−{p.off}%
{p.rx && (
Rx
)}
{p.name}
{p.sub}
{p.rating} ● In stock
₹{p.price} ₹{p.mrp}
))}
); } // ═════════════════════════════════════════════════════════════ // W2) PLP — SEARCH / BROWSE WITH FILTERS // ═════════════════════════════════════════════════════════════ function WebPLP() { const products = Array.from({ length: 9 }).map((_, i) => { const data = [ { name: 'Crocin Advance', sub: 'Paracetamol 500mg · 15 tabs', price: 38, mrp: 45, hue: 'blue', rx: false, stock: 'In stock', rating: '4.7' }, { name: 'Metformin SR 500', sub: 'Glycomet-SR · 30 tabs', price: 78, mrp: 95, hue: 'mint', rx: true, stock: 'In stock', rating: '4.5' }, { name: 'Azithromycin 500', sub: 'Azithral · 5 tabs', price: 92, mrp: 118, hue: 'amber', rx: true, stock: 'Low stock', rating: '4.6' }, { name: 'Calpol 250', sub: 'Susp · 60ml bottle', price: 52, mrp: 62, hue: 'rose', rx: false, stock: 'In stock', rating: '4.8' }, { name: 'Atorvastatin 10', sub: 'Atorlip · 10 tabs', price: 86, mrp: 110, hue: 'blue', rx: true, stock: 'In stock', rating: '4.4' }, { name: 'Cetirizine 10', sub: 'Cetzine · 10 tabs', price: 24, mrp: 32, hue: 'mint', rx: false, stock: 'In stock', rating: '4.7' }, { name: 'Vitamin B-Complex', sub: '60 caps', price: 245, mrp: 320, hue: 'amber', rx: false, stock: 'In stock', rating: '4.5' }, { name: 'Pan-D', sub: 'Pantoprazole · 10 caps', price: 108, mrp: 128, hue: 'mint', rx: true, stock: 'In stock', rating: '4.6' }, { name: 'Dolo 650', sub: 'Paracetamol · 15 tabs', price: 32, mrp: 40, hue: 'blue', rx: false, stock: 'In stock', rating: '4.8' }, ]; return data[i]; }); return (
{/* Breadcrumb + title bar */}
Home Medicines Pain relief
Search results for "paracetamol"
284 medicines · delivered by 6:40 PM today
Sort by
Relevance
{/* View toggle */}
{/* Two-column layout */}
{/* Sidebar filters */}
Filters
Reset
{/* Active filters */}
{['Tablets', 'In stock'].map(c => (
{c}
))}
{/* Category */}
CATEGORY
{[ { l: 'Tablets', c: 142, on: true }, { l: 'Syrups', c: 38, on: false }, { l: 'Injections', c: 22, on: false }, { l: 'Drops', c: 14, on: false }, ].map((b, i) => (
{b.on && }
{b.l} {b.c}
))}
{/* Brand */}
BRAND
{['Cipla', 'Sun Pharma', 'Dr. Reddy\u2019s', 'GSK', 'Pfizer'].map((b, i) => (
{i < 2 && }
{b}
))}
{/* Price */}
PRICE
₹40–₹650
{/* Generics toggle */}
Show generics
Cheaper substitutes
{/* Product grid */}
{/* Quick filter chips above grid */}
{[ { l: 'All', on: false }, { l: '500mg', on: true }, { l: '650mg', on: false }, { l: 'Suspension', on: false }, { l: 'Free delivery', on: false }, { l: 'Available today', on: true }, ].map(c => (
{c.l}
))}
{products.map((p, i) => (
{p.rx && (
Rx
)}
{p.name}
{p.sub}
{p.rating} ● {p.stock}
₹{p.price} ₹{p.mrp}
))}
{/* Pagination */}
{['‹', '1', '2', '3', '…', '32', '›'].map((p, i) => (
{p}
))}
); } // ═════════════════════════════════════════════════════════════ // W3) PDP — PRODUCT DETAIL // ═════════════════════════════════════════════════════════════ function WebPDP() { return (
{/* Breadcrumb */}
Home Medicines Diabetes Metformin SR 500mg
{/* Main grid */}
{/* Image gallery */}
18% OFF
{[0,1,2,3].map(i => (
))}
{/* Info column */}
Prescription required ● In stock at your pincode ★ Best-seller
Metformin SR 500mg Tablet
Glycomet-SR · USV Ltd · Strip of 30 tablets · SKU 248-12
4.7 (2,341 reviews)
View 4 alternates
{/* Composition table */}
Composition & form
{[ ['ACTIVE INGREDIENT', 'Metformin Hydrochloride 500mg (Sustained Release)'], ['FORM', 'Tablet'], ['PACK', '30 tablets per strip'], ['STORAGE', 'Below 30°C · Keep dry'], ].map(([k, v], i, a) => (
{k} {v}
))}
{/* Tabs */}
{['Uses', 'Dosage', 'Side effects', 'Precautions', 'FAQs'].map((t, i) => (
{t}
))}
Used to control high blood sugar in adults with type 2 diabetes. Works by reducing glucose production in the liver and improving the body's response to insulin. Often prescribed alongside dietary changes and exercise.
Important: Take with or after meals. Inform your doctor of kidney issues, contrast dye procedures, or excessive alcohol use before starting.
{/* Buy box */}
{/* Price */}
₹78 ₹95 18% OFF
You save ₹17 · Inclusive of taxes
{/* Delivery */}
Delivery by today, 6:40 PM
To 560038 · Free over ₹199
Change
{/* Quantity */}
Quantity
2
strips
{/* Buttons */} {/* Subscribe save */}
Subscribe & save 10% extra
Auto-refill every 30 days · Cancel anytime
{/* Trust row */}
Genuine Pharmacist verified
); } Object.assign(window, { WebHome, WebPLP, WebPDP });