import React from 'react'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; import { Progress } from '@/components/ui/progress'; import { TrendingUp, TrendingDown, Wallet, Target, CreditCard, PiggyBank, AlertTriangle, CheckCircle, ArrowUpRight, ArrowDownRight, PieChart } from 'lucide-react'; const Dashboard: React.FC = () => { const portfolioData = { totalValue: 9850000, // ₹98.5 lakhs change: 3.2, isPositive: true }; const budgetData = { spent: 45000, // ₹45,000 budget: 65000, // ₹65,000 categories: [ { name: 'Food & Groceries', spent: 12500, budget: 18000 }, { name: 'Transportation', spent: 8500, budget: 12000 }, { name: 'Entertainment', spent: 6000, budget: 8000 }, { name: 'Shopping & Bills', spent: 18000, budget: 27000 } ] }; const savingsGoals = [ { name: 'Emergency Fund', current: 450000, target: 800000, color: 'from-green-400 to-green-600' }, // ₹4.5L to ₹8L { name: 'Goa Trip', current: 85000, target: 150000, color: 'from-blue-400 to-blue-600' }, // ₹85K to ₹1.5L { name: 'New Car (Tata Nexon)', current: 620000, target: 1200000, color: 'from-purple-400 to-purple-600' } // ₹6.2L to ₹12L ]; const creditScore = 768; // Good CIBIL score range in India const creditUtilization = 28; return (
{/* Enhanced Welcome Header */}
A

Good {new Date().getHours() < 12 ? 'morning' : new Date().getHours() < 17 ? 'afternoon' : 'evening'}, Anjali! {new Date().getHours() < 12 ? '🌅' : new Date().getHours() < 17 ? '☀️' : '🌙'}

{new Date().toLocaleDateString('en-IN', { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' })}

Portfolio growing strong
3 goals on track
₹2.4K savings this month

Net Worth

₹{(portfolioData.totalValue / 100000).toFixed(1)}L

+₹15.2K today

Today's Financial Score

A+

Excellent

Keep it up!

{/* Quick Action Bar */}

Quick Actions

{/* Key Metrics Row */}

Portfolio Value

₹{(portfolioData.totalValue / 100000).toFixed(1)}L

{portfolioData.isPositive ? ( ) : ( )} {portfolioData.change}%

Monthly Budget

₹{budgetData.spent.toLocaleString()}

of ₹{budgetData.budget.toLocaleString()}

Credit Score

{creditScore}

Excellent

Savings Rate

28%

Above target

{/* Main Content Grid */}
{/* Budget Overview */} Budget Overview Track your spending across categories
{budgetData.categories.map((category, index) => (
{category.name} ₹{category.spent.toLocaleString()} / ₹{category.budget.toLocaleString()}
))}
{/* Savings Goals */} Savings Goals Track progress towards your financial goals
{savingsGoals.map((goal, index) => (
{goal.name} ₹{(goal.current / 100000).toFixed(1)}L / ₹{(goal.target / 100000).toFixed(1)}L
))}
{/* AI Recommendations */} AI Recommendations Personalized insights to improve your financial health

Optimize Savings

Cancel unused Hotstar subscription to save ₹1,499/year

Investment Opportunity

Consider rebalancing portfolio for better diversification

Credit Optimization

Pay down credit card to improve utilization ratio

); }; export default Dashboard;