-
X's turn
+
+
+ {/* Players */}
+ {gameState.players.slice(0, 6).map((player, index) => (
+
+
+ {player.cards.length}
+
+
+ ))}
+
+ {/* Center Deck and UNO Button */}
+
+
+ {/* Player Mat */}
+
+
+
+ {Array.from({ length: 7 }).map((_, index) => (
+
+ ))}
+
+
+
);
-}
+};
export default Game;
diff --git a/frontend/src/pages/Home.tsx b/frontend/src/pages/Home.tsx
index bf0fe11..ba2da7b 100644
--- a/frontend/src/pages/Home.tsx
+++ b/frontend/src/pages/Home.tsx
@@ -11,7 +11,7 @@ const Home: React.FC = () => {
const CreateGame = () => {
// Logic to create a game
console.log('Create Game');
- navigate('/error');
+ navigate('/game');
};
const JoinGame = () => {
diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js
index b605050..e6ecd90 100644
--- a/frontend/tailwind.config.js
+++ b/frontend/tailwind.config.js
@@ -18,6 +18,8 @@ export default {
extend: {
backgroundImage: {
'uno-bg': "url('/src/assets/bg.jpg')",
+ 'table-bg': "url('/playBackground.png')",
+ 'player-icon-bg': "url('/playerIcon.png')",
},
},
},