/** * rFunds demo page — server-rendered HTML body. * * Embeds the full component * for real interactivity (flow listing, river visualization, TBFF diagrams) * plus showcase sections explaining the rFunds vision. */ const FEATURES = [ { icon: "\u{1F30A}", title: "River Visualization", desc: "Watch resources flow through animated Sankey rivers. Sources feed into funnels, funnels feed outcomes, and surplus overflows to where it's needed most.", }, { icon: "\u{1F4CA}", title: "TBFF Flows", desc: "Threshold-Based Funding Flows distribute resources based on enoughness. When a funnel is sufficient, surplus flows to the next highest-need area.", }, { icon: "\u{1F4B8}", title: "Treasury Management", desc: "Track deposits, withdrawals, and allocations across all community funnels. Transparent financial governance in real time.", }, { icon: "\u2696\uFE0F", title: "Enoughness Layer", desc: "Each funnel has a sufficiency threshold. Golden glow indicates a funded funnel. Resources keep flowing until everyone has enough.", }, ]; const INTEGRATIONS = [ { icon: "\u{1F6D2}", name: "rCart", desc: "Order revenue flows through TBFF funnels with automatic creator/provider/community splits." }, { icon: "\u{1F5F3}", name: "rVote", desc: "Governance votes determine funding priorities and threshold adjustments." }, { icon: "\u{2708}\uFE0F", name: "rTrips", desc: "Group expenses feed into shared budget flows with per-person tracking." }, { icon: "\u{1F4DD}", name: "rNotes", desc: "Attach budget rationales, meeting minutes, and audit logs to flows." }, { icon: "\u{1F4C5}", name: "rCal", desc: "Budget reviews, treasury snapshots, and governance votes on the calendar timeline." }, { icon: "\u2615\uFE0F", name: "rSpace", desc: "Each space has its own treasury. Nest flows across spaces for multi-community coordination." }, ]; export function renderDemo(): string { return `
Threshold-Based Funding Flows

rFunds Demo

Budget flows, river visualization, and treasury management with enoughness thresholds

\u{1F30A} River Visualization | \u{1F4CA} TBFF Flows | \u{1F4B8} Treasury | \u2696\uFE0F Enoughness
${FEATURES.map( (f) => `
${f.icon}

${f.title}

${f.desc}

`, ).join("")}

r* Ecosystem Integrations

${INTEGRATIONS.map( (i) => `
${i.icon}

${i.name}

${i.desc}

`, ).join("")}

Design Your Funding Flows

rFunds lets your community design transparent budget flows with threshold-based mechanisms, enoughness scoring, and animated river visualizations.

Create Your Space
`; }