// health/BedtimeDetail.jsx // Full-bleed gradient (per user's "inset on root, full-bleed on detail"). // Hero number above the fold, then the reasoning, then "skip" / "adjust" / // "stop using Smart Bedtime" actions. function BedtimeDetail({ dark = false }) { return ( {/* Full-bleed gradient panel that sits behind everything */}
{/* Custom nav row in white */}
Health
Smart Bedtime
Tonight
10:30PM
Backed out from tomorrow's first event at 7:15 AM, a 60-minute wind-down, and your 8h sleep goal.
How we got there
{[ { l: 'First event', v: '7:15 AM', s: 'Morning shift ยท Work' }, { l: 'Wake', v: '6:15 AM', s: 'Buffer of 60 min before' }, { l: 'Sleep goal', v: '8h', s: 'Set in Schedule' }, { l: 'Wind-down', v: '60 min', s: 'Reminder posts at 9:30 PM' }, ].map((r, i, a) => (
{r.l}
{r.s}
{r.v}
))}
{/* Actions */}
If you go to bed at 10:30
{[ { l: 'Recovery', v: '+1.4h' }, { l: 'Reaction', v: '+18%' }, { l: 'Memory', v: '+12%' }, ].map(s => (
{s.v}
{s.l}
))}
); } window.BedtimeDetail = BedtimeDetail;