diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..6650534 --- /dev/null +++ b/public/index.html @@ -0,0 +1,1232 @@ + + + + + + + + + React Dashboard + + + +
+ + + + + \ No newline at end of file diff --git a/src/App.css b/src/App.css index 89c0ad6..d0b82b0 100644 --- a/src/App.css +++ b/src/App.css @@ -1,33 +1,7 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + .App { text-align: center; -} - -.App-logo { - height: 40vmin; - pointer-events: none; -} - -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } -} - -.App-header { - background-color: #282c34; - padding: 20px; - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } } \ No newline at end of file diff --git a/src/components/Dashboard.tsx b/src/components/Dashboard.tsx index 7f9ec13..bfa382a 100644 --- a/src/components/Dashboard.tsx +++ b/src/components/Dashboard.tsx @@ -1,104 +1,110 @@ import React from 'react'; -import { TrendingUp, Users, Calendar, BarChart3 } from 'lucide-react'; +import { BarChart3, Users, TrendingUp, DollarSign, Calendar, Bell, Search, Settings, Menu } from 'lucide-react'; const Dashboard: React.FC = () => { return (
{/* Header */} -
-
-
-
- Logo - Dashboard -
-
- -
+
+
+
+ +

Dashboard

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

Total Users

+

2,543

-
-

Total Revenue

-

$45,231

+ +
+

+12% from last month

+
+ +
+
+
+

Revenue

+

$45,231

+ +
+

+8% from last month

+
+ +
+
+
+

Growth

+

+24%

+
+ +
+

+3% from last month

+
+ +
+
+
+

Analytics

+

98.5%

+
+ +
+

+2% from last month

+
+
+ + {/* Charts Section */} +
+
+

Revenue Overview

+
+ +

Chart visualization would go here

-
-
-
- -
-
-

Active Users

-

2,451

-
-
-
- -
-
-
- -
-
-

Events

-

12

-
-
-
- -
-
-
- -
-
-

Conversion

-

3.24%

-
+
+

User Activity

+
+ +

Activity chart would go here

- {/* Chart Section */} -
-
-

Analytics Overview

-
-

Chart placeholder

-
-
- -
-

Recent Activity

-
-
-
- User registered + {/* Recent Activity */} +
+

Recent Activity

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

User {item} completed an action

+

2 hours ago

+
+
-
-
- New order received -
-
-
- Payment processed -
-
+ ))}
diff --git a/src/index.css b/src/index.css new file mode 100644 index 0000000..4bf1c5d --- /dev/null +++ b/src/index.css @@ -0,0 +1,17 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +body { + margin: 0; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', + 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', + sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +code { + font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', + monospace; +} \ No newline at end of file diff --git a/src/index.tsx b/src/index.tsx new file mode 100644 index 0000000..23b3422 --- /dev/null +++ b/src/index.tsx @@ -0,0 +1,13 @@ +import React from 'react'; +import ReactDOM from 'react-dom/client'; +import './index.css'; +import App from './App'; + +const root = ReactDOM.createRoot( + document.getElementById('root') as HTMLElement +); +root.render( + + + +); \ No newline at end of file