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 --- .../components/GolfPlayApps/GolfPlayAppGaming.tsx | 43 ++++++++++++++-------- 1 file changed, 27 insertions(+), 16 deletions(-) (limited to 'frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx') 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}`} +
+
+
+
+
+ +
-
-
-