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,40 @@
'use client';
type Props = {
isVisible: boolean;
parlayLabel: string;
counterSelection: string;
hedgeStake: number;
lockedProfit: number;
};
export function HedgeAlert({ isVisible, parlayLabel, counterSelection, hedgeStake, lockedProfit }: Props) {
if (!isVisible) {
return null;
}
return (
<aside className="fixed bottom-28 right-4 z-50 w-[min(340px,calc(100vw-2rem))] rounded-2xl border-2 border-[#fbbf24] bg-[#032f26] p-4 text-white shadow-2xl shadow-[#f59e0b]/35">
<p className="dot-matrix text-sm animate-pulse text-[#fef3c7]">🔒 </p>
<p className="mt-2 text-xs text-[#f3e6c6]">
{parlayLabel}
</p>
<p className="mt-3 text-sm text-[#ffd26d]">
<span className="font-semibold">{counterSelection}</span>
</p>
<p className="mt-2 text-sm">
<span className="font-bold text-[#fca5a5]">${hedgeStake.toFixed(2)}</span>
</p>
<p className="mt-1 text-sm">
<span className="font-bold text-[#86efac]">${lockedProfit.toFixed(2)}</span>
</p>
<button
type="button"
className="dot-matrix mt-3 rounded-full bg-[#16a34a] px-3 py-2 text-xs text-black transition hover:bg-[#22c55e]"
onClick={() => window.alert('請先至下注頁面進行對沖下單。')}
>
</button>
</aside>
);
}