lomit commited on
Commit
e3106b9
·
verified ·
1 Parent(s): fec141f

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +566 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Card Comp Dashboard
3
- emoji: 📊
4
- colorFrom: pink
5
- colorTo: green
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: card-comp-dashboard
3
+ emoji: 🐳
4
+ colorFrom: red
5
+ colorTo: yellow
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,566 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>CardPay Dashboard</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <script>
10
+ tailwind.config = {
11
+ theme: {
12
+ extend: {
13
+ colors: {
14
+ primary: '#4f46e5',
15
+ secondary: '#10b981',
16
+ danger: '#ef4444',
17
+ warning: '#f59e0b',
18
+ }
19
+ }
20
+ }
21
+ }
22
+ </script>
23
+ <style>
24
+ .card-gradient {
25
+ background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
26
+ }
27
+ .sidebar {
28
+ transition: all 0.3s ease;
29
+ }
30
+ .chart-container {
31
+ position: relative;
32
+ height: 300px;
33
+ }
34
+ .progress-ring__circle {
35
+ transition: stroke-dashoffset 0.35s;
36
+ transform: rotate(-90deg);
37
+ transform-origin: 50% 50%;
38
+ }
39
+ </style>
40
+ </head>
41
+ <body class="bg-gray-100 font-sans">
42
+ <div class="flex h-screen overflow-hidden">
43
+ <!-- Sidebar -->
44
+ <div class="sidebar bg-white w-64 flex-shrink-0 shadow-lg">
45
+ <div class="p-4 flex items-center justify-between border-b">
46
+ <div class="flex items-center">
47
+ <i class="fas fa-credit-card text-primary text-2xl mr-3"></i>
48
+ <span class="text-xl font-bold text-gray-800">CardPay</span>
49
+ </div>
50
+ <button id="sidebarToggle" class="text-gray-500 hover:text-gray-700">
51
+ <i class="fas fa-bars"></i>
52
+ </button>
53
+ </div>
54
+ <nav class="p-4">
55
+ <div class="mb-8">
56
+ <p class="text-xs uppercase text-gray-500 font-semibold mb-3">Main</p>
57
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg bg-primary bg-opacity-10 text-primary mb-2">
58
+ <i class="fas fa-tachometer-alt mr-3"></i>
59
+ <span>Dashboard</span>
60
+ </a>
61
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg text-gray-600 hover:bg-gray-100 mb-2">
62
+ <i class="fas fa-credit-card mr-3"></i>
63
+ <span>Cards</span>
64
+ </a>
65
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg text-gray-600 hover:bg-gray-100 mb-2">
66
+ <i class="fas fa-exchange-alt mr-3"></i>
67
+ <span>Transactions</span>
68
+ </a>
69
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg text-gray-600 hover:bg-gray-100 mb-2">
70
+ <i class="fas fa-chart-line mr-3"></i>
71
+ <span>Analytics</span>
72
+ </a>
73
+ </div>
74
+ <div class="mb-8">
75
+ <p class="text-xs uppercase text-gray-500 font-semibold mb-3">Management</p>
76
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg text-gray-600 hover:bg-gray-100 mb-2">
77
+ <i class="fas fa-users mr-3"></i>
78
+ <span>Customers</span>
79
+ </a>
80
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg text-gray-600 hover:bg-gray-100 mb-2">
81
+ <i class="fas fa-file-invoice-dollar mr-3"></i>
82
+ <span>Payments</span>
83
+ </a>
84
+ <a href="#" class="flex items-center py-2 px-3 rounded-lg text-gray-600 hover:bg-gray-100 mb-2">
85
+ <i class="fas fa-cog mr-3"></i>
86
+ <span>Settings</span>
87
+ </a>
88
+ </div>
89
+ <div class="p-3 bg-gray-50 rounded-lg">
90
+ <div class="flex items-center mb-2">
91
+ <div class="w-10 h-10 rounded-full bg-primary flex items-center justify-center text-white mr-3">
92
+ <i class="fas fa-bell"></i>
93
+ </div>
94
+ <div>
95
+ <p class="text-sm font-medium">New feature!</p>
96
+ <p class="text-xs text-gray-500">Fraud detection v2.0</p>
97
+ </div>
98
+ </div>
99
+ <button class="w-full py-2 bg-primary text-white rounded-md text-sm font-medium mt-2">
100
+ Learn more
101
+ </button>
102
+ </div>
103
+ </nav>
104
+ </div>
105
+
106
+ <!-- Main Content -->
107
+ <div class="flex-1 overflow-auto">
108
+ <!-- Header -->
109
+ <header class="bg-white shadow-sm p-4 flex items-center justify-between">
110
+ <div class="flex items-center">
111
+ <h1 class="text-xl font-semibold text-gray-800">Dashboard Overview</h1>
112
+ </div>
113
+ <div class="flex items-center space-x-4">
114
+ <div class="relative">
115
+ <input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
116
+ <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
117
+ </div>
118
+ <div class="relative">
119
+ <button class="p-2 text-gray-500 hover:text-gray-700 relative">
120
+ <i class="fas fa-bell"></i>
121
+ <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
122
+ </button>
123
+ </div>
124
+ <div class="flex items-center">
125
+ <div class="w-8 h-8 rounded-full bg-primary flex items-center justify-center text-white mr-2">
126
+ <span>AD</span>
127
+ </div>
128
+ <span class="text-sm font-medium">Admin</span>
129
+ </div>
130
+ </div>
131
+ </header>
132
+
133
+ <!-- Dashboard Content -->
134
+ <main class="p-6">
135
+ <!-- Stats Cards -->
136
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
137
+ <div class="bg-white rounded-xl shadow-sm p-6">
138
+ <div class="flex items-center justify-between">
139
+ <div>
140
+ <p class="text-sm text-gray-500">Total Cards</p>
141
+ <h3 class="text-2xl font-bold mt-1">24,568</h3>
142
+ <p class="text-sm text-green-500 mt-2 flex items-center">
143
+ <i class="fas fa-arrow-up mr-1"></i> 12.5% from last month
144
+ </p>
145
+ </div>
146
+ <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center text-primary">
147
+ <i class="fas fa-credit-card text-xl"></i>
148
+ </div>
149
+ </div>
150
+ </div>
151
+ <div class="bg-white rounded-xl shadow-sm p-6">
152
+ <div class="flex items-center justify-between">
153
+ <div>
154
+ <p class="text-sm text-gray-500">Active Users</p>
155
+ <h3 class="text-2xl font-bold mt-1">18,942</h3>
156
+ <p class="text-sm text-green-500 mt-2 flex items-center">
157
+ <i class="fas fa-arrow-up mr-1"></i> 8.3% from last month
158
+ </p>
159
+ </div>
160
+ <div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center text-secondary">
161
+ <i class="fas fa-users text-xl"></i>
162
+ </div>
163
+ </div>
164
+ </div>
165
+ <div class="bg-white rounded-xl shadow-sm p-6">
166
+ <div class="flex items-center justify-between">
167
+ <div>
168
+ <p class="text-sm text-gray-500">Transactions</p>
169
+ <h3 class="text-2xl font-bold mt-1">$1.24M</h3>
170
+ <p class="text-sm text-red-500 mt-2 flex items-center">
171
+ <i class="fas fa-arrow-down mr-1"></i> 3.2% from last month
172
+ </p>
173
+ </div>
174
+ <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center text-purple-600">
175
+ <i class="fas fa-exchange-alt text-xl"></i>
176
+ </div>
177
+ </div>
178
+ </div>
179
+ <div class="bg-white rounded-xl shadow-sm p-6">
180
+ <div class="flex items-center justify-between">
181
+ <div>
182
+ <p class="text-sm text-gray-500">Fraud Cases</p>
183
+ <h3 class="text-2xl font-bold mt-1">124</h3>
184
+ <p class="text-sm text-green-500 mt-2 flex items-center">
185
+ <i class="fas fa-arrow-down mr-1"></i> 15.7% from last month
186
+ </p>
187
+ </div>
188
+ <div class="w-12 h-12 rounded-full bg-red-100 flex items-center justify-center text-danger">
189
+ <i class="fas fa-shield-alt text-xl"></i>
190
+ </div>
191
+ </div>
192
+ </div>
193
+ </div>
194
+
195
+ <!-- Charts Row -->
196
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
197
+ <!-- Transaction Volume -->
198
+ <div class="bg-white rounded-xl shadow-sm p-6 lg:col-span-2">
199
+ <div class="flex items-center justify-between mb-6">
200
+ <h2 class="text-lg font-semibold">Transaction Volume</h2>
201
+ <div class="flex space-x-2">
202
+ <button class="px-3 py-1 text-xs bg-gray-100 rounded-md">Daily</button>
203
+ <button class="px-3 py-1 text-xs bg-primary text-white rounded-md">Weekly</button>
204
+ <button class="px-3 py-1 text-xs bg-gray-100 rounded-md">Monthly</button>
205
+ </div>
206
+ </div>
207
+ <div class="chart-container">
208
+ <canvas id="transactionChart"></canvas>
209
+ </div>
210
+ </div>
211
+
212
+ <!-- Card Types Distribution -->
213
+ <div class="bg-white rounded-xl shadow-sm p-6">
214
+ <h2 class="text-lg font-semibold mb-6">Card Types Distribution</h2>
215
+ <div class="flex justify-center">
216
+ <div class="relative w-40 h-40">
217
+ <svg class="w-full h-full" viewBox="0 0 100 100">
218
+ <!-- Credit -->
219
+ <circle class="text-blue-100" stroke-width="10" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50" />
220
+ <circle class="progress-ring__circle text-primary" stroke-width="10" stroke-dasharray="251.2" stroke-dashoffset="75.36" stroke-linecap="round" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50" />
221
+
222
+ <!-- Debit -->
223
+ <circle class="text-green-100" stroke-width="10" stroke="currentColor" fill="transparent" r="30" cx="50" cy="50" />
224
+ <circle class="progress-ring__circle text-secondary" stroke-width="10" stroke-dasharray="188.4" stroke-dashoffset="56.52" stroke-linecap="round" stroke="currentColor" fill="transparent" r="30" cx="50" cy="50" />
225
+
226
+ <!-- Prepaid -->
227
+ <circle class="text-purple-100" stroke-width="10" stroke="currentColor" fill="transparent" r="20" cx="50" cy="50" />
228
+ <circle class="progress-ring__circle text-purple-500" stroke-width="10" stroke-dasharray="125.6" stroke-dashoffset="62.8" stroke-linecap="round" stroke="currentColor" fill="transparent" r="20" cx="50" cy="50" />
229
+ </svg>
230
+ <div class="absolute inset-0 flex items-center justify-center flex-col">
231
+ <span class="text-2xl font-bold">24,568</span>
232
+ <span class="text-sm text-gray-500">Total Cards</span>
233
+ </div>
234
+ </div>
235
+ </div>
236
+ <div class="mt-6 space-y-3">
237
+ <div class="flex items-center justify-between">
238
+ <div class="flex items-center">
239
+ <div class="w-3 h-3 rounded-full bg-primary mr-2"></div>
240
+ <span class="text-sm">Credit Cards</span>
241
+ </div>
242
+ <span class="text-sm font-medium">70%</span>
243
+ </div>
244
+ <div class="flex items-center justify-between">
245
+ <div class="flex items-center">
246
+ <div class="w-3 h-3 rounded-full bg-secondary mr-2"></div>
247
+ <span class="text-sm">Debit Cards</span>
248
+ </div>
249
+ <span class="text-sm font-medium">20%</span>
250
+ </div>
251
+ <div class="flex items-center justify-between">
252
+ <div class="flex items-center">
253
+ <div class="w-3 h-3 rounded-full bg-purple-500 mr-2"></div>
254
+ <span class="text-sm">Prepaid Cards</span>
255
+ </div>
256
+ <span class="text-sm font-medium">10%</span>
257
+ </div>
258
+ </div>
259
+ </div>
260
+ </div>
261
+
262
+ <!-- Recent Transactions and Top Customers -->
263
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
264
+ <!-- Recent Transactions -->
265
+ <div class="bg-white rounded-xl shadow-sm overflow-hidden">
266
+ <div class="p-6 border-b">
267
+ <h2 class="text-lg font-semibold">Recent Transactions</h2>
268
+ </div>
269
+ <div class="overflow-x-auto">
270
+ <table class="min-w-full divide-y divide-gray-200">
271
+ <thead class="bg-gray-50">
272
+ <tr>
273
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Card</th>
274
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
275
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
276
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
277
+ </tr>
278
+ </thead>
279
+ <tbody class="bg-white divide-y divide-gray-200">
280
+ <tr>
281
+ <td class="px-6 py-4 whitespace-nowrap">
282
+ <div class="flex items-center">
283
+ <div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center text-primary">
284
+ <i class="fas fa-credit-card"></i>
285
+ </div>
286
+ <div class="ml-4">
287
+ <div class="text-sm font-medium text-gray-900">VISA •••• 4582</div>
288
+ <div class="text-sm text-gray-500">John Smith</div>
289
+ </div>
290
+ </div>
291
+ </td>
292
+ <td class="px-6 py-4 whitespace-nowrap">
293
+ <div class="text-sm font-medium">$245.50</div>
294
+ <div class="text-sm text-gray-500">Grocery</div>
295
+ </td>
296
+ <td class="px-6 py-4 whitespace-nowrap">
297
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
298
+ Completed
299
+ </span>
300
+ </td>
301
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
302
+ 10:42 AM, Today
303
+ </td>
304
+ </tr>
305
+ <tr>
306
+ <td class="px-6 py-4 whitespace-nowrap">
307
+ <div class="flex items-center">
308
+ <div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-100 flex items-center justify-center text-secondary">
309
+ <i class="fas fa-credit-card"></i>
310
+ </div>
311
+ <div class="ml-4">
312
+ <div class="text-sm font-medium text-gray-900">MC •••• 7821</div>
313
+ <div class="text-sm text-gray-500">Sarah Johnson</div>
314
+ </div>
315
+ </div>
316
+ </td>
317
+ <td class="px-6 py-4 whitespace-nowrap">
318
+ <div class="text-sm font-medium">$1,200.00</div>
319
+ <div class="text-sm text-gray-500">Electronics</div>
320
+ </td>
321
+ <td class="px-6 py-4 whitespace-nowrap">
322
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
323
+ Pending
324
+ </span>
325
+ </td>
326
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
327
+ 9:15 AM, Today
328
+ </td>
329
+ </tr>
330
+ <tr>
331
+ <td class="px-6 py-4 whitespace-nowrap">
332
+ <div class="flex items-center">
333
+ <div class="flex-shrink-0 h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center text-purple-600">
334
+ <i class="fas fa-credit-card"></i>
335
+ </div>
336
+ <div class="ml-4">
337
+ <div class="text-sm font-medium text-gray-900">AMEX •••• 3594</div>
338
+ <div class="text-sm text-gray-500">Michael Brown</div>
339
+ </div>
340
+ </div>
341
+ </td>
342
+ <td class="px-6 py-4 whitespace-nowrap">
343
+ <div class="text-sm font-medium">$89.75</div>
344
+ <div class="text-sm text-gray-500">Restaurant</div>
345
+ </td>
346
+ <td class="px-6 py-4 whitespace-nowrap">
347
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
348
+ Completed
349
+ </span>
350
+ </td>
351
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
352
+ Yesterday
353
+ </td>
354
+ </tr>
355
+ <tr>
356
+ <td class="px-6 py-4 whitespace-nowrap">
357
+ <div class="flex items-center">
358
+ <div class="flex-shrink-0 h-10 w-10 rounded-full bg-red-100 flex items-center justify-center text-danger">
359
+ <i class="fas fa-credit-card"></i>
360
+ </div>
361
+ <div class="ml-4">
362
+ <div class="text-sm font-medium text-gray-900">VISA •••• 6123</div>
363
+ <div class="text-sm text-gray-500">Emily Davis</div>
364
+ </div>
365
+ </div>
366
+ </td>
367
+ <td class="px-6 py-4 whitespace-nowrap">
368
+ <div class="text-sm font-medium">$450.00</div>
369
+ <div class="text-sm text-gray-500">Travel</div>
370
+ </td>
371
+ <td class="px-6 py-4 whitespace-nowrap">
372
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">
373
+ Declined
374
+ </span>
375
+ </td>
376
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
377
+ Yesterday
378
+ </td>
379
+ </tr>
380
+ </tbody>
381
+ </table>
382
+ </div>
383
+ <div class="px-6 py-3 bg-gray-50 text-right">
384
+ <a href="#" class="text-sm font-medium text-primary hover:text-primary-dark">View all</a>
385
+ </div>
386
+ </div>
387
+
388
+ <!-- Top Customers -->
389
+ <div class="bg-white rounded-xl shadow-sm overflow-hidden">
390
+ <div class="p-6 border-b">
391
+ <h2 class="text-lg font-semibold">Top Customers</h2>
392
+ </div>
393
+ <div class="divide-y divide-gray-200">
394
+ <div class="p-4 flex items-center">
395
+ <div class="flex-shrink-0 h-12 w-12 rounded-full bg-blue-100 flex items-center justify-center text-primary">
396
+ <span class="font-medium">JS</span>
397
+ </div>
398
+ <div class="ml-4 flex-1">
399
+ <div class="flex items-center justify-between">
400
+ <h3 class="text-sm font-medium text-gray-900">John Smith</h3>
401
+ <span class="text-sm font-medium text-primary">$12,450</span>
402
+ </div>
403
+ <div class="mt-1 flex items-center justify-between">
404
+ <p class="text-sm text-gray-500">Platinum Member</p>
405
+ <div class="flex items-center">
406
+ <i class="fas fa-star text-yellow-400 mr-1"></i>
407
+ <span class="text-sm text-gray-500">4.9</span>
408
+ </div>
409
+ </div>
410
+ </div>
411
+ </div>
412
+ <div class="p-4 flex items-center">
413
+ <div class="flex-shrink-0 h-12 w-12 rounded-full bg-green-100 flex items-center justify-center text-secondary">
414
+ <span class="font-medium">SJ</span>
415
+ </div>
416
+ <div class="ml-4 flex-1">
417
+ <div class="flex items-center justify-between">
418
+ <h3 class="text-sm font-medium text-gray-900">Sarah Johnson</h3>
419
+ <span class="text-sm font-medium text-primary">$9,870</span>
420
+ </div>
421
+ <div class="mt-1 flex items-center justify-between">
422
+ <p class="text-sm text-gray-500">Gold Member</p>
423
+ <div class="flex items-center">
424
+ <i class="fas fa-star text-yellow-400 mr-1"></i>
425
+ <span class="text-sm text-gray-500">4.7</span>
426
+ </div>
427
+ </div>
428
+ </div>
429
+ </div>
430
+ <div class="p-4 flex items-center">
431
+ <div class="flex-shrink-0 h-12 w-12 rounded-full bg-purple-100 flex items-center justify-center text-purple-600">
432
+ <span class="font-medium">MB</span>
433
+ </div>
434
+ <div class="ml-4 flex-1">
435
+ <div class="flex items-center justify-between">
436
+ <h3 class="text-sm font-medium text-gray-900">Michael Brown</h3>
437
+ <span class="text-sm font-medium text-primary">$7,650</span>
438
+ </div>
439
+ <div class="mt-1 flex items-center justify-between">
440
+ <p class="text-sm text-gray-500">Silver Member</p>
441
+ <div class="flex items-center">
442
+ <i class="fas fa-star text-yellow-400 mr-1"></i>
443
+ <span class="text-sm text-gray-500">4.5</span>
444
+ </div>
445
+ </div>
446
+ </div>
447
+ </div>
448
+ <div class="p-4 flex items-center">
449
+ <div class="flex-shrink-0 h-12 w-12 rounded-full bg-pink-100 flex items-center justify-center text-pink-600">
450
+ <span class="font-medium">ED</span>
451
+ </div>
452
+ <div class="ml-4 flex-1">
453
+ <div class="flex items-center justify-between">
454
+ <h3 class="text-sm font-medium text-gray-900">Emily Davis</h3>
455
+ <span class="text-sm font-medium text-primary">$6,320</span>
456
+ </div>
457
+ <div class="mt-1 flex items-center justify-between">
458
+ <p class="text-sm text-gray-500">Silver Member</p>
459
+ <div class="flex items-center">
460
+ <i class="fas fa-star text-yellow-400 mr-1"></i>
461
+ <span class="text-sm text-gray-500">4.3</span>
462
+ </div>
463
+ </div>
464
+ </div>
465
+ </div>
466
+ <div class="p-4 flex items-center">
467
+ <div class="flex-shrink-0 h-12 w-12 rounded-full bg-indigo-100 flex items-center justify-center text-indigo-600">
468
+ <span class="font-medium">RW</span>
469
+ </div>
470
+ <div class="ml-4 flex-1">
471
+ <div class="flex items-center justify-between">
472
+ <h3 class="text-sm font-medium text-gray-900">Robert Wilson</h3>
473
+ <span class="text-sm font-medium text-primary">$5,890</span>
474
+ </div>
475
+ <div class="mt-1 flex items-center justify-between">
476
+ <p class="text-sm text-gray-500">Silver Member</p>
477
+ <div class="flex items-center">
478
+ <i class="fas fa-star text-yellow-400 mr-1"></i>
479
+ <span class="text-sm text-gray-500">4.2</span>
480
+ </div>
481
+ </div>
482
+ </div>
483
+ </div>
484
+ </div>
485
+ <div class="px-6 py-3 bg-gray-50 text-right">
486
+ <a href="#" class="text-sm font-medium text-primary hover:text-primary-dark">View all</a>
487
+ </div>
488
+ </div>
489
+ </div>
490
+ </main>
491
+ </div>
492
+ </div>
493
+
494
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
495
+ <script>
496
+ // Sidebar toggle
497
+ document.getElementById('sidebarToggle').addEventListener('click', function() {
498
+ document.querySelector('.sidebar').classList.toggle('-ml-64');
499
+ });
500
+
501
+ // Transaction Chart
502
+ const transactionCtx = document.getElementById('transactionChart').getContext('2d');
503
+ const transactionChart = new Chart(transactionCtx, {
504
+ type: 'line',
505
+ data: {
506
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'],
507
+ datasets: [
508
+ {
509
+ label: 'Credit Cards',
510
+ data: [65000, 59000, 80000, 81000, 56000, 55000, 72000],
511
+ borderColor: '#4f46e5',
512
+ backgroundColor: 'rgba(79, 70, 229, 0.05)',
513
+ borderWidth: 2,
514
+ tension: 0.3,
515
+ fill: true
516
+ },
517
+ {
518
+ label: 'Debit Cards',
519
+ data: [28000, 48000, 40000, 19000, 32000, 27000, 35000],
520
+ borderColor: '#10b981',
521
+ backgroundColor: 'rgba(16, 185, 129, 0.05)',
522
+ borderWidth: 2,
523
+ tension: 0.3,
524
+ fill: true
525
+ }
526
+ ]
527
+ },
528
+ options: {
529
+ responsive: true,
530
+ maintainAspectRatio: false,
531
+ plugins: {
532
+ legend: {
533
+ position: 'top',
534
+ },
535
+ tooltip: {
536
+ mode: 'index',
537
+ intersect: false,
538
+ }
539
+ },
540
+ scales: {
541
+ y: {
542
+ beginAtZero: true,
543
+ ticks: {
544
+ callback: function(value) {
545
+ return '$' + value.toLocaleString();
546
+ }
547
+ }
548
+ }
549
+ }
550
+ }
551
+ });
552
+
553
+ // Simulate data updates
554
+ setInterval(() => {
555
+ // Update transaction chart with random data
556
+ transactionChart.data.datasets.forEach(dataset => {
557
+ dataset.data = dataset.data.map(value => {
558
+ const change = Math.random() * 20000 - 10000;
559
+ return Math.max(10000, value + change);
560
+ });
561
+ });
562
+ transactionChart.update();
563
+ }, 5000);
564
+ </script>
565
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - <a href="https://enzostvs-deepsite.hf.space?remix=lomit/card-comp-dashboard" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
566
+ </html>