From cfaa969401e24180593a8a272956de912eb74c52 Mon Sep 17 00:00:00 2001 From: Reviflow Bot Date: Thu, 5 Feb 2026 21:36:11 +0100 Subject: [PATCH] fix(ui): refine dark mode styles for cards and modals --- frontend/src/pages/DashboardPage.tsx | 30 ++++++++++++++-------------- frontend/src/pages/ParentHubPage.tsx | 30 ++++++++++++++-------------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/frontend/src/pages/DashboardPage.tsx b/frontend/src/pages/DashboardPage.tsx index f849da7..e98c70c 100644 --- a/frontend/src/pages/DashboardPage.tsx +++ b/frontend/src/pages/DashboardPage.tsx @@ -140,12 +140,12 @@ function BadgeGalleryModal({ isOpen, onClose, unlockedBadges }: { isOpen: boolea initial={{ opacity: 0, scale: 0.95, y: 30 }} animate={{ opacity: 1, scale: 1, y: 0 }} exit={{ opacity: 0, scale: 0.95, y: 30 }} - className="relative z-10 bg-white/95 rounded-[2.5rem] shadow-2xl w-full max-w-4xl max-h-[85vh] overflow-hidden flex flex-col border border-white/20" + className="relative z-10 bg-white/95 dark:bg-slate-900/95 rounded-[2.5rem] shadow-2xl w-full max-w-4xl max-h-[85vh] overflow-hidden flex flex-col border border-white/20 dark:border-slate-700/50" > {/* Header */} -
+
-

Ma Collection 🏆

+

Ma Collection 🏆

- @@ -296,9 +296,9 @@ function AvatarDisplay({ url, size = "w-9 h-9", fontSize = "text-xl" }: { url: s const isEmoji = !url.startsWith('http') && !url.startsWith('data:') && !url.includes('/'); return ( -
+
{isEmoji ? ( - {url} + {url} ) : ( Avatar )} @@ -361,7 +361,7 @@ export default function DashboardPage() {
- Reviflow + Reviflow Reviflow @@ -492,14 +492,14 @@ export default function DashboardPage() {
{/* Badges - Compact */} -
+
{/* Background Decorations */}
-

Succès Récents

+

Succès Récents

-

-
- +

+
+
Nouvel Apprenti

- + setNewProfileName(e.target.value)} - className="w-full px-5 py-4 rounded-2xl bg-slate-50 border-2 border-transparent focus:border-indigo-500 focus:bg-white transition-all font-bold outline-none text-slate-900 placeholder:text-slate-300" + className="w-full px-5 py-4 rounded-2xl bg-slate-50 dark:bg-slate-800 border-2 border-transparent focus:border-indigo-500 focus:bg-white dark:focus:bg-slate-700 transition-all font-bold outline-none text-slate-900 dark:text-white placeholder:text-slate-300 dark:placeholder:text-slate-600" placeholder="Ex: Léo" autoFocus />
- + setNewProfileUsername(e.target.value.toLowerCase().replace(/\s/g, ''))} - className="w-full px-5 py-4 rounded-2xl bg-slate-50 border-2 border-transparent focus:border-indigo-500 focus:bg-white transition-all font-bold outline-none text-slate-900 placeholder:text-slate-300" + className="w-full px-5 py-4 rounded-2xl bg-slate-50 dark:bg-slate-800 border-2 border-transparent focus:border-indigo-500 focus:bg-white dark:focus:bg-slate-700 transition-all font-bold outline-none text-slate-900 dark:text-white placeholder:text-slate-300 dark:placeholder:text-slate-600" placeholder="leo2026" />

Utilisé pour se connecter sans email

- + setNewProfilePin(e.target.value)} - className="w-full px-5 py-4 rounded-2xl bg-slate-50 border-2 border-transparent focus:border-indigo-500 focus:bg-white transition-all font-bold text-center text-3xl tracking-widest outline-none text-indigo-600" + className="w-full px-5 py-4 rounded-2xl bg-slate-50 dark:bg-slate-800 border-2 border-transparent focus:border-indigo-500 focus:bg-white dark:focus:bg-slate-700 transition-all font-bold text-center text-3xl tracking-widest outline-none text-indigo-600 dark:text-indigo-400" placeholder="1234" />
@@ -296,7 +296,7 @@ export const ParentHubPage = () => { {/* Stats Modal */} {selectedChildId && (
-
+
-

+

📊 Progression

@@ -317,7 +317,7 @@ export const ParentHubPage = () => {