From 6b75e787c4ad8c23f203fa1cdf1bc2977e61b98e Mon Sep 17 00:00:00 2001 From: Guus Date: Tue, 8 Jul 2025 21:10:00 +0200 Subject: [PATCH] add routing links --- frontend/src/app/lobby/page.tsx | 10 +++---- frontend/src/app/login/page.tsx | 20 ++++++++----- frontend/src/app/pause/page.tsx | 29 +++++++++++++++++- frontend/src/app/voting/page.tsx | 51 ++++++++++++++++++++++++++++++++ 4 files changed, 96 insertions(+), 14 deletions(-) create mode 100644 frontend/src/app/voting/page.tsx diff --git a/frontend/src/app/lobby/page.tsx b/frontend/src/app/lobby/page.tsx index 7c03408..16923d7 100644 --- a/frontend/src/app/lobby/page.tsx +++ b/frontend/src/app/lobby/page.tsx @@ -3,6 +3,7 @@ import { useState, useEffect } from "react"; import { Markazi_Text, Nunito } from "next/font/google"; import users from "muzak/data/users.json"; import Image from "next/image"; +import Link from "next/link"; const nunito = Nunito({ weight: "900", @@ -52,14 +53,12 @@ export default function Lobby() {
Players: {partySize}
- + {partySize === 0 ? ( @@ -67,7 +66,6 @@ export default function Lobby() { Waiting for players... ) : ( - //
{userList.map((user) => (

LOGIN

-

Welkom, {userName}!

+

+ Welkom, {userName}! +

setPin(e.target.value.toUpperCase())} /> - +
diff --git a/frontend/src/app/pause/page.tsx b/frontend/src/app/pause/page.tsx index af198ff..9a9d9ba 100644 --- a/frontend/src/app/pause/page.tsx +++ b/frontend/src/app/pause/page.tsx @@ -1,7 +1,34 @@ +"use client"; +import { Nunito } from "next/font/google"; +import Link from "next/link"; + +const nunito = Nunito({ + weight: "900", + subsets: ["latin"], +}); + export default function Pause() { return (
-

Pause

+
+

+ PAUZE +

+
+ + + START + +

+ PAUZE +

); } diff --git a/frontend/src/app/voting/page.tsx b/frontend/src/app/voting/page.tsx new file mode 100644 index 0000000..d6d0cf1 --- /dev/null +++ b/frontend/src/app/voting/page.tsx @@ -0,0 +1,51 @@ +"use client"; +import { useState, useEffect } from "react"; +import { Nunito } from "next/font/google"; +import users from "muzak/data/users.json"; +import Image from "next/image"; +import Link from "next/link"; + +const nunito = Nunito({ + weight: "900", + subsets: ["latin"], +}); + +export default function Lobby() { + return ( +
+
+

+ VOTING +

+
+ +
+
+ + PAUSE + + + NEXT + +
+
+ meowl +
+ +
+ Artist - Title +
+
+ +
+
+ ); +}