diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-18 01:20:19 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-18 01:46:02 +0900 |
| commit | 909ef91eb46334fa59602c02ab85afc209382e61 (patch) | |
| tree | 77b2bc110d98dc906ea227ee735704c7cd31cbbf | |
| parent | ad42f43d1c3c8f0da0ac31b8016e2f20f1765720 (diff) | |
| download | iosdc-japan-2024-albatross-909ef91eb46334fa59602c02ab85afc209382e61.tar.gz iosdc-japan-2024-albatross-909ef91eb46334fa59602c02ab85afc209382e61.tar.zst iosdc-japan-2024-albatross-909ef91eb46334fa59602c02ab85afc209382e61.zip | |
feat(frontend): show problem in watch page
| -rw-r--r-- | frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx index d17c2dc..abdc855 100644 --- a/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx +++ b/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx @@ -1,4 +1,5 @@ import { PlayerInfo } from "../../models/PlayerInfo"; +import BorderedContainer from "../BorderedContainer"; import CodeBlock from "../Gaming/CodeBlock"; import ScoreBar from "../Gaming/ScoreBar"; import SubmitResult from "../Gaming/SubmitResult"; @@ -19,6 +20,8 @@ export default function GolfWatchAppGaming({ leftTimeSeconds, playerInfoA, playerInfoB, + problemTitle, + problemDescription, }: Props) { const leftTime = (() => { const k = gameDurationSeconds + leftTimeSeconds; @@ -81,19 +84,21 @@ export default function GolfWatchAppGaming({ bgA="bg-orange-400" bgB="bg-purple-400" /> - <div className="grow grid grid-cols-10 p-4 gap-4"> - <div className="col-span-3"> - <CodeBlock code={playerInfoA.code ?? ""} /> - </div> - <div className="col-span-2"> - <SubmitResult result={playerInfoA.submitResult} /> - </div> - <div className="col-span-2"> - <SubmitResult result={playerInfoB.submitResult} /> - </div> - <div className="col-span-3"> - <CodeBlock code={playerInfoB.code ?? ""} /> + <div className="grow grid grid-cols-3 p-4 gap-4"> + <CodeBlock code={playerInfoA.code ?? ""} /> + <div className="flex flex-col gap-4 justify-between"> + <div className="grid grid-cols-2 gap-4"> + <SubmitResult result={playerInfoA.submitResult} /> + <SubmitResult result={playerInfoB.submitResult} /> + </div> + <div> + <div className="mb-2 text-center text-xl font-bold"> + {problemTitle} + </div> + <BorderedContainer>{problemDescription}</BorderedContainer> + </div> </div> + <CodeBlock code={playerInfoB.code ?? ""} /> </div> </div> ); |
