File size: 705 Bytes
8725cc4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import { Button } from "@/components/ui/button";
import { motion } from "framer-motion";
interface WelcomeScreenProps {
onStart: () => void;
}
export const WelcomeScreen = ({ onStart }: WelcomeScreenProps) => {
return (
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
className="text-center"
>
<h1 className="mb-6 text-4xl font-bold text-gray-900">Word Game</h1>
<p className="mb-8 text-gray-600">
Ready to play? Click start or press Enter to begin!
</p>
<Button
onClick={onStart}
className="w-full bg-primary text-lg hover:bg-primary/90"
>
Start Game ⏎
</Button>
</motion.div>
);
}; |