From eb7202ddc6507d4b19dd8ddff7f24492b1c2752e Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Sat, 27 Sep 2025 18:03:30 -0500 Subject: [PATCH] feat: optimize games page for mobile devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enhance mobile experience with responsive button sizing, 44px minimum touch targets, touch-action manipulation, and responsive grid layouts for better mobile usability. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- apps/web/src/app/games/page.tsx | 41 +++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/apps/web/src/app/games/page.tsx b/apps/web/src/app/games/page.tsx index 1e9bac07..b4774669 100644 --- a/apps/web/src/app/games/page.tsx +++ b/apps/web/src/app/games/page.tsx @@ -240,11 +240,13 @@ function GamesPageContent() { } }} className={css({ - px: '12', - py: '6', + px: { base: '8', md: '12' }, + py: { base: '4', md: '6' }, + minH: { base: '44px', md: 'auto' }, + minW: { base: '44px', md: 'auto' }, background: 'linear-gradient(135deg, #3b82f6, #8b5cf6)', color: 'white', - fontSize: '2xl', + fontSize: { base: 'xl', md: '2xl' }, fontWeight: 'bold', rounded: '2xl', border: 'none', @@ -253,15 +255,16 @@ function GamesPageContent() { transition: 'all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)', position: 'relative', overflow: 'hidden', + touchAction: 'manipulation', _hover: { - transform: 'translateY(-4px) scale(1.05)', + transform: { base: 'translateY(-2px)', md: 'translateY(-4px) scale(1.05)' }, boxShadow: '0 20px 50px rgba(59, 130, 246, 0.4)', '& .button-glow': { opacity: 1 } }, _active: { - transform: 'translateY(-2px) scale(1.02)' + transform: 'translateY(-1px) scale(1.01)' } })} > @@ -477,17 +480,20 @@ function GamesPageContent() { position: 'absolute', top: '3', right: '3', - w: '8', - h: '8', + w: { base: '12', md: '8' }, + h: { base: '12', md: '8' }, + minH: '44px', + minW: '44px', background: 'linear-gradient(135deg, #f3f4f6, #e5e7eb)', rounded: 'full', display: 'flex', alignItems: 'center', justifyContent: 'center', - fontSize: 'sm', + fontSize: { base: 'md', md: 'sm' }, border: '1px solid', borderColor: 'gray.300', cursor: 'pointer', + touchAction: 'manipulation', transition: 'all 0.3s ease', _hover: { transform: 'scale(1.1)', @@ -651,17 +657,20 @@ function GamesPageContent() { position: 'absolute', top: '3', right: '3', - w: '8', - h: '8', + w: { base: '12', md: '8' }, + h: { base: '12', md: '8' }, + minH: '44px', + minW: '44px', background: 'linear-gradient(135deg, #f3f4f6, #e5e7eb)', rounded: 'full', display: 'flex', alignItems: 'center', justifyContent: 'center', - fontSize: 'sm', + fontSize: { base: 'md', md: 'sm' }, border: '1px solid', borderColor: 'gray.300', cursor: 'pointer', + touchAction: 'manipulation', transition: 'all 0.3s ease', _hover: { transform: 'scale(1.1)', @@ -680,8 +689,8 @@ function GamesPageContent() { })}>
@@ -974,14 +983,16 @@ function GamesPageContent() {