import React, { useEffect, useRef, useState } from "react"; import { Mail, Menu, X, Leaf, Waves, Users, GraduationCap, HeartHandshake, ArrowRight, Facebook, Instagram, Globe, ShieldCheck, } from "lucide-react"; /** * IDA Maldives – Single-Page Website (React) * * ✅ TailwindCSS utility classes * ✅ Mobile-friendly, accessible navigation with focus restore & Esc to close * ✅ Sections: Home, About, Programs, Impact, Get Involved, News, Contact * ✅ Contact form via mailto: (GET). Swap to Formspree/back end later. */ const navItems = [ { id: "home", label: "Home" }, { id: "about", label: "About" }, { id: "programs", label: "Programs" }, { id: "impact", label: "Impact" }, { id: "get-involved", label: "Get Involved" }, { id: "news", label: "News" }, { id: "contact", label: "Contact" }, ] as const; function SkipLink() { return ( Skip to main content ); } function MobileMenu({ open, onClose, triggerRef, }: { open: boolean; onClose: () => void; triggerRef: React.RefObject; }) { const panelRef = useRef(null); // Close on Esc & click outside (backdrop) useEffect(() => { if (!open) return; const onKey = (e: KeyboardEvent) => { if (e.key === "Escape") onClose(); }; document.addEventListener("keydown", onKey); return () => document.removeEventListener("keydown", onKey); }, [open, onClose]); // Focus first link when opening; restore to trigger when closing useEffect(() => { if (open) { const firstLink = panelRef.current?.querySelector("a, button"); firstLink?.focus(); } else { triggerRef.current?.focus(); } }, [open, triggerRef]); if (!open) return null; return (
{ if (e.target === e.currentTarget) onClose(); }} >
); } function Nav() { const [open, setOpen] = useState(false); const menuBtnRef = useRef(null); return (
IDA
IDA Maldives
setOpen(false)} triggerRef={menuBtnRef} />
); } function PillarCard({ icon: Icon, title, children, }: { icon: React.ComponentType>; title: string; children: React.ReactNode; }) { return (
); } function Home() { return (

Building sustainable island communities in Huvadhoo Atoll.

IDA Maldives is a nonprofit advancing smart farming, mariculture, and youth development.

Smart Farming
Mariculture
Youth & Community
Training

Impact Highlights

Seedlings distributed: 1,000+ | Workshops held: 20+ | Communities served: 5+

Partners & Supporters

[Logos Placeholder]
); } function About() { return (

About IDA Maldives

The Institute for Development Actions (IDA) is dedicated to fostering positive social, economic, and environmental outcomes through strategic initiatives, research, and evidence-based programs. Its mission focuses on addressing critical challenges in community development, poverty reduction, education, health, and sustainable progress. By collaborating with stakeholders and prioritizing capacity building, IDA empowers communities and drives sustainable impact.

Vision

Thriving island communities that are resilient, inclusive, and environmentally secure.

Mission

To empower communities in Huvadhoo Atoll and across the Maldives through sustainable agriculture, mariculture innovation, and youth-led development initiatives.

Values

Stewardship • Transparency • Inclusion • Collaboration • Learning-by-doing.

); } function Programs() { return (

Our Programs

We promote climate-smart cultivation, nurseries, and household gardens to improve food security and livelihoods. We pilot seaweed and shellfish initiatives with community partners to diversify income and protect ecosystems. We run events, training, and safe recreation spaces that build leadership, health, and social cohesion. Practical, hands-on sessions for farmers, youth, and women’s groups on cultivation, processing, and entrepreneurship.
); } function Impact() { return (

Our Impact

1,000+

Seedlings Distributed

20+

Workshops Held

5+

Communities Served

[Impact Chart Placeholder – plug in Recharts or Chart.js]

); } function GetInvolved() { return (

Get Involved

); } function News() { return (

News & Updates

); } function Contact() { // mailto with GET: subject + body will be filled from fields // For production use a service like Formspree or your API. return (

Contact Us

{ // Build a mailto URL with subject & body from form values e.preventDefault(); const form = e.currentTarget as HTMLFormElement; const data = new FormData(form); const name = data.get("name") || ""; const email = data.get("email") || ""; const phone = data.get("phone") || ""; const topic = data.get("topic") || "General"; const message = data.get("message") || ""; const subject = encodeURIComponent(`[IDA Maldives] ${topic} inquiry from ${name}`); const body = encodeURIComponent( `Name: ${name}\nEmail: ${email}\nPhone: ${phone}\nTopic: ${topic}\n\n${message}` ); window.location.href = `mailto:info@idamaldives.com?subject=${subject}&body=${body}`; }} aria-describedby="contact-note" >

This opens your email app. For instant delivery, switch to a hosted form service later.