From 8c7d882dfa67bcef37a4f39be6f1ca57f160b816 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 12 Aug 2024 00:32:06 +0900 Subject: feat(frontend): improve play page styling --- .../components/GolfPlayApps/GolfPlayAppGaming.tsx | 65 +++++++++++++--------- 1 file changed, 39 insertions(+), 26 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 31927a5..03acf5a 100644 --- a/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx +++ b/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx @@ -1,6 +1,11 @@ +import { Link } from "@remix-run/react"; import React, { useRef } from "react"; +import SubmitButton from "../../components/SubmitButton"; +import BorderedContainer from "../BorderedContainer"; type Props = { + gameDisplayName: string; + playerDisplayName: string; problemTitle: string; problemDescription: string; onCodeChange: (code: string) => void; @@ -10,6 +15,8 @@ type Props = { }; export default function GolfPlayAppGaming({ + gameDisplayName, + playerDisplayName, problemTitle, problemDescription, onCodeChange, @@ -30,34 +37,40 @@ export default function GolfPlayAppGaming({ }; return ( -
-
-
-
-
{problemTitle}
-
{problemDescription}
-
-
-
-
- Score: {currentScore ?? "-"} ({lastExecStatus ?? "-"}) -
-
- +
+
+
+
{gameDisplayName}
+
03:21
+
+
+ + {playerDisplayName} + +
+
+
+
+
{problemTitle}
+
+ +
{problemDescription}
+
-
-
- +
+ +
+
+ 提出 +
+
+ Score: {currentScore ?? "-"} ({lastExecStatus ?? "-"}) +
-- cgit v1.2.3-70-g09d2