diff --git a/client/src/app/Navbar.tsx b/client/src/app/Navbar.tsx index 8e95b0f..ae696bc 100644 --- a/client/src/app/Navbar.tsx +++ b/client/src/app/Navbar.tsx @@ -10,7 +10,7 @@ export default function Navbar() { className="btn btn-ghost no-animation gap-1 text-xl normal-case hover:bg-transparent" > chessu - alpha + alpha
diff --git a/client/src/app/game/[code]/page.tsx b/client/src/app/game/[code]/page.tsx index 587166f..fdf3a4c 100644 --- a/client/src/app/game/[code]/page.tsx +++ b/client/src/app/game/[code]/page.tsx @@ -9,58 +9,65 @@ const pgn = "1. e4 e5 2. f3 Nf6 3. d4 exd4 4. Qxd4 Nxe4 5. Qxe4+ Qe7 6. Qxe7+ Bx export default function Game() { return ( -
+
-
-
-
- avatar -
-
- nize -
- - -
-
-
- avatar -
-
- gwapo -
-
- Invite friends: -
- - ches.su/game/123abc +
+
+
+
+
+ avatar +
+
+ nize +
+
+
+
+ avatar +
+
+ notnize +
+
+ +
+
+ Invite friends: +
+ + ches.su/game/123abc +
+
+
+ move list table + {pgn + .split(/\d+\./) + .filter((move) => move.trim() !== "") + .map((moveSet, i) => { + const moves = moveSet.trim().split(" "); + return ( +
+
{i + 1}
+
{moves[0]}
+
{moves[1]}
+
+ ); + })} +
-
- {pgn - .split(/\d+\./) - .filter((move) => move.trim() !== "") - .map((moveSet, i) => { - const moves = moveSet.trim().split(" "); - return ( -
-
{i + 1}
-
{moves[0]}
-
{moves[1]}
-
- ); - })} -
-
+ +
chatbox diff --git a/client/src/app/layout.tsx b/client/src/app/layout.tsx index b26b8a8..14929bd 100644 --- a/client/src/app/layout.tsx +++ b/client/src/app/layout.tsx @@ -10,7 +10,7 @@ export default function RootLayout({ children }: { children: React.ReactNode }) -
+
{children}