From 60bbeb97371f5449b5e937209fbeb3519711ba33 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Thu, 27 Nov 2025 17:10:06 +0100 Subject: [PATCH] add animated card mosaic background to home, collection, community, and deck list views --- src/App.tsx | 10 +++++++--- src/components/CardSearch.tsx | 2 +- src/components/Collection.tsx | 2 +- src/components/Community.tsx | 4 ++-- src/components/DeckList.tsx | 2 +- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index c76e665..e42be10 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -11,6 +11,7 @@ import Community from './components/Community'; import PWAInstallPrompt from './components/PWAInstallPrompt'; import { AuthProvider, useAuth } from './contexts/AuthContext'; import { ToastProvider } from './contexts/ToastContext'; +import CardMosaicBackground from "./components/CardMosaicBackground.tsx"; type Page = 'home' | 'deck' | 'login' | 'collection' | 'edit-deck' | 'search' | 'life-counter' | 'community'; @@ -40,7 +41,7 @@ function AppContent() { switch (currentPage) { case 'home': return ( -
+

My Decks

+
+ {/* Animated card mosaic overlay */} + + -
+
{renderPage()}
diff --git a/src/components/CardSearch.tsx b/src/components/CardSearch.tsx index 963b29b..50304fc 100644 --- a/src/components/CardSearch.tsx +++ b/src/components/CardSearch.tsx @@ -201,7 +201,7 @@ const CardSearch = () => { }; return ( -
+

Card Search

diff --git a/src/components/Collection.tsx b/src/components/Collection.tsx index 118936f..4e8fde0 100644 --- a/src/components/Collection.tsx +++ b/src/components/Collection.tsx @@ -321,7 +321,7 @@ export default function Collection() { }; return ( -
+

My Collection

diff --git a/src/components/Community.tsx b/src/components/Community.tsx index 8625ac4..f57ee95 100644 --- a/src/components/Community.tsx +++ b/src/components/Community.tsx @@ -696,7 +696,7 @@ export default function Community() { ); return ( -
+
{/* Header with Back and Trade buttons */}
@@ -1027,7 +1027,7 @@ export default function Community() { // ============ MAIN VIEW ============ return ( -
+
{/* Header */}

Community

diff --git a/src/components/DeckList.tsx b/src/components/DeckList.tsx index abfbbee..ef60cab 100644 --- a/src/components/DeckList.tsx +++ b/src/components/DeckList.tsx @@ -77,7 +77,7 @@ const DeckList = ({ onDeckEdit, onCreateDeck }: DeckListProps) => { {/* Create New Deck Card */}