diff --git a/apps/web/src/components/StandardGameLayout.tsx b/apps/web/src/components/StandardGameLayout.tsx new file mode 100644 index 00000000..36b42e0b --- /dev/null +++ b/apps/web/src/components/StandardGameLayout.tsx @@ -0,0 +1,43 @@ +'use client' + +import { ReactNode } from 'react' +import { css } from '../../styled-system/css' + +interface StandardGameLayoutProps { + children: ReactNode + className?: string +} + +/** + * Standard game layout that ensures: + * 1. Exact 100vh height with no scrolling (vertical or horizontal) + * 2. Navigation never covers game elements (safe area padding) + * 3. Perfect viewport fit on all devices + * 4. Consistent experience across all games + */ +export function StandardGameLayout({ children, className }: StandardGameLayoutProps) { + return ( +
+ {children} +
+ ) +} \ No newline at end of file