/* DigiHealthCloud — single-page React app, no build step. * * Copy lives in data/site-content.json (edit that to change wording) * Scraped numbers live in data/market-intel.json (written by scrapers/, don't hand-edit) */ const { useState, useEffect } = React; /* ------------------------------------------------------------------ icons */ const Icon = ({ name }) => { const paths = { app: <>, voice: <>, shield: <>, chart: <>, }; return ( ); }; /* --------------------------------------------------------------- waveform */ /* Decorative audio waveform — the voice-capture motif. */ const Waveform = () => { const bars = 96; const w = 1200, h = 88, gap = w / bars; return ( ); }; /* ----------------------------------------------------------------- header */ const Header = () => (
); /* ------------------------------------------------------------------- hero */ const Hero = ({ c }) => (
{c.eyebrow}

{c.headline}

{c.subhead}

); /* -------------------------------------------------------------- what we build */ const WhatWeBuild = ({ c }) => (

{c.title}

{c.intro}

{c.items.map((it, i) => (

{it.title}

{it.body}

))}
); /* --------------------------------------------------------------- how it works */ const HowItWorks = ({ c }) => (

{c.title}

{c.intro}

{c.steps.map((s, i) => (
{i + 1}

{s.title}

{s.body}

))}
); /* ------------------------------------------------- market pulse (scraped data) */ const MarketPulse = ({ data }) => { // Hidden until the scraper has produced real data — no placeholder numbers. if (!data || !(data.stats || []).length) return null; return (

Market pulse

Updated automatically from the public ClinicalTrials.gov registry — no manual editing.

{(data.stats || []).map((s, i) => (
{s.value}
{s.label}
))}
    {(data.recentStudies || []).map((t, i) => (
  • {t.title}
    {[t.phase, t.status, t.sponsor].filter(Boolean).join(' · ')}
  • ))}

Last updated {data.updatedAt ? new Date(data.updatedAt).toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' }) : '—'} · Source: ClinicalTrials.gov

); }; /* ---------------------------------------------------------------- contact */ const Contact = ({ c }) => { const [form, setForm] = useState({ name: '', email: '', message: '', newsletter: true, company: '', }); const [status, setStatus] = useState({ state: 'idle', error: '' }); const set = (k) => (e) => setForm({ ...form, [k]: e.target.type === 'checkbox' ? e.target.checked : e.target.value }); const submit = async (e) => { e.preventDefault(); setStatus({ state: 'sending', error: '' }); try { const res = await fetch('subscribe.php', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(form), }); const data = await res.json().catch(() => ({})); if (!res.ok || !data.ok) throw new Error(data.error || 'Something went wrong on our side.'); setStatus({ state: 'done', error: '' }); } catch (err) { setStatus({ state: 'error', error: err.message }); } }; return (

{c.title}

{c.intro}

{c.email}

{status.state === 'done' ? (

Thanks — that reached us.

{form.newsletter ? 'You are on the list for the digital-health trials update, and we will reply to anything you asked about.' : 'We will get back to you shortly.'}

) : (