From dcd0aecd54378a13b25763aefc0145ae8ef20dad Mon Sep 17 00:00:00 2001 From: ale Date: Thu, 11 Dec 2025 02:49:31 +0100 Subject: [PATCH] input text Signed-off-by: ale --- components/Lobby.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/Lobby.tsx b/components/Lobby.tsx index a79f691..3a46254 100644 --- a/components/Lobby.tsx +++ b/components/Lobby.tsx @@ -7,10 +7,10 @@ interface LobbyProps { onCreateRoom: (playerName: string) => void; onJoinRoom: (roomId: string, playerName: string) => void; onStartAI: (playerName: string) => void; - roomId?: string | null; + roomId: string | null; } -export function Lobby({ onCreateRoom, onJoinRoom, onStartAI }: LobbyProps) { +export function Lobby({ onCreateRoom, onJoinRoom, onStartAI, roomId }: LobbyProps) { const [playerName, setPlayerName] = useState(''); const [joinRoomId, setJoinRoomId] = useState(''); const [mode, setMode] = useState<'menu' | 'create' | 'join' | 'ai'>('menu'); @@ -55,7 +55,7 @@ export function Lobby({ onCreateRoom, onJoinRoom, onStartAI }: LobbyProps) { placeholder="Enter your name" value={playerName} onChange={(e) => setPlayerName(e.target.value)} - className="w-full px-4 py-3 border-2 border-gray-300 rounded-lg focus:border-blue-500 focus:outline-none transition-colors" + className="w-full px-4 py-3 border-2 border-gray-300 rounded-lg focus:border-blue-500 focus:outline-none transition-colors bg-white text-gray-900 placeholder-gray-500" maxLength={20} aria-label="Enter your player name" aria-required="true" @@ -123,7 +123,7 @@ export function Lobby({ onCreateRoom, onJoinRoom, onStartAI }: LobbyProps) { placeholder="Enter Room ID" value={joinRoomId} onChange={(e) => setJoinRoomId(e.target.value.toUpperCase())} - className="w-full px-4 py-3 border-2 border-gray-300 rounded-lg focus:border-purple-500 focus:outline-none transition-colors uppercase" + className="w-full px-4 py-3 border-2 border-gray-300 rounded-lg focus:border-purple-500 focus:outline-none transition-colors uppercase bg-white text-gray-900 placeholder-gray-500" maxLength={6} aria-label="Enter the 6-character room ID" aria-required="true"