diff --git a/client/src/components/welcome.tsx b/client/src/components/welcome.tsx index e0413ef..74bbea9 100644 --- a/client/src/components/welcome.tsx +++ b/client/src/components/welcome.tsx @@ -59,6 +59,8 @@ function LevelIcon({ worldId, levelId, position, completed, available }) { function Welcome() { const navigate = useNavigate(); + const [mobileLayout, setModileLayout] = useState(false) + const gameId = React.useContext(GameIdContext) const gameInfo = useGetGameInfoQuery({game: gameId}) @@ -187,34 +189,36 @@ function Welcome() { - : - - - - - {gameInfo.data?.introduction} - - - - - - {svgElements} - - - - {<> - {inventoryDoc ? - - : - - } - >} - - + : mobileLayout ? + <>> + : + + + + + {gameInfo.data?.introduction} + + + + + + {svgElements} + + + + {<> + {inventoryDoc ? + + : + + } + >} + + }