From 8800663e0abe94f43f843904f0841cacbf888720 Mon Sep 17 00:00:00 2001 From: development Date: Fri, 16 Jan 2026 11:58:23 +0000 Subject: [PATCH] Update src/components/Dashboard.tsx --- src/components/Dashboard.tsx | 187 +++++++++++++++++------------------ 1 file changed, 91 insertions(+), 96 deletions(-) diff --git a/src/components/Dashboard.tsx b/src/components/Dashboard.tsx index bfa382a..9d96824 100644 --- a/src/components/Dashboard.tsx +++ b/src/components/Dashboard.tsx @@ -1,113 +1,108 @@ import React from 'react'; -import { BarChart3, Users, TrendingUp, DollarSign, Calendar, Bell, Search, Settings, Menu } from 'lucide-react'; +import { BarChart3, Users, DollarSign, TrendingUp } from 'lucide-react'; + +interface StatCardProps { + title: string; + value: string; + icon: React.ReactNode; + trend: string; +} + +const StatCard: React.FC = ({ title, value, icon, trend }) => { + return ( +
+
+
+

{title}

+

{value}

+

{trend}

+
+
+ {icon} +
+
+
+ ); +}; const Dashboard: React.FC = () => { + const stats = [ + { + title: "Total Revenue", value: "$45,231", icon: , + trend: "+20.1% from last month" + }, + { + title: "Active Users", value: "2,350", icon: , + trend: "+180.1% from last month" + }, + { + title: "Sales", value: "12,234", icon: , + trend: "+19% from last month" + }, + { + title: "Growth Rate", value: "89.5%", icon: , + trend: "+2.5% from last month" + } + ]; + return ( -
- {/* Header */} -
-
-
- -

Dashboard

-
-
- - - -
+
+
+
+

Dashboard

+

Welcome to your analytics dashboard

-
- - {/* Main Content */} -
- {/* Stats Cards */} +
-
-
-
-

Total Users

-

2,543

-
- -
-

+12% from last month

-
- -
-
-
-

Revenue

-

$45,231

-
- -
-

+8% from last month

-
- -
-
-
-

Growth

-

+24%

-
- -
-

+3% from last month

-
- -
-
-
-

Analytics

-

98.5%

-
- -
-

+2% from last month

-
+ {stats.map((stat, index) => ( + + ))}
- - {/* Charts Section */} -
+ +
-

Revenue Overview

-
- -

Chart visualization would go here

+

Recent Activity

+
+
+
+ New user registered +
+
+
+ Payment received +
+
+
+ System update completed +
- +
-

User Activity

-
- -

Activity chart would go here

+

Quick Stats

+
+
+ Conversion Rate + 3.2% +
+
+ Bounce Rate + 24.5% +
+
+ Session Duration + 2m 34s +
- - {/* Recent Activity */} -
-

Recent Activity

-
- {[1, 2, 3, 4].map((item) => ( -
- User avatar -
-

User {item} completed an action

-

2 hours ago

-
- -
- ))} -
-
-
+
); };