diff --git a/apps/client/src/scenes/title/TitleScene.tsx b/apps/client/src/scenes/title/TitleScene.tsx index ffb2328..0dc3617 100644 --- a/apps/client/src/scenes/title/TitleScene.tsx +++ b/apps/client/src/scenes/title/TitleScene.tsx @@ -28,45 +28,142 @@ }; return ( -
-

Pixel Paint War

- -
- setPlayerName(e.target.value)} - style={{ padding: "12px", fontSize: "1.2rem", borderRadius: "5px", border: "none" }} - /> - setRoomIdInput(e.target.value)} - style={{ padding: "12px", fontSize: "1.2rem", borderRadius: "5px", border: "none" }} - /> + <> + {/* 🌟 追加: ロビー画面と同じ、横画面専用の警告と全体設定 */} + + + {/* 🌟 縦画面のときに表示される警告画面 */} +
+
🔄
+

+ このゲームは横画面専用です。 +
+ スマホを横向きにしてください。 +

- - +

+ Pixel Paint War +

- {joinErrorMessage && ( -

{joinErrorMessage}

- )} -
+ {/* 🌟 固定の300pxから、幅100%・最大幅350pxのレスポンシブに変更 */} +
+ setPlayerName(e.target.value)} + style={{ + padding: "12px", + fontSize: "clamp(1rem, 3vw, 1.2rem)", + borderRadius: "5px", + border: "none", + width: "100%", + }} + /> + setRoomIdInput(e.target.value)} + style={{ + padding: "12px", + fontSize: "clamp(1rem, 3vw, 1.2rem)", + borderRadius: "5px", + border: "none", + width: "100%", + }} + /> +
+ + {/* 🌟 エラーメッセージの表示(もしあれば) */} + {joinErrorMessage && ( +
+ {joinErrorMessage} +
+ )} + + +
+ ); -}; \ No newline at end of file +};