import { useState, useEffect, useRef } from “react”; const NAV_LINKS = [“Platform”, “Marketplace”, “Resellers”, “Pricing”, “About”]; const STATS = [
{ value: “2.4M+”, label: “Farmers Onboarded”, icon: “🌾” },
{ value: “$840M”, label: “Gross Merchandise Value”, icon: “📈” },
{ value: “47”, label: “Countries Active”, icon: “🌍” },
{ value: “18,000+”, label: “Reseller Partners”, icon: “🤝” },
]; const MODULES = [
{
icon: “🌱”,
title: “Farmer Intelligence”,
desc: “GPS farm mapping, KYC onboarding, soil records, yield analytics, and farmer credit scoring — all in one digital profile.”,
color: “#00e87a”,
},
{
icon: “🏪”,
title: “Live Marketplace”,
desc: “Crop auctions, real-time commodity pricing, RFQ system, escrow payments, and contract farming at scale.”,
color: “#00c9ff”,
},
{
icon: “📦”,
title: “Supply Chain ERP”,
desc: “Multi-warehouse inventory, barcode tracking, batch management, expiry alerts, and intelligent procurement.”,
color: “#a78bfa”,
},
{
icon: “💰”,
title: “Financial Suite”,
desc: “Double-entry accounting, M-Pesa/Stripe/Flutterwave, invoicing, payroll, and multi-currency operations.”,
color: “#fbbf24”,
},
{
icon: “🤖”,
title: “AI Agronomist”,
desc: “Yield prediction, disease detection, weather overlays, price forecasting, and satellite crop heatmaps.”,
color: “#f472b6”,
},
{
icon: “🚛”,
title: “Logistics Network”,
desc: “Route optimization, live GPS driver tracking, fleet management, and delivery proof capture.”,
color: “#34d399”,
},
]; const RESELLER_FEATURES = [
“Custom white-label subdomain”,
“Commission tracking dashboard”,
“Regional distribution rights”,
“Farmer account creation”,
“Local cooperative management”,
“Recurring revenue payouts”,
“Team management tools”,
“Sales analytics suite”,
]; const PRICING = [
{
name: “Starter”,
price: “$49”,
period: “/mo”,
desc: “For small cooperatives & individual resellers”,
features: [“Up to 500 farmers”, “Marketplace access”, “Basic ERP”, “Email support”, “1 warehouse”],
cta: “Start Free Trial”,
highlight: false,
},
{
name: “Growth”,
price: “$199”,
period: “/mo”,
desc: “For regional agro-dealers & mid-scale resellers”,
features: [“Up to 10,000 farmers”, “Full marketplace”, “Complete ERP suite”, “AI analytics”, “5 warehouses”, “WhatsApp alerts”, “Priority support”],
cta: “Get Started”,
highlight: true,
},
{
name: “Enterprise”,
price: “Custom”,
period: “”,
desc: “For exporters, governments & franchise networks”,
features: [“Unlimited farmers”, “White-label branding”, “Dedicated infrastructure”, “Custom integrations”, “SLA guarantee”, “Blockchain traceability”, “IoT sensor support”],
cta: “Contact Sales”,
highlight: false,
},
]; const CHART_DATA = [
{ month: “Jan”, yield: 42, revenue: 31 },
{ month: “Feb”, yield: 55, revenue: 45 },
{ month: “Mar”, yield: 61, revenue: 52 },
{ month: “Apr”, yield: 48, revenue: 61 },
{ month: “May”, yield: 74, revenue: 70 },
{ month: “Jun”, yield: 82, revenue: 78 },
{ month: “Jul”, yield: 91, revenue: 85 },
]; const FARMERS = [
{ name: “Amara Diallo”, crop: “Cassava”, region: “Ghana”, score: 94, status: “Active” },
{ name: “Priya Nair”, crop: “Rice”, region: “India”, score: 87, status: “Active” },
{ name: “Carlos Mendez”, crop: “Maize”, region: “Mexico”, score: 76, status: “Training” },
{ name: “Fatima Al-Hassan”, crop: “Wheat”, region: “Nigeria”, score: 91, status: “Active” },
{ name: “James Otieno”, crop: “Coffee”, region: “Kenya”, score: 88, status: “Active” },
]; function AnimatedCounter({ target, duration = 2000 }) {
const [count, setCount] = useState(0);
const ref = useRef(null);
const started = useRef(false); useEffect(() => {
const observer = new IntersectionObserver(
([entry]) => {
if (entry.isIntersecting && !started.current) {
started.current = true;
const numTarget = parseFloat(target.replace(/[^0-9.]/g, “”));
const steps = 60;
const increment = numTarget / steps;
let current = 0;
const timer = setInterval(() => {
current += increment;
if (current >= numTarget) {
current = numTarget;
clearInterval(timer);
}
setCount(current);
}, duration / steps);
}
},
{ threshold: 0.3 }
);
if (ref.current) observer.observe(ref.current);
return () => observer.disconnect();
}, [target, duration]); const fmt = () => {
const raw = target.replace(/[^0-9.KMB+$]/g, “”);
const prefix = target.startsWith(“$”) ? “$” : “”;
const suffix = target.includes(“M”) ? “M” : target.includes(“K”) ? “K” : target.includes(“+”) ? “+” : “”;
const num = parseFloat(target.replace(/[^0-9.]/g, “”));
const decimals = target.includes(“.”) ? 1 : 0;
return `${prefix}${count.toFixed(decimals)}${suffix}`;
}; return
{fmt()} ;
} function MiniChart({ data }) {
const maxY = Math.max(…data.map((d) => Math.max(d.yield, d.revenue)));
const w = 320, h = 120, pad = 16;
const xStep = (w – pad * 2) / (data.length – 1); const pts = (key) =>
data
.map((d, i) => `${pad + i * xStep},${h – pad – ((d[key] / maxY) * (h – pad * 2))}`)
.join(” “); return (
{data.map((d, i) => ( {d.month} ))} );
} export default function AgroERPPro() {
const [activeTab, setActiveTab] = useState(“dashboard”);
const [navScrolled, setNavScrolled] = useState(false);
const [mobileMenuOpen, setMobileMenuOpen] = useState(false); useEffect(() => {
const onScroll = () => setNavScrolled(window.scrollY > 40);
window.addEventListener(“scroll”, onScroll);
return () => window.removeEventListener(“scroll”, onScroll);
}, []); return (
{/* NAV */}
{NAV_LINKS.map(l =>
{l} )}
Sign In Get Started →
{/* HERO */}
NOW LIVE IN 47 COUNTRIES — V3.2 RELEASED
Agriculture’s{” “} Operating System Salesforce + SAP + Shopify — purpose-built for agriculture. Manage millions of farmers, run a live marketplace, and orchestrate your entire supply chain from one platform.
Start Free Trial → Watch Demo ▶
{[“No credit card”, “Setup in 10 min”, “Cancel anytime”].map(t => ( ✓ {t} ))}
{/* STATS */}
{STATS.map((s, i) => (
))}
{/* DASHBOARD PREVIEW */}
Live Platform Preview
One Platform, Every Role {/* Tab Bar */}
{[
{ id: “dashboard”, label: “Executive Dashboard” },
{ id: “farmers”, label: “Farmer Management” },
{ id: “market”, label: “Live Marketplace” },
{ id: “reseller”, label: “Reseller Portal” },
].map(t => ( setActiveTab(t.id)}>
{t.label} ))}
{activeTab === “dashboard” && (
{/* KPI Cards */}
{[
{ label: “Total Revenue”, value: “$2.84M”, change: “+18.4%”, up: true },
{ label: “Active Farmers”, value: “124,882”, change: “+3,201 this week”, up: true },
{ label: “Pending Orders”, value: “1,429”, change: “-12% from last week”, up: false },
].map((k, i) => (
{k.label}
{k.value}
{k.up ? “↑” : “↓”} {k.change}
))} {/* Chart */}
Yield vs Revenue
Jan — Jul 2026
── Yield — Revenue
{/* AI Insight */}
🤖
AI Insight
Maize prices projected to rise +14% over next 30 days in West Africa. Recommend increasing procurement from verified farmer network.
View Full Report → {/* Activity Feed */}
Recent Activity
{[
{ icon: “🌾”, msg: “Farmer Amara Diallo listed 12 MT of cassava at $240/MT”, time: “2m ago” },
{ icon: “💸”, msg: “Escrow released: $48,000 to Cooperative Delta Farms”, time: “8m ago” },
{ icon: “🚛”, msg: “Shipment #GH-9432 departed Accra warehouse — ETA 14h”, time: “22m ago” },
{ icon: “🤖”, msg: “AI Alert: Drought risk elevated in Northern Ghana — 34 farms flagged”, time: “1h ago” },
].map((a, i) => (
{a.icon} {a.msg}
{a.time} ))}
)} {activeTab === “farmers” && (
Farmer Network 124,882 active farmers across 47 countries + Onboard Farmer {FARMERS.map((f, i) => (
))}
)} {activeTab === “market” && (
Live Commodity Market Real-time prices • Last updated 14s ago MARKET OPEN {[
{ crop: “Maize”, price: “$248/MT”, change: “+3.2%”, flag: “🌽” },
{ crop: “Cassava”, price: “$195/MT”, change: “+1.8%”, flag: “🥔” },
{ crop: “Rice”, price: “$412/MT”, change: “-0.6%”, flag: “🌾” },
{ crop: “Coffee”, price: “$3,240/MT”, change: “+5.1%”, flag: “☕” },
{ crop: “Cocoa”, price: “$2,870/MT”, change: “+2.9%”, flag: “🍫” },
{ crop: “Soybean”, price: “$378/MT”, change: “-1.2%”, flag: “🌱” },
].map((c, i) => (
e.currentTarget.style.borderColor = “rgba(0,232,122,0.3)”}
onMouseLeave={e => e.currentTarget.style.borderColor = “rgba(255,255,255,0.07)”}
>
{c.flag}
{c.crop}
{c.price}
{c.change.startsWith(“+”) ? “↑” : “↓”} {c.change}
Place Order ))}
)} {activeTab === “reseller” && (
Your Reseller Dashboard West Africa Region · Tier 2 Partner
{[
{ label: “Commission Earned (MTD)”, value: “$12,480”, color: “#00e87a” },
{ label: “Active Sub-Resellers”, value: “34”, color: “#00c9ff” },
{ label: “Farmers Under Management”, value: “2,841”, color: “#a78bfa” },
{ label: “Pending Payouts”, value: “$4,200”, color: “#fbbf24” },
].map((m, i) => (
{m.label} {m.value}
))}
Your White-Label Portal
Your subdomain:
westafrica.agrocorp.com
{[“Custom Logo”, “Brand Colors”, “Custom Domain”, “Own App”].map(f => ( ✓ {f} ))}
Commission Structure
{[
{ tier: “Subscriptions”, rate: “25%” },
{ tier: “Marketplace GMV”, rate: “1.2%” },
{ tier: “Sub-Reseller Override”, rate: “8%” },
].map((c, i) => (
{c.tier} {c.rate}
))}
)}
{/* MODULES */}
Full ERP Suite
Everything Agriculture Needs 10 integrated modules. Zero compromises.
{MODULES.map((m, i) => (
{ e.currentTarget.style.borderLeftColor = m.color; e.currentTarget.style.boxShadow = `0 16px 40px ${m.color}15`; }}
onMouseLeave={e => { e.currentTarget.style.borderLeftColor = `${m.color}22`; e.currentTarget.style.boxShadow = “none”; }}
>
{m.icon}
{m.title} {m.desc}
))}
{/* RESELLER PROGRAM */}
Reseller Program
Build Your Own Agritech Empire Become a white-label reseller. Get your own branded subdomain, onboard farmers in your region, and earn recurring commissions on every subscription and marketplace transaction.
Apply as Reseller Download Deck What You Get
{RESELLER_FEATURES.map((f, i) => (
◈ {f}
))}
{/* PRICING */}
Transparent Pricing
Plans That Scale With You {PRICING.map((p, i) => (
{p.highlight && (
MOST POPULAR
)}
{p.name}
{p.desc}
{p.price} {p.period}
{p.features.map((f, j) => (
✓ {f}
))}
{p.cta} ))}
{/* CTA BANNER */}
Join 2.4M Farmers Already Growing
Ready to Transform Your Agriculture Business? No setup fees. No long-term contracts. Just results.
Start Free 14-Day Trial Talk to Sales
{/* FOOTER */}
The enterprise operating system for modern agriculture. Empowering 2.4M farmers across 47 countries.
{[
{ title: “Platform”, items: [“Farmer ERP”, “Marketplace”, “Logistics”, “AI Analytics”, “Mobile App”] },
{ title: “Company”, items: [“About”, “Careers”, “Blog”, “Press”, “Investors”] },
{ title: “Support”, items: [“Documentation”, “API Docs”, “Help Center”, “Status”, “Contact”] },
].map((col, i) => (
{col.title}
{col.items.map(item => (
e.target.style.color = “#00e87a”}
onMouseLeave={e => e.target.style.color = “#3a5c4a”}
>
{item}
))}
))}
© 2026 AgroERP Pro. All rights reserved. {[“Privacy”, “Terms”, “Cookies”, “GDPR”].map(l => ( {l} ))}
{/* WhatsApp FAB */}
e.currentTarget.style.transform = “scale(1.1)”}
onMouseLeave={e => e.currentTarget.style.transform = “scale(1)”}
title=”Chat on WhatsApp”
>
💬
);
}