diff --git a/src/components/MainLayout.tsx b/src/components/MainLayout.tsx index 1033748..113a5e6 100644 --- a/src/components/MainLayout.tsx +++ b/src/components/MainLayout.tsx @@ -5,38 +5,45 @@ import { MiniOscilloscope } from './MiniOscilloscope'; const MainLayout = () => { const location = useLocation(); + const isMobile = typeof window !== 'undefined' && window.innerWidth < 768; // Don't show mini oscilloscope on the oscilloscope page itself const showMiniOscilloscope = location.pathname !== '/oscilloscope'; + // Check if on game page and mobile + const isMobileGamePage = isMobile && location.pathname.startsWith('/games/') && location.pathname !== '/games' && location.pathname !== '/games/leaderboard'; return ( - {/* Branding */} - - ~$ whoami Jory - + {!isMobileGamePage && ( + <> + {/* Branding */} + + ~$ whoami Jory + + + )} {/* Main Container */} -
- +
+ {!isMobileGamePage && } {/* Content Area */} -
+
{/* Mini Oscilloscope Bar */} - {showMiniOscilloscope && } + {showMiniOscilloscope && !isMobileGamePage && } ); };