diff --git a/src/app/page.tsx b/src/app/page.tsx index 32302b6..6f6691c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -9,8 +9,13 @@ import MetricCardEleven from '@/components/sections/metrics/MetricCardEleven'; import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple'; import ProductCatalog from '@/components/ecommerce/productCatalog/ProductCatalog'; import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCardTen'; +import { useState, useEffect, useRef } from "react"; export default function LandingPage() { + const [gameState, setGameState] = useState<'idle' | 'playing' | 'over'>('idle'); + const [score, setScore] = useState(0); + const canvasRef = useRef(null); + return ( - + -
- -
+
+ setGameState('playing') }, + { text: "Explore Mines", href: "#features" }, + ]} + imageSrc="http://img.b2bpic.net/free-photo/view-futuristic-space-rocket_23-2151152096.jpg" + imageAlt="Stars gaming hero" + mediaAnimation="slide-up" + /> +
-
- -
+ {gameState === 'playing' && ( +
+
+

Rocket Game

+ +
+ +
+
+
+ )} -
- -
+
+ +
-
- -
+
+ +
-
- -
+
+ +
- +
+ +
+ +
); -} +} \ No newline at end of file