import { useLocation } from "wouter"; import { useAuth } from "@/hooks/useAuth"; import { useVoice } from "@/hooks/useVoice"; import { Button } from "@/components/ui/button"; import { Card, CardContent } from "@/components/ui/card"; import DailyJoke from "@/components/ai/DailyJoke"; import VoiceIndicator from "@/components/voice/VoiceIndicator"; import Header from "@/components/layout/Header"; import { useTheme } from "@/context/ThemeContext"; import { Mic, Volume2, Brain, DollarSign, Calendar, ArrowRight } from "lucide-react"; export default function LandingPage() { const [, setLocation] = useLocation(); const { user } = useAuth(); const { isListening, startListening, stopListening, isSupported } = useVoice(); // Redirect to dashboard if already authenticated if (user) { setLocation("/dashboard"); return null; } const handleGetStarted = () => { setLocation("/login"); }; const handleVoiceDemo = () => { if (isListening) { stopListening(); } else { startListening(); } }; return (
{/* Hero Section */}
{/* Main Hero Content */}

Your Personal {" "}Productivity Assistant

Streamline your tasks, manage finances, and boost productivity with AI-powered assistance and voice control.

{/* Daily Joke in a prominent card */}
{/* Action Buttons */}
{isSupported && ( )}
{/* Features Grid */}

Task Management

Organize and track your daily tasks efficiently with smart prioritization

Financial Tracking

Monitor your expenses and achieve your financial goals with insights

AI Assistant

Get intelligent suggestions and automation powered by advanced AI

{/* Voice Control Section */}

Voice-Powered Control

Control your productivity suite with natural voice commands. Create tasks, check finances, and navigate the app hands-free.

{isSupported ? (

✓ Voice control supported on your device

) : (

Voice control requires a modern browser with microphone access

)}
{/* Voice Status Indicator */}
); }