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 --- .../GolfWatchApps/GolfWatchAppConnecting.tsx | 10 +++++++++- .../components/GolfWatchApps/GolfWatchAppFinished.tsx | 8 +++++++- .../components/GolfWatchApps/GolfWatchAppGaming.tsx | 16 +++++++++------- .../components/GolfWatchApps/GolfWatchAppStarting.tsx | 18 +++++++++++++----- 4 files changed, 38 insertions(+), 14 deletions(-) (limited to 'frontend/app/components/GolfWatchApps') diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppConnecting.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppConnecting.tsx index 07e359f..b91339a 100644 --- a/frontend/app/components/GolfWatchApps/GolfWatchAppConnecting.tsx +++ b/frontend/app/components/GolfWatchApps/GolfWatchAppConnecting.tsx @@ -1,3 +1,11 @@ export default function GolfWatchAppConnecting() { - return
Connecting...
; + return ( +
+
+

+ Connecting... +

+
+
+ ); } diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppFinished.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppFinished.tsx index 330d1a6..866e18a 100644 --- a/frontend/app/components/GolfWatchApps/GolfWatchAppFinished.tsx +++ b/frontend/app/components/GolfWatchApps/GolfWatchAppFinished.tsx @@ -1,3 +1,9 @@ export default function GolfWatchAppFinished() { - return
Finished
; + return ( +
+
+

Finished

+
+
+ ); } diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx index d58a04f..10d68fe 100644 --- a/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx +++ b/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx @@ -1,16 +1,18 @@ +type Props = { + problem: string; + codeA: string; + scoreA: number | null; + codeB: string; + scoreB: number | null; +}; + export default function GolfWatchAppGaming({ problem, codeA, scoreA, codeB, scoreB, -}: { - problem: string; - codeA: string; - scoreA: number | null; - codeB: string; - scoreB: number | null; -}) { +}: Props) { return (
diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppStarting.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppStarting.tsx index 643af93..3c9919c 100644 --- a/frontend/app/components/GolfWatchApps/GolfWatchAppStarting.tsx +++ b/frontend/app/components/GolfWatchApps/GolfWatchAppStarting.tsx @@ -1,7 +1,15 @@ -export default function GolfWatchAppStarting({ - timeLeft, -}: { +type Props = { timeLeft: number; -}) { - return
Starting... ({timeLeft} s)
; +}; + +export default function GolfWatchAppStarting({ timeLeft }: Props) { + return ( +
+
+

+ Starting... ({timeLeft} s) +

+
+
+ ); } -- cgit v1.2.3-70-g09d2