From 19fad1b969ac9b6c50b024a2c710e8f4fe792eb0 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 19 Aug 2024 05:21:58 +0900 Subject: feat(frontend): improve play/watch pages styling --- .../GolfWatchApps/GolfWatchAppConnecting.tsx | 4 +--- .../GolfWatchApps/GolfWatchAppStarting.tsx | 11 ++++++--- .../GolfWatchApps/GolfWatchAppWaiting.tsx | 28 ++++++++++++++++++---- 3 files changed, 33 insertions(+), 10 deletions(-) (limited to 'frontend/app/components/GolfWatchApps') diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppConnecting.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppConnecting.tsx index 3704656..07a1be8 100644 --- a/frontend/app/components/GolfWatchApps/GolfWatchAppConnecting.tsx +++ b/frontend/app/components/GolfWatchApps/GolfWatchAppConnecting.tsx @@ -2,9 +2,7 @@ export default function GolfWatchAppConnecting() { return (
-

- Connecting... -

+
接続中...
); diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppStarting.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppStarting.tsx index 197d8b4..74f2a43 100644 --- a/frontend/app/components/GolfWatchApps/GolfWatchAppStarting.tsx +++ b/frontend/app/components/GolfWatchApps/GolfWatchAppStarting.tsx @@ -1,14 +1,19 @@ type Props = { + gameDisplayName: string; leftTimeSeconds: number; }; export default function GolfWatchAppStarting({ - leftTimeSeconds: timeLeft, + gameDisplayName, + leftTimeSeconds, }: Props) { return ( -
+
+
+
{gameDisplayName}
+
- {timeLeft} + {leftTimeSeconds}
); diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppWaiting.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppWaiting.tsx index 17ef2b9..faa9485 100644 --- a/frontend/app/components/GolfWatchApps/GolfWatchAppWaiting.tsx +++ b/frontend/app/components/GolfWatchApps/GolfWatchAppWaiting.tsx @@ -1,8 +1,28 @@ -export default function GolfWatchAppWaiting() { +import { PlayerInfo as FullPlayerInfo } from "../../models/PlayerInfo"; +import PlayerProfile from "../PlayerProfile"; + +type PlayerInfo = Pick; + +type Props = { + gameDisplayName: string; + playerInfoA: PlayerInfo; + playerInfoB: PlayerInfo; +}; + +export default function GolfWatchAppWaiting({ + gameDisplayName, + playerInfoA, + playerInfoB, +}: Props) { return ( -
-
-

Waiting...

+
+
+
{gameDisplayName}
+
+
+ +
vs.
+
); -- cgit v1.2.3-70-g09d2