'use client'; import Link from "next/link"; import Header from "./components/Header"; import { useAuth } from "./context/AuthContext"; export default function Home() { const { user } = useAuth(); return ( <>
{/* Hero Section */}

{user ? 'Welcome Back!' : 'Discover Amazing Prizes'}

{user ? 'Ready to open some mystery boxes? Browse our collection and start your adventure!' : 'Unlock exclusive mystery boxes and win incredible prizes. Trade, collect, and experience the thrill of discovery.'}

{user ? ( Open Boxes ) : ( <> Get Started View Boxes )}
{/* Featured Boxes Section */}

Featured Mystery Boxes

{[ { tier: "Small", price: "100", color: "from-blue-500 to-blue-600" }, { tier: "Medium", price: "1,000", color: "from-purple-500 to-purple-600" }, { tier: "Big", price: "10,000", color: "from-pink-500 to-pink-600" }, ].map((box) => (

{box.tier} Box

Unlock amazing prizes

{box.price} Tokens
))}
{/* How It Works Section */}

How It Works

{[ { title: "Get Tokens", description: "Purchase tokens using various payment methods including cards and crypto", icon: "💳", }, { title: "Open Boxes", description: "Choose your mystery box tier and experience the thrill of discovery", icon: "🎁", }, { title: "Trade & Collect", description: "Trade your prizes with other users or add them to your collection", icon: "🔄", }, ].map((step) => (
{step.icon}

{step.title}

{step.description}

))}
{/* Recent Wins Section */}

Recent Wins

{[1, 2, 3, 4].map((i) => (
🎉

Amazing Prize #{i}

))}
{/* CTA Section */}

Ready to Start Your Journey?

Join thousands of users already discovering amazing prizes in our mystery boxes.

Create Account
); }