diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-19 05:21:58 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-19 05:35:24 +0900 |
| commit | 19fad1b969ac9b6c50b024a2c710e8f4fe792eb0 (patch) | |
| tree | 3fe237c1bee168eec088e125ba3877249aa09510 /frontend/app/components/GolfWatchApps/GolfWatchAppWaiting.tsx | |
| parent | 6031c81f5394acf315b277302a7fd18ea288b506 (diff) | |
| download | iosdc-japan-2024-albatross-19fad1b969ac9b6c50b024a2c710e8f4fe792eb0.tar.gz iosdc-japan-2024-albatross-19fad1b969ac9b6c50b024a2c710e8f4fe792eb0.tar.zst iosdc-japan-2024-albatross-19fad1b969ac9b6c50b024a2c710e8f4fe792eb0.zip | |
feat(frontend): improve play/watch pages styling
Diffstat (limited to 'frontend/app/components/GolfWatchApps/GolfWatchAppWaiting.tsx')
| -rw-r--r-- | frontend/app/components/GolfWatchApps/GolfWatchAppWaiting.tsx | 28 |
1 files changed, 24 insertions, 4 deletions
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<FullPlayerInfo, "displayName" | "iconPath">; + +type Props = { + gameDisplayName: string; + playerInfoA: PlayerInfo; + playerInfoB: PlayerInfo; +}; + +export default function GolfWatchAppWaiting({ + gameDisplayName, + playerInfoA, + playerInfoB, +}: Props) { return ( - <div className="min-h-screen bg-gray-100 flex items-center justify-center"> - <div className="text-center"> - <h1 className="text-4xl font-bold text-black-600 mb-4">Waiting...</h1> + <div className="min-h-screen bg-gray-100 flex flex-col font-bold text-center"> + <div className="text-white bg-iosdc-japan p-10"> + <div className="text-4xl">{gameDisplayName}</div> + </div> + <div className="grow grid grid-cols-3 gap-10 mx-auto text-black"> + <PlayerProfile playerInfo={playerInfoA} label="Player 1" /> + <div className="text-8xl my-auto">vs.</div> + <PlayerProfile playerInfo={playerInfoB} label="Player 2" /> </div> </div> ); |
