import { Link, useNavigate } from 'react-router-dom'; import { Video, Users, Zap, Shield, Camera, MessageCircle, Star, LogOut, LayoutDashboard } from 'lucide-react'; import { useAuth } from '../contexts/AuthContext'; const HomePage = () => { const { user, logout } = useAuth(); const navigate = useNavigate(); const handleLogout = () => { logout(); navigate('/login'); }; return (
{/* Hero Section */}

Capture Every Dance Together

Connect with other competitors, record each other's dances, and exchange videos in seconds.

{user ? "Go to Dashboard" : "Start Collaborating"}
{/* Features Section */}

Everything you need to succeed

This app is specifically built for West Coast Swing dancers and competition enthusiasts

Smart Matching

Find the perfect collaboration partner based on division, role, and heat assignments at your event.

Real-time Chat

Communicate instantly with event participants and your collaboration partners through integrated chat.

P2P Video Sharing

Share videos directly with your partners using secure peer-to-peer WebRTC technology. Fast, private, and encrypted.

Secure & Private

Your video transfers run P2P with encryption in transit. Chats stay private to your event room or match partner.

Lightning Fast

No upload delays or waiting. Direct peer-to-peer connections mean instant video transfers, even for large files.

Competition Ready

Integrated with WSDC events. Automatic heat tracking and partner suggestions based on competition divisions.

{/* How It Works Section */}

How It Works

Get started in three simple steps

1

Join your event

Check in to your West Coast Swing competition using the event's QR code or check-in link.

2

Find Partners

Browse other people on your event's chat and send collaboration requests to potential recording partners.

3

Share & Create

Exchange videos securely, chat in real-time, and reward your recording partner with a star-rating system.

{/* CTA Section */} {!user && (

Ready to maximize your competition experience?

Join dancers from around the world who are already participating in spotlight.cam

Create Your Free Account
)} {/* Footer */}
); }; export default HomePage;