import React, { useState, useEffect } from 'react'; import { Flame, Users, Star, Zap, Trophy, Target, Clock, TrendingUp, DollarSign, Activity, Eye, Settings, Crown, Briefcase } from 'lucide-react'; const ExecutiveDashboard = () => { const [currentTime, setCurrentTime] = useState(new Date()); const [selectedView, setSelectedView] = useState('overview'); const [totalRevenue, setTotalRevenue] = useState(284750); const [showCelebration, setShowCelebration] = useState(false); useEffect(() => { const timer = setInterval(() => setCurrentTime(new Date()), 1000); return () => clearInterval(timer); }, []); const teamStats = { alex: { name: "Alex Johnson", avatar: "👨💻", title: "Senior Dev", level: 12, score: 2847, streak: 7, completedToday: 8, efficiency: 92, status: "active", currentTask: "Client Proposal", revenueGenerated: 45200, rank: 3 }, sarah: { name: "Sarah Chen", avatar: "👩🎨", title: "Design Lead", level: 15, score: 3421, streak: 12, completedToday: 12, efficiency: 98, status: "active", currentTask: "UI Redesign", revenueGenerated: 67800, rank: 1 }, mike: { name: "Ilan Sadon", avatar: "👨💼", title: "Product Manager", level: 10, score: 2156, streak: 4, completedToday: 6, efficiency: 78, status: "break", currentTask: "Sprint Planning", revenueGenerated: 38900, rank: 7 }, emma: { name: "Julie Kendra", avatar: "👩💻", title: "Backend Dev", level: 11, score: 2654, streak: 9, completedToday: 7, efficiency: 89, status: "active", currentTask: "API Optimization", revenueGenerated: 41250, rank: 4 }, david: { name: "David Kim", avatar: "👨🔬", title: "Data Scientist", level: 13, score: 2983, streak: 6, completedToday: 9, efficiency: 94, status: "active", currentTask: "ML Model Training", revenueGenerated: 52600, rank: 2 } }; const companyMetrics = { totalEmployees: Object.keys(teamStats).length, totalTasksCompleted: Object.values(teamStats).reduce((sum, emp) => sum + emp.completedToday, 0), averageEfficiency: Math.round(Object.values(teamStats).reduce((sum, emp) => sum + emp.efficiency, 0) / Object.keys(teamStats).length), totalRevenue: totalRevenue, friesProgress: 73, activeProjects: 12, completedProjects: 47, teamMorale: 87 }; const recentActivities = [ { id: 1, user: "Sarah", action: "completed", task: "Brand Guidelines", value: "+$2,400", time: "2m ago", type: "success" }, { id: 2, user: "Alex", action: "started", task: "Client Proposal", value: "Epic Task", time: "5m ago", type: "info" }, { id: 3, user: "David", action: "achieved", task: "Data Wizard Badge", value: "+500 XP", time: "8m ago", type: "achievement" }, { id: 4, user: "Emma", action: "completed", task: "API Optimization", value: "+$1,800", time: "12m ago", type: "success" }, { id: 5, user: "Mike", action: "passed", task: "Team Project Alpha", value: "to Sarah", time: "15m ago", type: "collaboration" } ]; const getStatusColor = (status) => { switch(status) { case 'active': return 'bg-green-500'; case 'break': return 'bg-yellow-500'; case 'offline': return 'bg-gray-500'; default: return 'bg-blue-500'; } }; const getActivityIcon = (type) => { switch(type) { case 'success': return '💰'; case 'achievement': return '🏆'; case 'collaboration': return '🤝'; default: return '⚡'; } }; const EmployeeCard = ({ employee }) => (
{employee.title}
$250K Revenue Achieved!
Company Performance Dashboard
Converting team efforts into golden profits!
Almost ready to serve the next milestone! 🔥