Skip to content

Commit 1668fb5

Browse files
committed
fix tsumoend
1 parent 48b2d50 commit 1668fb5

File tree

3 files changed

+25
-34
lines changed

3 files changed

+25
-34
lines changed

src/pages/Play/GameInterface.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ const GameInterface = (props: GameInterfaceProps) => {
7676
score: props.playerInfo.score,
7777
}),
7878
});
79+
console.log("result sent");
7980
} catch (error) {
8081
console.error("failed in creating score", error);
8182
}

src/pages/Play/components/TsumoEnd.tsx

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,38 @@
11
import Button from "@mui/material/Button";
2-
import React from "react";
3-
import styles from "../styles/TsumoEnd.module.css";
42

53
type TsumoEndProps = {
64
tsumoEnd: () => void;
75
};
86

97
export default function TsumoEnd(props: TsumoEndProps) {
108
return (
11-
<div className={styles.container}>
12-
<div className={styles.title}>ツモ!</div>
9+
<div
10+
style={{
11+
justifyContent: "center",
12+
height: "20rem",
13+
width: "70rem",
14+
margin: "0 auto",
15+
transform: "translateY(3rem)",
16+
}}
17+
>
18+
<div
19+
style={{
20+
fontFamily:
21+
"Noto Serif JP, Source Han Serif JP, Hiragino Mincho ProN, Yu Mincho, serif",
22+
fontSize: "8rem",
23+
fontWeight: "1000",
24+
color: "red",
25+
}}
26+
>
27+
ツモ!
28+
</div>
1329
<Button
1430
variant="contained"
1531
onClick={props.tsumoEnd}
16-
className={styles.checkButton}
32+
sx={{
33+
width: "8rem",
34+
height: "4rem",
35+
}}
1736
>
1837
確認
1938
</Button>

src/pages/Play/styles/TsumoEnd.module.css

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)