Add winner celebration feature with confetti effects

This update introduces a winner celebration overlay displayed when a game's winner is announced. It includes confetti animations along with a congratulatory message, enhancing user experience. The feature resets appropriately during game transitions and logout to maintain correct behavior.
This commit is contained in:
2026-02-06 17:05:19 +01:00
parent 56ef076010
commit 3a9da788e5
3 changed files with 233 additions and 3 deletions

View File

@@ -9,7 +9,8 @@
},
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1"
"react-dom": "^18.3.1",
"canvas-confetti": "^1.9.3"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.1",