Stakal commited on
Commit
0f99ce5
·
verified ·
1 Parent(s): 8fd1f41

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +6 -4
  2. index.html +684 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Paytracker2
3
- emoji: ⚡
4
- colorFrom: blue
5
  colorTo: gray
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: paytracker2
3
+ emoji: 🐳
4
+ colorFrom: pink
5
  colorTo: gray
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,684 @@
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>FinTrack - Income & Expenses Tracker</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
+ <style>
10
+ :root {
11
+ --primary: #4f46e5;
12
+ --primary-light: #6366f1;
13
+ --secondary: #10b981;
14
+ --danger: #ef4444;
15
+ --warning: #f59e0b;
16
+ }
17
+
18
+ .sidebar {
19
+ transition: all 0.3s ease;
20
+ }
21
+
22
+ .sidebar.collapsed {
23
+ width: 70px;
24
+ }
25
+
26
+ .sidebar.collapsed .nav-text {
27
+ display: none;
28
+ }
29
+
30
+ .sidebar.collapsed .logo-text {
31
+ display: none;
32
+ }
33
+
34
+ .sidebar.collapsed .expand-icon {
35
+ transform: rotate(180deg);
36
+ }
37
+
38
+ .chart-container {
39
+ height: 300px;
40
+ }
41
+
42
+ .transaction-card:hover {
43
+ transform: translateY(-2px);
44
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
45
+ }
46
+
47
+ .progress-bar {
48
+ height: 8px;
49
+ border-radius: 4px;
50
+ background-color: #e5e7eb;
51
+ }
52
+
53
+ .progress-bar-fill {
54
+ height: 100%;
55
+ border-radius: 4px;
56
+ transition: width 0.5s ease;
57
+ }
58
+
59
+ .dropdown-content {
60
+ display: none;
61
+ position: absolute;
62
+ right: 0;
63
+ min-width: 160px;
64
+ z-index: 1;
65
+ }
66
+
67
+ .dropdown:hover .dropdown-content {
68
+ display: block;
69
+ }
70
+
71
+ @media (max-width: 768px) {
72
+ .sidebar {
73
+ position: fixed;
74
+ z-index: 50;
75
+ transform: translateX(-100%);
76
+ }
77
+
78
+ .sidebar.active {
79
+ transform: translateX(0);
80
+ }
81
+
82
+ .main-content {
83
+ margin-left: 0;
84
+ }
85
+ }
86
+ </style>
87
+ </head>
88
+ <body class="bg-gray-50">
89
+ <div class="flex h-screen overflow-hidden">
90
+ <!-- Sidebar -->
91
+ <div class="sidebar bg-white shadow-lg w-64 flex flex-col">
92
+ <div class="p-4 flex items-center justify-between border-b">
93
+ <div class="flex items-center">
94
+ <div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center">
95
+ <i class="fas fa-wallet text-indigo-600"></i>
96
+ </div>
97
+ <span class="logo-text ml-3 text-xl font-semibold text-gray-800">FinTrack</span>
98
+ </div>
99
+ <button id="toggleSidebar" class="expand-icon text-gray-500 hover:text-gray-700 transition-transform">
100
+ <i class="fas fa-chevron-left"></i>
101
+ </button>
102
+ </div>
103
+
104
+ <div class="flex-1 overflow-y-auto">
105
+ <nav class="p-4">
106
+ <div class="mb-6">
107
+ <p class="text-xs uppercase text-gray-500 font-semibold mb-2 nav-text">Main</p>
108
+ <ul>
109
+ <li>
110
+ <a href="#" class="flex items-center p-2 text-indigo-600 rounded-lg bg-indigo-50">
111
+ <i class="fas fa-home"></i>
112
+ <span class="nav-text ml-3">Dashboard</span>
113
+ </a>
114
+ </li>
115
+ <li>
116
+ <a href="#" class="flex items-center p-2 text-gray-600 hover:text-indigo-600 hover:bg-indigo-50 rounded-lg">
117
+ <i class="fas fa-exchange-alt"></i>
118
+ <span class="nav-text ml-3">Transactions</span>
119
+ </a>
120
+ </li>
121
+ <li>
122
+ <a href="#" class="flex items-center p-2 text-gray-600 hover:text-indigo-600 hover:bg-indigo-50 rounded-lg">
123
+ <i class="fas fa-chart-pie"></i>
124
+ <span class="nav-text ml-3">Reports</span>
125
+ </a>
126
+ </li>
127
+ </ul>
128
+ </div>
129
+
130
+ <div class="mb-6">
131
+ <p class="text-xs uppercase text-gray-500 font-semibold mb-2 nav-text">Management</p>
132
+ <ul>
133
+ <li>
134
+ <a href="#" class="flex items-center p-2 text-gray-600 hover:text-indigo-600 hover:bg-indigo-50 rounded-lg">
135
+ <i class="fas fa-tags"></i>
136
+ <span class="nav-text ml-3">Categories</span>
137
+ </a>
138
+ </li>
139
+ <li>
140
+ <a href="#" class="flex items-center p-2 text-gray-600 hover:text-indigo-600 hover:bg-indigo-50 rounded-lg">
141
+ <i class="fas fa-users"></i>
142
+ <span class="nav-text ml-3">Clients</span>
143
+ </a>
144
+ </li>
145
+ <li>
146
+ <a href="#" class="flex items-center p-2 text-gray-600 hover:text-indigo-600 hover:bg-indigo-50 rounded-lg">
147
+ <i class="fas fa-truck"></i>
148
+ <span class="nav-text ml-3">Suppliers</span>
149
+ </a>
150
+ </li>
151
+ </ul>
152
+ </div>
153
+
154
+ <div class="mb-6">
155
+ <p class="text-xs uppercase text-gray-500 font-semibold mb-2 nav-text">Settings</p>
156
+ <ul>
157
+ <li>
158
+ <a href="#" class="flex items-center p-2 text-gray-600 hover:text-indigo-600 hover:bg-indigo-50 rounded-lg">
159
+ <i class="fas fa-cog"></i>
160
+ <span class="nav-text ml-3">Preferences</span>
161
+ </a>
162
+ </li>
163
+ <li>
164
+ <a href="#" class="flex items-center p-2 text-gray-600 hover:text-indigo-600 hover:bg-indigo-50 rounded-lg">
165
+ <i class="fas fa-user-shield"></i>
166
+ <span class="nav-text ml-3">Account</span>
167
+ </a>
168
+ </li>
169
+ </ul>
170
+ </div>
171
+ </nav>
172
+ </div>
173
+
174
+ <div class="p-4 border-t">
175
+ <div class="flex items-center">
176
+ <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="w-10 h-10 rounded-full">
177
+ <div class="ml-3 nav-text">
178
+ <p class="text-sm font-medium text-gray-800">Sarah Johnson</p>
179
+ <p class="text-xs text-gray-500">Admin</p>
180
+ </div>
181
+ </div>
182
+ </div>
183
+ </div>
184
+
185
+ <!-- Main Content -->
186
+ <div class="main-content flex-1 overflow-auto">
187
+ <!-- Top Navigation -->
188
+ <header class="bg-white shadow-sm">
189
+ <div class="px-6 py-4 flex items-center justify-between">
190
+ <div class="flex items-center">
191
+ <button id="mobileMenuButton" class="md:hidden text-gray-500 mr-4">
192
+ <i class="fas fa-bars text-xl"></i>
193
+ </button>
194
+ <h1 class="text-xl font-semibold text-gray-800">Dashboard</h1>
195
+ </div>
196
+
197
+ <div class="flex items-center space-x-4">
198
+ <div class="relative">
199
+ <button class="text-gray-500 hover:text-gray-700">
200
+ <i class="fas fa-bell text-xl"></i>
201
+ <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
202
+ </button>
203
+ </div>
204
+
205
+ <div class="dropdown relative">
206
+ <button class="flex items-center space-x-2">
207
+ <span class="text-gray-700 font-medium hidden md:inline">Sarah J.</span>
208
+ <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="w-8 h-8 rounded-full">
209
+ </button>
210
+ <div class="dropdown-content mt-2 py-2 bg-white rounded-md shadow-lg">
211
+ <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Profile</a>
212
+ <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Settings</a>
213
+ <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Logout</a>
214
+ </div>
215
+ </div>
216
+ </div>
217
+ </div>
218
+ </header>
219
+
220
+ <!-- Dashboard Content -->
221
+ <main class="p-6">
222
+ <!-- Summary Cards -->
223
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
224
+ <div class="bg-white rounded-xl shadow-sm p-6">
225
+ <div class="flex items-center justify-between">
226
+ <div>
227
+ <p class="text-sm font-medium text-gray-500">Total Income</p>
228
+ <p class="text-2xl font-bold text-green-600 mt-1">$12,450.00</p>
229
+ <p class="text-xs text-green-500 mt-1"><i class="fas fa-arrow-up mr-1"></i> 12% from last month</p>
230
+ </div>
231
+ <div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center">
232
+ <i class="fas fa-money-bill-wave text-green-600 text-xl"></i>
233
+ </div>
234
+ </div>
235
+ </div>
236
+
237
+ <div class="bg-white rounded-xl shadow-sm p-6">
238
+ <div class="flex items-center justify-between">
239
+ <div>
240
+ <p class="text-sm font-medium text-gray-500">Total Expenses</p>
241
+ <p class="text-2xl font-bold text-red-600 mt-1">$8,720.50</p>
242
+ <p class="text-xs text-red-500 mt-1"><i class="fas fa-arrow-up mr-1"></i> 8% from last month</p>
243
+ </div>
244
+ <div class="w-12 h-12 rounded-full bg-red-100 flex items-center justify-center">
245
+ <i class="fas fa-shopping-cart text-red-600 text-xl"></i>
246
+ </div>
247
+ </div>
248
+ </div>
249
+
250
+ <div class="bg-white rounded-xl shadow-sm p-6">
251
+ <div class="flex items-center justify-between">
252
+ <div>
253
+ <p class="text-sm font-medium text-gray-500">Balance</p>
254
+ <p class="text-2xl font-bold text-indigo-600 mt-1">$3,729.50</p>
255
+ <p class="text-xs text-indigo-500 mt-1"><i class="fas fa-arrow-up mr-1"></i> 4% from last month</p>
256
+ </div>
257
+ <div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center">
258
+ <i class="fas fa-wallet text-indigo-600 text-xl"></i>
259
+ </div>
260
+ </div>
261
+ </div>
262
+ </div>
263
+
264
+ <!-- Charts Section -->
265
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
266
+ <div class="bg-white rounded-xl shadow-sm p-6">
267
+ <div class="flex items-center justify-between mb-4">
268
+ <h2 class="text-lg font-semibold text-gray-800">Income vs Expenses</h2>
269
+ <select class="text-sm border-gray-300 rounded-md focus:ring-indigo-500 focus:border-indigo-500">
270
+ <option>This Month</option>
271
+ <option>Last Month</option>
272
+ <option>This Year</option>
273
+ </select>
274
+ </div>
275
+ <div class="chart-container">
276
+ <canvas id="incomeExpenseChart"></canvas>
277
+ </div>
278
+ </div>
279
+
280
+ <div class="bg-white rounded-xl shadow-sm p-6">
281
+ <div class="flex items-center justify-between mb-4">
282
+ <h2 class="text-lg font-semibold text-gray-800">Expense Categories</h2>
283
+ <select class="text-sm border-gray-300 rounded-md focus:ring-indigo-500 focus:border-indigo-500">
284
+ <option>This Month</option>
285
+ <option>Last Month</option>
286
+ <option>This Year</option>
287
+ </select>
288
+ </div>
289
+ <div class="chart-container">
290
+ <canvas id="expenseCategoriesChart"></canvas>
291
+ </div>
292
+ </div>
293
+ </div>
294
+
295
+ <!-- Recent Transactions -->
296
+ <div class="bg-white rounded-xl shadow-sm p-6 mb-6">
297
+ <div class="flex items-center justify-between mb-6">
298
+ <h2 class="text-lg font-semibold text-gray-800">Recent Transactions</h2>
299
+ <button class="bg-indigo-600 text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
300
+ <i class="fas fa-plus mr-2"></i> Add Transaction
301
+ </button>
302
+ </div>
303
+
304
+ <div class="overflow-x-auto">
305
+ <table class="min-w-full divide-y divide-gray-200">
306
+ <thead class="bg-gray-50">
307
+ <tr>
308
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
309
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Description</th>
310
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Category</th>
311
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
312
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
313
+ </tr>
314
+ </thead>
315
+ <tbody class="bg-white divide-y divide-gray-200">
316
+ <tr class="hover:bg-gray-50">
317
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 12, 2023</td>
318
+ <td class="px-6 py-4 whitespace-nowrap">
319
+ <div class="flex items-center">
320
+ <div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-100 flex items-center justify-center">
321
+ <i class="fas fa-money-bill-wave text-green-600"></i>
322
+ </div>
323
+ <div class="ml-4">
324
+ <div class="text-sm font-medium text-gray-900">Freelance Payment</div>
325
+ <div class="text-sm text-gray-500">Client: ABC Corp</div>
326
+ </div>
327
+ </div>
328
+ </td>
329
+ <td class="px-6 py-4 whitespace-nowrap">
330
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
331
+ Income
332
+ </span>
333
+ </td>
334
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-green-600">$1,250.00</td>
335
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
336
+ <button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-edit"></i></button>
337
+ <button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
338
+ </td>
339
+ </tr>
340
+
341
+ <tr class="hover:bg-gray-50">
342
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 10, 2023</td>
343
+ <td class="px-6 py-4 whitespace-nowrap">
344
+ <div class="flex items-center">
345
+ <div class="flex-shrink-0 h-10 w-10 rounded-full bg-red-100 flex items-center justify-center">
346
+ <i class="fas fa-utensils text-red-600"></i>
347
+ </div>
348
+ <div class="ml-4">
349
+ <div class="text-sm font-medium text-gray-900">Dinner with Client</div>
350
+ <div class="text-sm text-gray-500">Supplier: Gourmet Restaurant</div>
351
+ </div>
352
+ </div>
353
+ </td>
354
+ <td class="px-6 py-4 whitespace-nowrap">
355
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">
356
+ Food & Dining
357
+ </span>
358
+ </td>
359
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-red-600">$85.50</td>
360
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
361
+ <button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-edit"></i></button>
362
+ <button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
363
+ </td>
364
+ </tr>
365
+
366
+ <tr class="hover:bg-gray-50">
367
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 8, 2023</td>
368
+ <td class="px-6 py-4 whitespace-nowrap">
369
+ <div class="flex items-center">
370
+ <div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
371
+ <i class="fas fa-lightbulb text-blue-600"></i>
372
+ </div>
373
+ <div class="ml-4">
374
+ <div class="text-sm font-medium text-gray-900">Electricity Bill</div>
375
+ <div class="text-sm text-gray-500">Supplier: Power Company</div>
376
+ </div>
377
+ </div>
378
+ </td>
379
+ <td class="px-6 py-4 whitespace-nowrap">
380
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">
381
+ Utilities
382
+ </span>
383
+ </td>
384
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-red-600">$120.75</td>
385
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
386
+ <button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-edit"></i></button>
387
+ <button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
388
+ </td>
389
+ </tr>
390
+
391
+ <tr class="hover:bg-gray-50">
392
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 5, 2023</td>
393
+ <td class="px-6 py-4 whitespace-nowrap">
394
+ <div class="flex items-center">
395
+ <div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-100 flex items-center justify-center">
396
+ <i class="fas fa-money-bill-wave text-green-600"></i>
397
+ </div>
398
+ <div class="ml-4">
399
+ <div class="text-sm font-medium text-gray-900">Consulting Fee</div>
400
+ <div class="text-sm text-gray-500">Client: XYZ Ltd</div>
401
+ </div>
402
+ </div>
403
+ </td>
404
+ <td class="px-6 py-4 whitespace-nowrap">
405
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
406
+ Income
407
+ </span>
408
+ </td>
409
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-green-600">$2,500.00</td>
410
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
411
+ <button class="text-indigo-600 hover:text-indigo-900 mr-3"><i class="fas fa-edit"></i></button>
412
+ <button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
413
+ </td>
414
+ </tr>
415
+ </tbody>
416
+ </table>
417
+ </div>
418
+
419
+ <div class="mt-4 flex items-center justify-between">
420
+ <div class="text-sm text-gray-500">
421
+ Showing <span class="font-medium">1</span> to <span class="font-medium">4</span> of <span class="font-medium">24</span> transactions
422
+ </div>
423
+ <div class="flex space-x-2">
424
+ <button class="px-3 py-1 border rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
425
+ Previous
426
+ </button>
427
+ <button class="px-3 py-1 border rounded-md text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700">
428
+ 1
429
+ </button>
430
+ <button class="px-3 py-1 border rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
431
+ 2
432
+ </button>
433
+ <button class="px-3 py-1 border rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
434
+ Next
435
+ </button>
436
+ </div>
437
+ </div>
438
+ </div>
439
+
440
+ <!-- Budget Overview -->
441
+ <div class="bg-white rounded-xl shadow-sm p-6">
442
+ <div class="flex items-center justify-between mb-6">
443
+ <h2 class="text-lg font-semibold text-gray-800">Budget Overview</h2>
444
+ <button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
445
+ <i class="fas fa-plus mr-1"></i> Add Budget
446
+ </button>
447
+ </div>
448
+
449
+ <div class="space-y-4">
450
+ <div>
451
+ <div class="flex justify-between mb-1">
452
+ <span class="text-sm font-medium text-gray-700">Food & Dining</span>
453
+ <span class="text-sm text-gray-500">$320 / $500</span>
454
+ </div>
455
+ <div class="progress-bar">
456
+ <div class="progress-bar-fill bg-yellow-500" style="width: 64%"></div>
457
+ </div>
458
+ </div>
459
+
460
+ <div>
461
+ <div class="flex justify-between mb-1">
462
+ <span class="text-sm font-medium text-gray-700">Transportation</span>
463
+ <span class="text-sm text-gray-500">$150 / $300</span>
464
+ </div>
465
+ <div class="progress-bar">
466
+ <div class="progress-bar-fill bg-blue-500" style="width: 50%"></div>
467
+ </div>
468
+ </div>
469
+
470
+ <div>
471
+ <div class="flex justify-between mb-1">
472
+ <span class="text-sm font-medium text-gray-700">Entertainment</span>
473
+ <span class="text-sm text-gray-500">$75 / $200</span>
474
+ </div>
475
+ <div class="progress-bar">
476
+ <div class="progress-bar-fill bg-purple-500" style="width: 37.5%"></div>
477
+ </div>
478
+ </div>
479
+
480
+ <div>
481
+ <div class="flex justify-between mb-1">
482
+ <span class="text-sm font-medium text-gray-700">Utilities</span>
483
+ <span class="text-sm text-gray-500">$210 / $250</span>
484
+ </div>
485
+ <div class="progress-bar">
486
+ <div class="progress-bar-fill bg-red-500" style="width: 84%"></div>
487
+ </div>
488
+ </div>
489
+ </div>
490
+ </div>
491
+ </main>
492
+ </div>
493
+ </div>
494
+
495
+ <!-- Add Transaction Modal (hidden by default) -->
496
+ <div id="transactionModal" class="fixed inset-0 z-50 hidden overflow-y-auto">
497
+ <div class="flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
498
+ <div class="fixed inset-0 transition-opacity" aria-hidden="true">
499
+ <div class="absolute inset-0 bg-gray-500 opacity-75"></div>
500
+ </div>
501
+
502
+ <span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">&#8203;</span>
503
+
504
+ <div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full">
505
+ <div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
506
+ <div class="sm:flex sm:items-start">
507
+ <div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full">
508
+ <h3 class="text-lg leading-6 font-medium text-gray-900 mb-4" id="modal-title">
509
+ Add New Transaction
510
+ </h3>
511
+
512
+ <div class="mt-2">
513
+ <div class="grid grid-cols-1 gap-y-4">
514
+ <div>
515
+ <label for="transactionType" class="block text-sm font-medium text-gray-700">Type</label>
516
+ <select id="transactionType" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md">
517
+ <option value="income">Income</option>
518
+ <option value="expense">Expense</option>
519
+ </select>
520
+ </div>
521
+
522
+ <div>
523
+ <label for="amount" class="block text-sm font-medium text-gray-700">Amount</label>
524
+ <input type="number" id="amount" class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md">
525
+ </div>
526
+
527
+ <div>
528
+ <label for="description" class="block text-sm font-medium text-gray-700">Description</label>
529
+ <input type="text" id="description" class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md">
530
+ </div>
531
+
532
+ <div>
533
+ <label for="category" class="block text-sm font-medium text-gray-700">Category</label>
534
+ <select id="category" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md">
535
+ <option value="">Select a category</option>
536
+ <optgroup label="Income">
537
+ <option value="salary">Salary</option>
538
+ <option value="freelance">Freelance</option>
539
+ <option value="investment">Investment</option>
540
+ </optgroup>
541
+ <optgroup label="Expenses">
542
+ <option value="food">Food & Dining</option>
543
+ <option value="transport">Transportation</option>
544
+ <option value="utilities">Utilities</option>
545
+ <option value="entertainment">Entertainment</option>
546
+ </optgroup>
547
+ </select>
548
+ </div>
549
+
550
+ <div>
551
+ <label for="date" class="block text-sm font-medium text-gray-700">Date</label>
552
+ <input type="date" id="date" class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md">
553
+ </div>
554
+
555
+ <div>
556
+ <label for="attachment" class="block text-sm font-medium text-gray-700">Attachment (optional)</label>
557
+ <input type="file" id="attachment" class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md">
558
+ </div>
559
+ </div>
560
+ </div>
561
+ </div>
562
+ </div>
563
+ </div>
564
+
565
+ <div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
566
+ <button type="button" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:ml-3 sm:w-auto sm:text-sm">
567
+ Save
568
+ </button>
569
+ <button type="button" id="cancelTransaction" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm">
570
+ Cancel
571
+ </button>
572
+ </div>
573
+ </div>
574
+ </div>
575
+ </div>
576
+
577
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
578
+ <script>
579
+ // Toggle sidebar
580
+ document.getElementById('toggleSidebar').addEventListener('click', function() {
581
+ document.querySelector('.sidebar').classList.toggle('collapsed');
582
+ });
583
+
584
+ // Mobile menu toggle
585
+ document.getElementById('mobileMenuButton').addEventListener('click', function() {
586
+ document.querySelector('.sidebar').classList.toggle('active');
587
+ });
588
+
589
+ // Transaction modal
590
+ const transactionModal = document.getElementById('transactionModal');
591
+ const cancelTransaction = document.getElementById('cancelTransaction');
592
+
593
+ // Open modal when "Add Transaction" button is clicked
594
+ document.querySelectorAll('button').forEach(button => {
595
+ if (button.textContent.includes('Add Transaction')) {
596
+ button.addEventListener('click', function() {
597
+ transactionModal.classList.remove('hidden');
598
+ });
599
+ }
600
+ });
601
+
602
+ // Close modal
603
+ cancelTransaction.addEventListener('click', function() {
604
+ transactionModal.classList.add('hidden');
605
+ });
606
+
607
+ // Close modal when clicking outside
608
+ window.addEventListener('click', function(event) {
609
+ if (event.target === transactionModal) {
610
+ transactionModal.classList.add('hidden');
611
+ }
612
+ });
613
+
614
+ // Charts
615
+ document.addEventListener('DOMContentLoaded', function() {
616
+ // Income vs Expenses Chart
617
+ const incomeExpenseCtx = document.getElementById('incomeExpenseChart').getContext('2d');
618
+ const incomeExpenseChart = new Chart(incomeExpenseCtx, {
619
+ type: 'bar',
620
+ data: {
621
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
622
+ datasets: [
623
+ {
624
+ label: 'Income',
625
+ data: [1200, 1900, 1500, 2000, 1800, 2200],
626
+ backgroundColor: '#10B981',
627
+ borderRadius: 4
628
+ },
629
+ {
630
+ label: 'Expenses',
631
+ data: [800, 1100, 900, 1200, 1000, 1400],
632
+ backgroundColor: '#EF4444',
633
+ borderRadius: 4
634
+ }
635
+ ]
636
+ },
637
+ options: {
638
+ responsive: true,
639
+ maintainAspectRatio: false,
640
+ scales: {
641
+ y: {
642
+ beginAtZero: true
643
+ }
644
+ },
645
+ plugins: {
646
+ legend: {
647
+ position: 'top',
648
+ }
649
+ }
650
+ }
651
+ });
652
+
653
+ // Expense Categories Chart
654
+ const expenseCategoriesCtx = document.getElementById('expenseCategoriesChart').getContext('2d');
655
+ const expenseCategoriesChart = new Chart(expenseCategoriesCtx, {
656
+ type: 'doughnut',
657
+ data: {
658
+ labels: ['Food & Dining', 'Transportation', 'Utilities', 'Entertainment', 'Shopping'],
659
+ datasets: [{
660
+ data: [320, 150, 210, 75, 120],
661
+ backgroundColor: [
662
+ '#F59E0B',
663
+ '#3B82F6',
664
+ '#EF4444',
665
+ '#8B5CF6',
666
+ '#EC4899'
667
+ ],
668
+ borderWidth: 0
669
+ }]
670
+ },
671
+ options: {
672
+ responsive: true,
673
+ maintainAspectRatio: false,
674
+ plugins: {
675
+ legend: {
676
+ position: 'right',
677
+ }
678
+ }
679
+ }
680
+ });
681
+ });
682
+ </script>
683
+ <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=Stakal/paytracker2" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
684
+ </html>