Initial commit with 2026 World Cup Quant Platform core modules and CI/CD

This commit is contained in:
QuantBot
2026-06-13 23:18:18 +08:00
commit 073abf98c1
155 changed files with 19539 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
'use client';
type MoneyFlowProps = {
label: string;
ticketPct: number;
handlePct: number;
};
export function MoneyFlowBar({ label, ticketPct, handlePct }: MoneyFlowProps) {
const alert = handlePct - ticketPct >= 20;
return (
<article className="panel-glow rounded-2xl p-4">
<p className="dot-matrix text-sm text-[#7d2a15]">{label}</p>
<div className="mt-2">
<p className="text-xs text-[#8a6b58]">{ticketPct.toFixed(1)}%</p>
<div className="mt-1 h-3 w-full overflow-hidden rounded-full bg-[#ece0ca]">
<div
className="h-full rounded-full bg-[#b68a65]"
style={{ width: `${Math.min(ticketPct, 100)}%` }}
/>
</div>
</div>
<div className="mt-3">
<p className="text-xs text-[#8a6b58]">{handlePct.toFixed(1)}%</p>
<div className="mt-1 h-3 w-full overflow-hidden rounded-full bg-[#ece0ca]">
<div
className={`h-full rounded-full ${alert ? 'bg-[#d1432d]' : 'bg-[#dcb53b]'}`}
style={{ width: `${Math.min(handlePct, 100)}%` }}
/>
</div>
</div>
{alert ? (
<p className="mt-2 text-sm text-[#8c2f2f]"> 20%</p>
) : (
<p className="mt-2 text-sm text-[#6f4f3c]"></p>
)}
</article>
);
}