Fix GameOfSim component layout and add full-screen support
- Add showSocialShare prop to GameOfSim component for conditional social sharing - Create GameOfSimPage.tsx for standalone access without header/footer - Create GameOfSimGreenScreen.tsx for green screen mode - Add routing for /game-of-sim and /game-of-sim/:mode - Fix GamesGallery to conditionally show header/footer (only in gallery view) - Update Games.tsx to remove Layout wrapper for proper conditional rendering - Add unique ID to social share URL for copy link functionality - Ensure consistent behavior with other interactive components
This commit is contained in:
parent
8d84ac0476
commit
85a8298352
6 changed files with 105 additions and 65 deletions
13
src/pages/GameOfSimPage.tsx
Normal file
13
src/pages/GameOfSimPage.tsx
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import GameOfSim from '@/components/GameOfSim';
|
||||
|
||||
const GameOfSimPage = () => {
|
||||
return (
|
||||
<div className="min-h-screen bg-background">
|
||||
<div className="container mx-auto px-4 py-8">
|
||||
<GameOfSim showSocialShare={true} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default GameOfSimPage;
|
||||
Loading…
Add table
Add a link
Reference in a new issue