diff --git a/panel/src/games/chess/ChessBoard.tsx b/panel/src/games/chess/ChessBoard.tsx index 7a39c92..533a558 100644 --- a/panel/src/games/chess/ChessBoard.tsx +++ b/panel/src/games/chess/ChessBoard.tsx @@ -11,6 +11,232 @@ interface ChessState { winner: string | null; } +// Chess.com-inspired board colors +const DARK_SQUARE = "#769656"; +const LIGHT_SQUARE = "#eeeed2"; +const LAST_MOVE_DARK = "#638a49"; +const LAST_MOVE_LIGHT = "#cdd96e"; +const SELECTED_SHADOW = "inset 0 0 0 4px rgba(20,85,30,0.8)"; +const CHECK_BG = "rgba(220, 38, 38, 0.7)"; + +function Avatar({ username, color }: { username: string; color: "white" | "black" }) { + return ( +
| + {i + 1}. + | ++ {white} + | ++ {black ?? "—"} + | +