diff --git a/frontend/src/app/style.css b/frontend/src/app/style.css index 4ffc5ec..4d21f84 100644 --- a/frontend/src/app/style.css +++ b/frontend/src/app/style.css @@ -37,3 +37,7 @@ .text-outline { -webkit-text-stroke: 2px black; } + +.text-outline-small { + -webkit-text-stroke: 1px black; +} diff --git a/frontend/src/app/voting/page.tsx b/frontend/src/app/voting/page.tsx index d6d0cf1..009864d 100644 --- a/frontend/src/app/voting/page.tsx +++ b/frontend/src/app/voting/page.tsx @@ -11,41 +11,126 @@ const nunito = Nunito({ }); export default function Lobby() { - return ( -
-
-

- VOTING -

-
+ const [partySize, setPartySize] = useState(8); + const [userList, setUserList] = useState([]); + const [yesVoteList, setYesVoteList] = useState([]); + const [noVoteList, setNoVoteList] = useState([]); -
-
+ const [currentSong, setCurrentSong] = useState({ + artist: "The Meowls", + title: "The Owls Are Not What They Seem", + }); + + useEffect(() => { + populateUserList(); + }, [partySize]); + + function populateUserList() { + const mappedUsers = users.slice(0, partySize).map((user) => ({ + id: user.id, + name: user.name, + avatar: user.avatar, + host: user.host, + })); + setUserList(mappedUsers); + } + + // function handleYesVote(user) { + // setYesVoteList([...yesVoteList, user]); + // } + + // function handleNoVote(user) { + // setNoVoteList([...noVoteList, user]); + // } + + return ( +
+
+
+
+
+
+ 30 +
+
+
+ +
PAUSE NEXT
-
- meowl -
+
-
- Artist - Title +
+
+
+ {userList.map((user) => ( +
+ {user.name} +
+ {user.name} +
+
+ ))}{" "} +
+ +
+ meowl +
+
+ {userList.map((user) => ( +
+ {user.name} +
+ {user.name} +
+
+ ))}{" "} +
+
+
+

+ {currentSong.artist} +

+

+ {currentSong.title} +

-
+
+ {userList.map((user) => ( +
+ {user.name} +
+ {user.name} +
+
+ ))} +
); } diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json new file mode 100644 index 0000000..495313a --- /dev/null +++ b/node_modules/.package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "muzak", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..495313a --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "muzak", + "lockfileVersion": 3, + "requires": true, + "packages": {} +}