From 24896957d0817758c5f64c0e3473e6a0a343af67 Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Fri, 31 Oct 2025 17:47:03 -0500 Subject: [PATCH] feat(rithmomachia): recreate original guide modal header layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Recreate the centered header design from the original guide: - Centered large title "Rithmomachia Playing Guide" - Centered subtitle "Rithmomachia – The Philosophers' Game" - Language selector with dropdown (replaces button toggles) - Close and bust-out buttons positioned in top-right corner - Improved visual hierarchy with larger, more prominent title - Better responsive sizing for mobile and desktop This matches the original design shown in the reference image while maintaining all modern functionality (dragging, resizing, bust-out, language switching). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../components/PlayingGuideModal.tsx | 114 ++++++++++++------ 1 file changed, 74 insertions(+), 40 deletions(-) diff --git a/apps/web/src/arcade-games/rithmomachia/components/PlayingGuideModal.tsx b/apps/web/src/arcade-games/rithmomachia/components/PlayingGuideModal.tsx index 71144373..6a7cfc6d 100644 --- a/apps/web/src/arcade-games/rithmomachia/components/PlayingGuideModal.tsx +++ b/apps/web/src/arcade-games/rithmomachia/components/PlayingGuideModal.tsx @@ -325,12 +325,10 @@ export function PlayingGuideModal({ isOpen, onClose, standalone = false }: Playi className={css({ bg: '#f9fafb', borderBottom: '1px solid #e5e7eb', - p: '16px', - display: 'flex', - alignItems: 'center', - justifyContent: 'space-between', + p: '24px', userSelect: 'none', flexShrink: 0, + position: 'relative', })} onMouseDown={handleMouseDown} style={{ @@ -341,45 +339,17 @@ export function PlayingGuideModal({ isOpen, onClose, standalone = false }: Playi : 'default', }} > -

- {t('guide.title', 'Rithmomachia Playing Guide')} -

- -
- {/* Language switcher */} -
- {['en', 'de'].map((lang) => ( - - ))} -
- {/* Bust-out button (only if not already standalone) */} {!standalone && (
+ + {/* Centered title and subtitle */} +
+

+ {t('guide.title', 'Rithmomachia Playing Guide')} +

+

+ {t('guide.subtitle', "Rithmomachia – The Philosophers' Game")} +

+ + {/* Language selector */} +
+ + +
+
{/* Navigation Tabs */}