import React, { useState } from 'react'; const FoodProductionModel = () => { const [selectedSystem, setSelectedSystem] = useState('aquaponics'); // Production calculations const aquaponicsData = { containers: 7, fishPerContainer: 300, // lbs/year greensPerContainer: 2100, // lbs/year totalFish: 2100, // lbs/year totalGreens: 14700, // lbs/year fishValue: 8.50, // $/lb for trout greensValue: 3.00, // $/lb for mixed greens operatingCost: 12000, // per container per year }; const foodForestData = { acres: 12, matureYears: 7, year1Yield: 500, // lbs matureYield: 15000, // lbs/year at maturity installCost: 8000, // per acre maintenanceCost: 500, // per acre per year }; const gardenData = { totalPlots: 98, // 14 per cluster × 7 clusters sqftPerPlot: 100, yieldPerSqft: 0.5, // lbs per sqft per season seasonsPerYear: 2, totalYield: 9800, // lbs/year }; const households = 50; // Calculate totals const totalFoodProduction = aquaponicsData.totalFish + aquaponicsData.totalGreens + foodForestData.year1Yield + gardenData.totalYield; const perHouseholdWeekly = (totalFoodProduction / households / 52).toFixed(1); const totalValue = (aquaponicsData.totalFish * aquaponicsData.fishValue) + (aquaponicsData.totalGreens * aquaponicsData.greensValue) + (foodForestData.year1Yield * 2.50) + (gardenData.totalYield * 2.00); return (
{/* Header */}

Food Production Model

50 Households • Year-Round Production • Integrated Systems

{/* System Flow Diagram */}

Integrated Food System Flow

{/* Solar Input */} setSelectedSystem('solar')} className="cursor-pointer"> SOLAR 850 kW {/* Arrow: Solar to Aquaponics */} Power {/* Aquaponics System - Central */} setSelectedSystem('aquaponics')} className="cursor-pointer"> AQUAPONICS 7 Containers {/* Fish tank */} 🐟 Fish {/* Grow beds */} 🌱 Greens {/* Cycle arrow */} {/* Water System */} setSelectedSystem('water')} className="cursor-pointer"> RAINWATER Collection {/* Arrow: Water to Aquaponics */} {/* Food Forest */} setSelectedSystem('foodforest')} className="cursor-pointer"> FOOD FOREST 12 Acres {/* Trees */} {[[505,100],[530,95],[555,105],[580,95],[605,100]].map(([x,y], i) => ( ))} {/* Community Gardens */} setSelectedSystem('gardens')} className="cursor-pointer"> GARDENS 98 Plots (14/cluster) {/* Garden beds */} {[0,1,2,3].map((i) => ( ))} {/* Compost System */} setSelectedSystem('compost')} className="cursor-pointer"> COMPOST & Worms {/* Arrows to Compost */} Waste {/* Arrow: Compost back to gardens */} Fertility {/* Output: Households */} 50 HOUSEHOLDS {/* Output metrics */} 2,100 lbs Fish/year 25,000 lbs Produce/year ~10 lbs Per HH/week {/* Arrows to Households */}
{/* Detailed Production Tables */}
{/* Aquaponics Detail */}

🐟 Aquaponics Production

Metric Per Container Total (×7)
Rainbow Trout 300 lbs 2,100 lbs
Leafy Greens 2,100 lbs 14,700 lbs
Herbs 150 lbs 1,050 lbs
Operating Cost $12,000 $84,000
Market Value $9,750 $68,250

Key insight: Operating cost is covered by ~86% of market value. Community benefit (free food) makes up the difference.

{/* Food Forest Detail */}

🌳 Food Forest Projection

Year Yield (lbs) Value Cumulative
Year 1 500 $1,250 $1,250
Year 2 1,500 $3,750 $5,000
Year 3 3,500 $8,750 $13,750
Year 5 8,000 $20,000 $47,500
Year 7+ 15,000 $37,500 Ongoing

Species mix: Apples, pears, plums, hazelnuts, chestnuts, elderberry, currants, asparagus, rhubarb, perennial kale

{/* Gardens & Weekly Share */}
{/* Community Gardens */}

🥕 Community Gardens

Total Plots 98
Size per Plot 100 sq ft
Plots per Household ~2
Growing Seasons 2/year
Annual Yield ~9,800 lbs
{/* Weekly Share Breakdown */}

📦 Weekly Share (per household)

🐟 Trout 0.8 lbs
🥬 Greens 5.6 lbs
🌿 Herbs 0.4 lbs
🥕 Garden Veg 3.8 lbs
Weekly Total ~10.6 lbs

Plus seasonal fruit from food forest

{/* Value Summary */}

💰 Annual Value

Fish (market) $17,850
Greens (market) $44,100
Herbs (market) $6,300
Garden produce $19,600
Total Value $87,850
Per household $1,757/yr
Monthly savings ~$146/mo
{/* Seasonality Chart */}

📅 Seasonal Production Calendar

{['J','F','M','A','M','J','J','A','S','O','N','D'].map((m, i) => ( ))} {[...Array(12)].map((_, i) => ( ))} {[0,0,1,2,3,3,3,3,3,2,1,0].map((level, i) => ( ))} {[0,0,0,1,1,2,3,3,3,2,1,0].map((level, i) => ( ))} {[2,2,3,4,5,6,7,7,7,5,4,2].map((level, i) => ( ))}
System{m}
Aquaponics
Gardens
0 ? `rgba(34, 197, 94, ${level * 0.25})` : 'rgba(100, 116, 139, 0.2)' }} >
Food Forest
0 ? `rgba(22, 163, 74, ${level * 0.25})` : 'rgba(100, 116, 139, 0.2)' }} >
Combined
Year-round (controlled environment)
Peak season
Dormant

Click system components to highlight • Food Production Model v1

); }; export default FoodProductionModel;