diff --git a/connect4-ui/.prettierignore b/connect4-ui/.prettierignore new file mode 100644 index 0000000..dd736b3 --- /dev/null +++ b/connect4-ui/.prettierignore @@ -0,0 +1,4 @@ +node_modules +.next +out +connect4-moderator-server diff --git a/connect4-ui/.prettierrc b/connect4-ui/.prettierrc new file mode 100644 index 0000000..8973894 --- /dev/null +++ b/connect4-ui/.prettierrc @@ -0,0 +1,4 @@ +{ + "useTabs": false, + "tabWidth": 2 +} diff --git a/connect4-ui/app/globals.css b/connect4-ui/app/globals.css index 88433af..d972e2f 100644 --- a/connect4-ui/app/globals.css +++ b/connect4-ui/app/globals.css @@ -8,5 +8,8 @@ body { background-color: var(--background); color: var(--foreground); - font-family: system-ui, -apple-system, sans-serif; + font-family: + system-ui, + -apple-system, + sans-serif; } diff --git a/connect4-ui/app/layout.tsx b/connect4-ui/app/layout.tsx index f0cc295..9c8b3f0 100644 --- a/connect4-ui/app/layout.tsx +++ b/connect4-ui/app/layout.tsx @@ -4,23 +4,23 @@ import Nav from "@/components/Nav"; import { ConnectionProvider } from "@/lib/connection"; export const metadata: Metadata = { - title: "Connect4 Moderator", - description: "Watch matches, track tournaments, and play Connect4", + title: "Connect4 Moderator", + description: "Watch matches, track tournaments, and play Connect4", }; export default function RootLayout({ - children, + children, }: { - children: React.ReactNode; + children: React.ReactNode; }) { - return ( - -
-- Connect as an observer to watch live matches and tournaments. -
-+ Connect as an observer to watch live matches and tournaments. +
+- Connected as {username} -
-+ Connected as {username} +
+No events yet
- ) : ( - statusMessages.map((m, i) => ( -- {m} -
- )) - )} -No events yet
+ ) : ( + statusMessages.map((m, i) => ( ++ {m} +
+ )) + )} +- Ready up to start -
-- Click the{" "} - - Ready to Play - {" "} - button in the Match panel to enter the queue. -
-- Waiting for an opponent... -
-+ Ready up to start +
++ Click the{" "} + + Ready to Play + {" "} + button in the Match panel to enter the queue. +
++ Waiting for an opponent... +
+