/* School-to-Parent Marketplace — approved programs, tutoring, sports, fundraisers */ function MarketplaceScreen({ onBack }) { const [cat, setCat] = React.useState('all'); const CATS = [ { id:'all', label:'All', icon:'layout-grid' }, { id:'tutoring', label:'Tutoring', icon:'graduation-cap' }, { id:'sports', label:'Sports', icon:'volleyball' }, { id:'programs', label:'Programs', icon:'sparkles' }, ]; const listings = [ { cat:'tutoring', title:'Mathnasium of Katy', tag:'Tutoring', price:'$35/session', rating:'4.9', icon:'calculator', tint:'var(--blue-100)', ic:'var(--blue-500)', note:'School-approved · 1-on-1 math help' }, { cat:'sports', title:'Katy Youth Soccer League', tag:'Sports', price:'$120/season', rating:'4.7', icon:'volleyball', tint:'var(--success-100)', ic:'var(--success-500)', note:'Grades 4–8 · Saturday games' }, { cat:'programs', title:'Young Coders Club', tag:'After-School', price:'$80/month', rating:'4.8', icon:'code', tint:'var(--info-100)', ic:'var(--info-500)', note:'Build games & apps · Tue/Thu' }, { cat:'tutoring', title:'Reading Buddies', tag:'Tutoring', price:'Free', rating:'5.0', icon:'book-open', tint:'var(--gold-100)', ic:'var(--gold-600)', note:'Volunteer-led literacy support' }, { cat:'programs', title:'Saturday Art Studio', tag:'Enrichment', price:'$45/class', rating:'4.6', icon:'palette', tint:'var(--danger-100)', ic:'var(--danger-500)', note:'Painting & ceramics · ages 9–13' }, ]; const shown = cat==='all' ? listings : listings.filter(l => l.cat===cat); return (
{/* fundraiser hero */}
SCHOOL FUNDRAISER
New Library Books Drive
Katy Middle School · 8 days left
$3,240 of $5,000
{/* category filter */}
{CATS.map(c => { const on = cat===c.id; return ( ); })}
{/* listings */} {cat==='all' ? 'Approved Near You' : CATS.find(c=>c.id===cat).label}
{shown.map((l,i) => (
{l.title}
{l.tag} {l.rating}
{l.note}
{l.price}
))}
{/* trust note */}
Every vendor here is reviewed and approved by Katy Middle School. Payments are processed securely through JewelLink.
); } Object.assign(window, { MarketplaceScreen });