From 1be6007f81488d0f186b44994fe8ee23385059a1 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 1 Aug 2024 02:02:04 +0900 Subject: feat(frontend): add minimal styling to game pages --- .../GolfPlayApps/GolfPlayAppConnecting.tsx | 10 +- .../GolfPlayApps/GolfPlayAppFinished.tsx | 8 +- .../components/GolfPlayApps/GolfPlayAppGaming.tsx | 43 +- .../GolfPlayApps/GolfPlayAppStarting.tsx | 18 +- .../components/GolfPlayApps/GolfPlayAppWaiting.tsx | 583 ++++++++++++++++++++- .../GolfWatchApps/GolfWatchAppConnecting.tsx | 10 +- .../GolfWatchApps/GolfWatchAppFinished.tsx | 8 +- .../GolfWatchApps/GolfWatchAppGaming.tsx | 16 +- .../GolfWatchApps/GolfWatchAppStarting.tsx | 18 +- 9 files changed, 676 insertions(+), 38 deletions(-) (limited to 'frontend/app/components') diff --git a/frontend/app/components/GolfPlayApps/GolfPlayAppConnecting.tsx b/frontend/app/components/GolfPlayApps/GolfPlayAppConnecting.tsx index e92a8e0..6a954c1 100644 --- a/frontend/app/components/GolfPlayApps/GolfPlayAppConnecting.tsx +++ b/frontend/app/components/GolfPlayApps/GolfPlayAppConnecting.tsx @@ -1,3 +1,11 @@ export default function GolfPlayAppConnecting() { - return
Connecting...
; + return ( +
+
+

+ Connecting... +

+
+
+ ); } diff --git a/frontend/app/components/GolfPlayApps/GolfPlayAppFinished.tsx b/frontend/app/components/GolfPlayApps/GolfPlayAppFinished.tsx index 75ceb71..db06890 100644 --- a/frontend/app/components/GolfPlayApps/GolfPlayAppFinished.tsx +++ b/frontend/app/components/GolfPlayApps/GolfPlayAppFinished.tsx @@ -1,3 +1,9 @@ export default function GolfPlayAppFinished() { - return
Finished
; + return ( +
+
+

Finished

+
+
+ ); } diff --git a/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx b/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx index 332cb3c..fc672f5 100644 --- a/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx +++ b/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx @@ -1,29 +1,40 @@ +type Props = { + problem: string; + onCodeChange: (code: string) => void; + currentScore: number | null; +}; + export default function GolfPlayAppGaming({ problem, onCodeChange, currentScore, -}: { - problem: string; - onCodeChange: (code: string) => void; - currentScore: number | null; -}) { +}: Props) { const handleTextChange = (e: React.ChangeEvent) => { onCodeChange(e.target.value); }; return ( -
-
-
{problem}
-
- {currentScore == null ? "Score: -" : `Score: ${currentScore}`} +
+
+
+
+
TODO
+
{problem}
+
+
+
+ Score: {currentScore == null ? "-" : `${currentScore}`} +
+
+
+
+
+ +
-
-
-