diff --git a/client/src/app/Footer.tsx b/client/src/app/Footer.tsx new file mode 100644 index 0000000..c36bec3 --- /dev/null +++ b/client/src/app/Footer.tsx @@ -0,0 +1,27 @@ +import { IconBrandGithub } from "@tabler/icons-react"; + +export default function Footer() { + return ( + + ); +} diff --git a/client/src/app/Navbar.tsx b/client/src/app/Navbar.tsx new file mode 100644 index 0000000..8e95b0f --- /dev/null +++ b/client/src/app/Navbar.tsx @@ -0,0 +1,48 @@ +import { IconUser, IconSun, IconMoon } from "@tabler/icons-react"; +import Link from "next/link"; + +export default function Navbar() { + return ( +
+
+ + chessu + alpha + +
+
+
+ +
+
+ {/* ^ wrap this in client component too */} + + +
+
+
+ ); +} diff --git a/client/src/app/PublicGames.tsx b/client/src/app/PublicGames.tsx new file mode 100644 index 0000000..581de7e --- /dev/null +++ b/client/src/app/PublicGames.tsx @@ -0,0 +1,51 @@ +import { IconRefresh } from "@tabler/icons-react"; + +export default function PublicGames() { + return ( +
+

+ Public games{" "} +
+ +
+

+ +
+ + + + + + + + + + {/* + + + + */} + + + + + + + {/* invisible last row to set max column widths */} + + + + + + +
HostOpponent
(empty)
sample usernize + +
+
+
+ ); +} diff --git a/client/src/app/layout.tsx b/client/src/app/layout.tsx index 5345dd9..b26b8a8 100644 --- a/client/src/app/layout.tsx +++ b/client/src/app/layout.tsx @@ -1,77 +1,20 @@ import "./globals.css"; -import { IconUser, IconSun, IconMoon, IconBrandGithub } from "@tabler/icons-react"; -import Link from "next/link"; + +import Navbar from "./Navbar"; +import Footer from "./Footer"; export default function RootLayout({ children }: { children: React.ReactNode }) { return ( -
-
- - chessu - alpha - -
-
-
- -
-
- {/* ^ wrap this in client component too */} - - -
-
-
+ +
{children}
- + +