"use client"; import { useEffect, useState } from "react"; import { motion } from "framer-motion"; import { SiteHeader } from "../../components/site-header"; import { SiteFooter } from "../../components/site-footer"; const balances = [18420, 19280, 20540, 19980, 21450, 22890, 22120]; const maxBalance = Math.max(...balances); const expenses = [ { label: "Rent & mortgage", value: 2800 }, { label: "Payroll", value: 9200 }, { label: "Software & tools", value: 1450 }, { label: "Vendors", value: 2280 }, ]; const aiMessages = [ "You’re on track to finish the month with a $6,920 surplus if spending stays at the current pace.", "Dining is trending 14% above your usual pattern. Consider capping at $620 to stay on target.", "You can safely move $1,500 into savings without dropping below your $10k buffer.", ]; export default function DemoPage() { const [aiIndex, setAiIndex] = useState(0); const [aiVisible, setAiVisible] = useState(false); useEffect(() => { let timeout: NodeJS.Timeout; let interval: NodeJS.Timeout; const startLoop = () => { setAiVisible(false); timeout = setTimeout(() => { setAiVisible(true); }, 1000); }; startLoop(); interval = setInterval(() => { setAiIndex((prev) => (prev + 1) % aiMessages.length); startLoop(); }, 5000); return () => { clearTimeout(timeout); clearInterval(interval); }; }, []); return (

Demo · LedgerOne

AI-powered cash control dashboard

This is a looping, demo-only view designed for screen recordings. All data is fake but behaves like a live, AI-assisted finance cockpit.

{/* Left: animated cashflow graph */}

Projected balance · next 30 days

$22,890 ▲ +$3,410

Balance
Income
Outflows
{/* Animated bar/line combo chart */}
{balances.map((v, i) => { const height = (v / maxBalance) * 100; return ( D{i + 1} ); })}
Balance dip in 6 days · adjust discretionary by ~12%
{/* Right: budget ring + expense breakdown */}

Monthly budget

$18,400{" "} Safe to spend: $4,120

Healthy
{/* Animated progress ring */}
74% used
{expenses.map((e) => { const pct = e.value / 18400; return (
{e.label} ${e.value.toLocaleString()}{" "} · {(pct * 100).toFixed(0)}%
); })}
{/* AI chat card */}
AI

LedgerOne Copilot

Monitors cash flow in real-time

Demo mode
How much can we safely move into savings this month?
{aiMessages[aiIndex]}
); }