// ===== PROGRAMS & CAMPAIGNS · DONATE ===== // ---------- Programs & Campaigns ---------- function ProgramsScreen({ t, go }) { return (
{/* Intro / pillars */}
Driving Safer Roads, Together
NRSA programs follow the PRSAP 2023–2028 Safe System pillars to cut road deaths nationwide.
{program_pillars.map(p => (
{p.icon}
{p.label}
))}
Active Programs & Campaigns
{programs.map(pr => (
{pr.cat} {pr.status}

{pr.title}

{pr.desc}

📈{pr.reach}
))}
❤️
Help fund these programs
Your support brings helmets, education, and faster response to communities that need them.
go('Donate')} style={{ marginTop: 13 }} icon="heart">Donate to NRSA
); } // ---------- Donate ---------- function DonateScreen({ t, go }) { const [amt, setAmt] = useState(500); const [custom, setCustom] = useState(''); const [method, setMethod] = useState('gcash'); const [recurring, setRecurring] = useState(false); const [done, setDone] = useState(false); const value = custom ? parseInt(custom, 10) || 0 : amt; if (done) { return (
❤️

Salamat po!

Your {recurring ? 'monthly ' : ''}gift of ₱{value.toLocaleString()} helps make Philippine roads safer. A receipt has been sent to your email.

setDone(false)}>Donate again go('Home')}>Done
); } return (
❤️
Support Road Safety
Every peso funds helmets, education, and emergency response for Filipino road users.
{/* What your gift funds */}
Where your donation goes
{donate_uses.map(u => (
{u.icon} {u.text}
))}
{/* Amount */}
Choose an amount
{donate_amounts.map(a => { const sel = !custom && amt === a; return ( ); })}
₱ setCustom(e.target.value.replace(/[^\d]/g, ''))} inputMode="numeric" placeholder="Other" style={{ width: '100%', height: '100%', minHeight: 52, border: `1.5px solid ${custom ? t.accent : t.border}`, background: t.card, color: t.text, borderRadius: 14, padding: '0 8px 0 26px', outline: 'none', fontSize: 15, fontWeight: 800, }} />
{/* Method */}
Payment method
{donate_methods.map(m => { const sel = method === m.id; return ( ); })}
0 ? t.accent : t.muted} onClick={() => value > 0 && setDone(true)} style={{ opacity: value > 0 ? 1 : 0.5, minHeight: 54, fontSize: 16 }} icon="heart"> Donate ₱{value.toLocaleString()}{recurring ? '/mo' : ''}
Secure donation · NRSA is a registered non-profit
); } Object.assign(window, { ProgramsScreen, DonateScreen });