This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { Image, ImageSourcePropType } from 'react-native'; | |
| import type { GameKey } from '../lib/mock-data'; | |
| /** | |
| * Art exported from the Figma frame "Ready homepage" (node 1710:3548). | |
| * Each mode pairs a 3D object with a mascot pose: | |
| * solo → star + single bear | |
| * duo → coins + two bears | |
| * assist → planet + bear on the phone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- if you are using next.js, add "use client" here directive at the top --> | |
| import { useState, useEffect } from "react"; | |
| const Features = () => { | |
| const [isMobile, setIsMobile] = useState(window.innerWidth < 768); | |
| useEffect(() => { | |
| const handleResize = () => { | |
| setIsMobile(window.innerWidth < 768); | |
| }; |