From 3c02ec930b0d0e562a90c86ad6f60bb409eaadfc Mon Sep 17 00:00:00 2001 From: Guus Date: Tue, 8 Jul 2025 17:26:01 +0200 Subject: [PATCH] update user grid cards --- frontend/src/app/lobby/page.tsx | 66 ++++++++++++++++++++------------- frontend/src/data/users.json | 16 ++++---- 2 files changed, 48 insertions(+), 34 deletions(-) diff --git a/frontend/src/app/lobby/page.tsx b/frontend/src/app/lobby/page.tsx index 0b02640..7c03408 100644 --- a/frontend/src/app/lobby/page.tsx +++ b/frontend/src/app/lobby/page.tsx @@ -41,19 +41,19 @@ export default function Lobby() {

LOBBY

-
-
-
+
+
+
Players: {partySize}
- {/*
*/} -
- {userList.map((user) => ( -
- {user.name} - {user.name} - {user.host && ( - Crown image + Waiting for players... +
+ ) : ( + //
+
+ {userList.map((user) => ( +
+ {user.name} - )} -
- ))} -
+ + {user.name} + + {user.host && ( +
+ Crown image +
+ )} +
+ ))} +
+ )}
diff --git a/frontend/src/data/users.json b/frontend/src/data/users.json index 5e913c3..066d5de 100644 --- a/frontend/src/data/users.json +++ b/frontend/src/data/users.json @@ -2,49 +2,49 @@ { "id": 1, "name": "Mark", - "avatar": "https://i.pravatar.cc/300?img=66", + "avatar": "https://api.dicebear.com/9.x/bottts-neutral/svg?seed=69", "host": true }, { "id": 2, "name": "Guus", - "avatar": "https://i.pravatar.cc/300?img=67", + "avatar": "https://api.dicebear.com/9.x/bottts-neutral/svg?seed=91", "host": false }, { "id": 3, "name": "Freek", - "avatar": "https://i.pravatar.cc/300?img=68", + "avatar": "https://api.dicebear.com/9.x/bottts-neutral/svg?seed=77", "host": false }, { "id": 4, "name": "JP", - "avatar": "https://i.pravatar.cc/300?img=69", + "avatar": "https://api.dicebear.com/9.x/bottts-neutral/svg?seed=11", "host": false }, { "id": 5, "name": "Lourens", - "avatar": "https://i.pravatar.cc/300?img=70", + "avatar": "https://api.dicebear.com/9.x/bottts-neutral/svg?seed=22", "host": false }, { "id": 6, "name": "Martijn", - "avatar": "https://i.pravatar.cc/300?img=6", + "avatar": "https://api.dicebear.com/9.x/bottts-neutral/svg?seed=33", "host": false }, { "id": 7, "name": "Hugo", - "avatar": "https://i.pravatar.cc/300?img=7", + "avatar": "https://api.dicebear.com/9.x/bottts-neutral/svg?seed=44", "host": false }, { "id": 8, "name": "Erik", - "avatar": "https://i.pravatar.cc/300?img=8", + "avatar": "https://api.dicebear.com/9.x/bottts-neutral/svg?seed=55", "host": false } ]