From 561caccbd8160266486bbc64a86a0e4d81647da0 Mon Sep 17 00:00:00 2001 From: DevAlissu Date: Sun, 19 Apr 2026 13:23:08 -0400 Subject: [PATCH] compacta ui do snake game - move HighScoreBadge para a linha dos tabs no topo - reduz painel lateral de 180px para 150px - botoes direcionais 40px no desktop e 44px no mobile - hint de controle simplificado em uma linha - gap e padding reduzidos no painel lateral --- src/features/snake-game/SnakeGame.tsx | 46 +++++++++---------- .../snake-game/components/GameControls.tsx | 25 +++++----- 2 files changed, 35 insertions(+), 36 deletions(-) diff --git a/src/features/snake-game/SnakeGame.tsx b/src/features/snake-game/SnakeGame.tsx index efdd855..5dcabf5 100644 --- a/src/features/snake-game/SnakeGame.tsx +++ b/src/features/snake-game/SnakeGame.tsx @@ -70,13 +70,16 @@ export function SnakeGame({ className = '' }: SnakeGameProps) {
- +
+ + {highScore > 0 && } +
- {highScore > 0 && ( -
- -
- )} -
- -
- +
+ +
)}
-
-
+
+
diff --git a/src/features/snake-game/components/GameControls.tsx b/src/features/snake-game/components/GameControls.tsx index a3b1d0f..8c33008 100644 --- a/src/features/snake-game/components/GameControls.tsx +++ b/src/features/snake-game/components/GameControls.tsx @@ -18,32 +18,35 @@ export const GameControls = memo(function GameControls({ status, onDirection }: const disabled = status !== 'playing'; const buttonClass = - 'bg-[#0a0a0a] border border-[#314158] hover:border-[#43D9AD] disabled:hover:border-[#314158] disabled:opacity-50 transition-colors rounded-lg w-12 h-12 flex items-center justify-center'; + 'bg-[#0a0a0a] border border-[#314158] hover:border-[#43D9AD] disabled:hover:border-[#314158] disabled:opacity-50 transition-colors rounded-lg w-11 h-11 sm:w-10 sm:h-10 flex items-center justify-center'; return (
-

- // use o teclado -

-

- // setas para jogar +

+ // use teclado ou swipe

-
- -
+
{ROW_BUTTONS.map(({ direction, rotation }) => (