From 6ad3e440d9363052b3637c32f22e7aaab3e7878f Mon Sep 17 00:00:00 2001 From: caty21 Date: Sat, 27 Jun 2026 18:55:16 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20visibilit=C3=A9=20textes=20=E2=80=94=20l?= =?UTF-8?q?abels=20indicatifs=20text-slate-300,=20tabs=20text-slate-400,?= =?UTF-8?q?=20rename=20Sentiment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - MacroBlock titles (Politique Monétaire, Inflation...) : slate-500 → slate-300 - COT CFTC header + "vs date" : slate-600 → slate-300 / slate-400 - Mouvement HF · semaine, Δ Longs/Shorts, xxx acc. : slate-600 → slate-300/400 - Δ AM/HF deltas : slate-600 → slate-400 - Sentiment Long/Short labels, Long/Short barre : slate-600 → slate-400 - Sentiment titre : slate-600 → slate-300, rename → "Sentiment Retail (DXM)" - Tous les boutons tabs non-sélectionnés : slate-500 → slate-400 (hover → white) Co-Authored-By: Claude Sonnet 4.6 --- components/CurrencyCard.tsx | 38 ++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/components/CurrencyCard.tsx b/components/CurrencyCard.tsx index a5069ca..20765ab 100644 --- a/components/CurrencyCard.tsx +++ b/components/CurrencyCard.tsx @@ -246,7 +246,7 @@ function MacroBlock({ title, children, action }: { title: string; children: Reac return (
-
{title}
+
{title}
{action}
{children} @@ -486,7 +486,7 @@ function OISEnhancedBlock({ ratePath }: { ratePath: CBRatePath }) { className={`text-[9px] font-semibold px-2 py-0.5 rounded-full border transition-all ${ chartTab === t.id ? "bg-slate-700 border-slate-500 text-white" - : "border-slate-700/60 text-slate-500 hover:text-slate-300" + : "border-slate-700/60 text-slate-400 hover:text-white" }`} > {t.label} @@ -1290,7 +1290,7 @@ export default function CurrencyCard({ className={`flex items-center gap-1.5 px-3 py-2 text-[11px] font-medium rounded-t-lg transition-all ${ activeTab === t.id ? "text-white bg-slate-800" - : "text-slate-500 hover:text-slate-300" + : "text-slate-400 hover:text-white" }`} > {t.icon} @@ -1386,7 +1386,7 @@ export default function CurrencyCard({ className={`text-[9px] font-semibold px-2.5 py-0.5 rounded-full border transition-all ${ macroSlide === t.id ? "bg-slate-700 border-slate-500 text-white" - : "bg-transparent border-slate-700/60 text-slate-500 hover:text-slate-300 hover:border-slate-500" + : "bg-transparent border-slate-700/60 text-slate-400 hover:text-white hover:border-slate-500" }`} > {t.label} @@ -1498,7 +1498,7 @@ export default function CurrencyCard({ {sigTabs.length > 1 && (
{sigTabs.map(t => ( - + ))}
)} @@ -1556,7 +1556,7 @@ export default function CurrencyCard({
{/* ① Header */}
-
+
COT CFTC · {cot.weekDate}
- {cot.prevWeekDate ? `vs ${cot.prevWeekDate}` : ""} + {cot.prevWeekDate ? `vs ${cot.prevWeekDate}` : ""}
{/* ⓘ Tooltip explicatif */} @@ -1604,10 +1604,10 @@ export default function CurrencyCard({ {/* ③ Flux hebdomadaire HF — ΔL/ΔS en priorité */}
-
Mouvement HF · semaine
+
Mouvement HF · semaine
-
Δ Longs
+
Δ Longs
0 ? "text-emerald-400" : "text-red-400" @@ -1617,11 +1617,11 @@ export default function CurrencyCard({ : "—" }
-
{(cot.hfLongs/1000).toFixed(1)}k acc.
+
{(cot.hfLongs/1000).toFixed(1)}k acc.
-
Δ Shorts
+
Δ Shorts
0 ? "text-red-400" : "text-emerald-400" @@ -1631,7 +1631,7 @@ export default function CurrencyCard({ : "—" }
-
{(cot.hfShorts/1000).toFixed(1)}k acc.
+
{(cot.hfShorts/1000).toFixed(1)}k acc.
@@ -1654,7 +1654,7 @@ export default function CurrencyCard({ {dFmt(cot.amNet)} {cot.amNetDelta !== null && ( - Δ{dFmt(cot.amNetDelta)}{cot.amNetDelta > 0 ? "↑" : "↓"} + Δ{dFmt(cot.amNetDelta)}{cot.amNetDelta > 0 ? "↑" : "↓"} )}
@@ -1669,7 +1669,7 @@ export default function CurrencyCard({ {dFmt(cot.net)} {cot.netDelta !== null && ( - Δ{dFmt(cot.netDelta)}{cot.netDelta > 0 ? "↑" : "↓"} + Δ{dFmt(cot.netDelta)}{cot.netDelta > 0 ? "↑" : "↓"} )}
@@ -1685,13 +1685,13 @@ export default function CurrencyCard({ const sentBg = sentDir === "bullish" ? "border-emerald-500/20 bg-emerald-500/5" : sentDir === "bearish" ? "border-red-500/20 bg-red-500/5" : "border-slate-700/40 bg-slate-800/20"; return (
-
+
- Sentiment Retail (DXM) · {sentiment.pair} + Sentiment Retail (DXM)
-
Long
+
Long
{sentiment.longPct.toFixed(0)}%
@@ -1699,10 +1699,10 @@ export default function CurrencyCard({
-
LongShort
+
LongShort
-
Short
+
Short
{sentiment.shortPct.toFixed(0)}%