File size: 20,077 Bytes
3b8706b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ad39261
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CaseFlow Visualizer</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
    <style>
        .status-completed { background-color: #10B981; }
        .status-waiting { background-color: #F59E0B; }
        .status-inprogress { background-color: #3B82F6; }
        .status-onhold { background-color: #EF4444; }
        .status-needsrevision { background-color: #EC4899; }
        .glow {
            box-shadow: 0 0 15px currentColor;
        }
        .animate-float {
            animation: float 3s ease-in-out infinite;
        }
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
    </style>
</head>
<body class="bg-gray-900 text-gray-100 font-sans">
    <div id="vanta-bg" class="fixed inset-0 -z-10"></div>
    
    <header class="bg-gray-800 bg-opacity-80 backdrop-blur-sm py-6 px-4 shadow-lg">
        <div class="container mx-auto flex flex-col md:flex-row justify-between items-center">
            <div class="flex items-center mb-4 md:mb-0">
                <i data-feather="activity" class="text-blue-400 mr-3 w-8 h-8"></i>
                <h1 class="text-2xl md:text-3xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-blue-400 to-purple-500">
                    CaseFlow Visualizer
                </h1>
            </div>
            <nav class="flex space-x-1 md:space-x-4">
                <a href="#" class="px-3 py-2 rounded-lg bg-blue-600 hover:bg-blue-500 transition flex items-center">
                    <i data-feather="home" class="mr-2"></i> Dashboard
                </a>
                <a href="#" class="px-3 py-2 rounded-lg bg-gray-700 hover:bg-gray-600 transition flex items-center">
                    <i data-feather="users" class="mr-2"></i> Clients
                </a>
                <a href="#" class="px-3 py-2 rounded-lg bg-gray-700 hover:bg-gray-600 transition flex items-center">
                    <i data-feather="bar-chart-2" class="mr-2"></i> Analytics
                </a>
            </nav>
        </div>
    </header>

    <main class="container mx-auto px-4 py-8">
        <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
            <!-- Summary Cards -->
            <div class="bg-gray-800 bg-opacity-80 rounded-xl p-6 shadow-lg border border-gray-700">
                <div class="flex items-center">
                    <div class="p-3 rounded-full bg-blue-500 bg-opacity-20 mr-4">
                        <i data-feather="user-check" class="text-blue-400 w-6 h-6"></i>
                    </div>
                    <div>
                        <p class="text-gray-400">Active Cases</p>
                        <h3 class="text-2xl font-bold">47</h3>
                    </div>
                </div>
                <div class="mt-4 pt-4 border-t border-gray-700">
                    <div class="h-2 bg-gray-700 rounded-full overflow-hidden">
                        <div class="h-full bg-blue-500 rounded-full" style="width: 78%"></div>
                    </div>
                    <p class="text-sm text-gray-400 mt-2">78% completion rate</p>
                </div>
            </div>

            <div class="bg-gray-800 bg-opacity-80 rounded-xl p-6 shadow-lg border border-gray-700">
                <div class="flex items-center">
                    <div class="p-3 rounded-full bg-green-500 bg-opacity-20 mr-4">
                        <i data-feather="check-circle" class="text-green-400 w-6 h-6"></i>
                    </div>
                    <div>
                        <p class="text-gray-400">Completed</p>
                        <h3 class="text-2xl font-bold">18</h3>
                    </div>
                </div>
                <div class="mt-4 pt-4 border-t border-gray-700">
                    <div class="h-2 bg-gray-700 rounded-full overflow-hidden">
                        <div class="h-full bg-green-500 rounded-full" style="width: 38%"></div>
                    </div>
                    <p class="text-sm text-gray-400 mt-2">38% of total cases</p>
                </div>
            </div>

            <div class="bg-gray-800 bg-opacity-80 rounded-xl p-6 shadow-lg border border-gray-700">
                <div class="flex items-center">
                    <div class="p-3 rounded-full bg-yellow-500 bg-opacity-20 mr-4">
                        <i data-feather="clock" class="text-yellow-400 w-6 h-6"></i>
                    </div>
                    <div>
                        <p class="text-gray-400">Pending Review</p>
                        <h3 class="text-2xl font-bold">29</h3>
                    </div>
                </div>
                <div class="mt-4 pt-4 border-t border-gray-700">
                    <div class="h-2 bg-gray-700 rounded-full overflow-hidden">
                        <div class="h-full bg-yellow-500 rounded-full" style="width: 62%"></div>
                    </div>
                    <p class="text-sm text-gray-400 mt-2">62% awaiting action</p>
                </div>
            </div>
        </div>

        <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
            <!-- Status Chart -->
            <div class="bg-gray-800 bg-opacity-80 rounded-xl p-6 shadow-lg border border-gray-700">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-xl font-semibold">Case Status Distribution</h2>
                    <div class="flex space-x-2">
                        <button class="px-3 py-1 text-sm rounded bg-blue-600 hover:bg-blue-500 transition">This Month</button>
                        <button class="px-3 py-1 text-sm rounded bg-gray-700 hover:bg-gray-600 transition">All Time</button>
                    </div>
                </div>
                <div class="h-64">
                    <canvas id="statusChart"></canvas>
                </div>
            </div>

            <!-- Timeline Chart -->
            <div class="bg-gray-800 bg-opacity-80 rounded-xl p-6 shadow-lg border border-gray-700">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-xl font-semibold">Case Completion Timeline</h2>
                    <i data-feather="calendar" class="text-gray-400"></i>
                </div>
                <div class="h-64">
                    <canvas id="timelineChart"></canvas>
                </div>
            </div>
        </div>

        <!-- Cases Table -->
        <div class="bg-gray-800 bg-opacity-80 rounded-xl shadow-lg border border-gray-700 overflow-hidden">
            <div class="p-6 border-b border-gray-700">
                <div class="flex justify-between items-center">
                    <h2 class="text-xl font-semibold">Recent Cases</h2>
                    <div class="relative">
                        <input type="text" placeholder="Search cases..." class="bg-gray-700 rounded-lg pl-10 pr-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
                        <i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i>
                    </div>
                </div>
            </div>
            <div class="overflow-x-auto">
                <table class="w-full">
                    <thead class="bg-gray-700">
                        <tr>
                            <th class="px-6 py-3 text-left text-xs font-medium text-gray-300 uppercase tracking-wider">Client</th>
                            <th class="px-6 py-3 text-left text-xs font-medium text-gray-300 uppercase tracking-wider">Case ID</th>
                            <th class="px-6 py-3 text-left text-xs font-medium text-gray-300 uppercase tracking-wider">Stage</th>
                            <th class="px-6 py-3 text-left text-xs font-medium text-gray-300 uppercase tracking-wider">Status</th>
                            <th class="px-6 py-3 text-left text-xs font-medium text-gray-300 uppercase tracking-wider">Due Date</th>
                            <th class="px-6 py-3 text-left text-xs font-medium text-gray-300 uppercase tracking-wider">Actions</th>
                        </tr>
                    </thead>
                    <tbody class="divide-y divide-gray-700">
                        <tr class="hover:bg-gray-700 transition">
                            <td class="px-6 py-4 whitespace-nowrap">Rodrigo Gomes do Amaral</td>
                            <td class="px-6 py-4 whitespace-nowrap">310356</td>
                            <td class="px-6 py-4 whitespace-nowrap">Research</td>
                            <td class="px-6 py-4 whitespace-nowrap">
                                <span class="px-2 py-1 rounded-full text-xs font-medium status-completed">Completed</span>
                            </td>
                            <td class="px-6 py-4 whitespace-nowrap">06/24/2025</td>
                            <td class="px-6 py-4 whitespace-nowrap">
                                <button class="text-blue-400 hover:text-blue-300 mr-3">
                                    <i data-feather="eye"></i>
                                </button>
                                <button class="text-green-400 hover:text-green-300">
                                    <i data-feather="edit-2"></i>
                                </button>
                            </td>
                        </tr>
                        <tr class="hover:bg-gray-700 transition">
                            <td class="px-6 py-4 whitespace-nowrap">Ivoleia de Oliveira Texeira</td>
                            <td class="px-6 py-4 whitespace-nowrap">313011</td>
                            <td class="px-6 py-4 whitespace-nowrap">PL</td>
                            <td class="px-6 py-4 whitespace-nowrap">
                                <span class="px-2 py-1 rounded-full text-xs font-medium status-waiting">Waiting for Review</span>
                            </td>
                            <td class="px-6 py-4 whitespace-nowrap">07/07/2025</td>
                            <td class="px-6 py-4 whitespace-nowrap">
                                <button class="text-blue-400 hover:text-blue-300 mr-3">
                                    <i data-feather="eye"></i>
                                </button>
                                <button class="text-green-400 hover:text-green-300">
                                    <i data-feather="edit-2"></i>
                                </button>
                            </td>
                        </tr>
                        <tr class="hover:bg-gray-700 transition">
                            <td class="px-6 py-4 whitespace-nowrap">Mariana de Cerqueira Knabben</td>
                            <td class="px-6 py-4 whitespace-nowrap">315259</td>
                            <td class="px-6 py-4 whitespace-nowrap">BP</td>
                            <td class="px-6 py-4 whitespace-nowrap">
                                <span class="px-2 py-1 rounded-full text-xs font-medium status-completed">Completed</span>
                            </td>
                            <td class="px-6 py-4 whitespace-nowrap">07/17/2025</td>
                            <td class="px-6 py-4 whitespace-nowrap">
                                <button class="text-blue-400 hover:text-blue-300 mr-3">
                                    <i data-feather="eye"></i>
                                </button>
                                <button class="text-green-400 hover:text-green-300">
                                    <i data-feather="edit-2"></i>
                                </button>
                            </td>
                        </tr>
                        <tr class="hover:bg-gray-700 transition">
                            <td class="px-6 py-4 whitespace-nowrap">Gabriel de Melo Borges</td>
                            <td class="px-6 py-4 whitespace-nowrap">315281</td>
                            <td class="px-6 py-4 whitespace-nowrap">BP</td>
                            <td class="px-6 py-4 whitespace-nowrap">
                                <span class="px-2 py-1 rounded-full text-xs font-medium status-needsrevision">Needs Revision</span>
                            </td>
                            <td class="px-6 py-4 whitespace-nowrap">07/17/2025</td>
                            <td class="px-6 py-4 whitespace-nowrap">
                                <button class="text-blue-400 hover:text-blue-300 mr-3">
                                    <i data-feather="eye"></i>
                                </button>
                                <button class="text-green-400 hover:text-green-300">
                                    <i data-feather="edit-2"></i>
                                </button>
                            </td>
                        </tr>
                        <tr class="hover:bg-gray-700 transition">
                            <td class="px-6 py-4 whitespace-nowrap">Rafael Introvini Mroginski</td>
                            <td class="px-6 py-4 whitespace-nowrap">316436</td>
                            <td class="px-6 py-4 whitespace-nowrap">Research</td>
                            <td class="px-6 py-4 whitespace-nowrap">
                                <span class="px-2 py-1 rounded-full text-xs font-medium status-waiting">Waiting for Review</span>
                            </td>
                            <td class="px-6 py-4 whitespace-nowrap">09/27/2025</td>
                            <td class="px-6 py-4 whitespace-nowrap">
                                <button class="text-blue-400 hover:text-blue-300 mr-3">
                                    <i data-feather="eye"></i>
                                </button>
                                <button class="text-green-400 hover:text-green-300">
                                    <i data-feather="edit-2"></i>
                                </button>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="px-6 py-4 border-t border-gray-700 flex justify-between items-center">
                <div class="text-sm text-gray-400">
                    Showing <span class="font-medium">1</span> to <span class="font-medium">5</span> of <span class="font-medium">47</span> cases
                </div>
                <div class="flex space-x-2">
                    <button class="px-3 py-1 rounded bg-gray-700 hover:bg-gray-600 transition">
                        <i data-feather="chevron-left"></i>
                    </button>
                    <button class="px-3 py-1 rounded bg-blue-600 hover:bg-blue-500 transition">1</button>
                    <button class="px-3 py-1 rounded bg-gray-700 hover:bg-gray-600 transition">2</button>
                    <button class="px-3 py-1 rounded bg-gray-700 hover:bg-gray-600 transition">3</button>
                    <button class="px-3 py-1 rounded bg-gray-700 hover:bg-gray-600 transition">
                        <i data-feather="chevron-right"></i>
                    </button>
                </div>
            </div>
        </div>
    </main>

    <footer class="bg-gray-800 bg-opacity-80 py-6 px-4 mt-12">
        <div class="container mx-auto flex flex-col md:flex-row justify-between items-center">
            <div class="mb-4 md:mb-0">
                <p class="text-gray-400">© 2023 CaseFlow Visualizer. All rights reserved.</p>
            </div>
            <div class="flex space-x-4">
                <a href="#" class="text-gray-400 hover:text-blue-400 transition">
                    <i data-feather="github"></i>
                </a>
                <a href="#" class="text-gray-400 hover:text-blue-400 transition">
                    <i data-feather="twitter"></i>
                </a>
                <a href="#" class="text-gray-400 hover:text-blue-400 transition">
                    <i data-feather="linkedin"></i>
                </a>
            </div>
        </div>
    </footer>

    <script>
        // Vanta.js background
        VANTA.NET({
            el: "#vanta-bg",
            mouseControls: true,
            touchControls: true,
            gyroControls: false,
            minHeight: 200.00,
            minWidth: 200.00,
            scale: 1.00,
            scaleMobile: 1.00,
            color: 0x3b82f6,
            backgroundColor: 0x111827,
            points: 10.00,
            maxDistance: 22.00,
            spacing: 18.00
        });

        // Initialize feather icons
        feather.replace();

        // Status Chart
        const statusCtx = document.getElementById('statusChart').getContext('2d');
        const statusChart = new Chart(statusCtx, {
            type: 'doughnut',
            data: {
                labels: ['Completed', 'Waiting for Review', 'In Progress', 'On Hold', 'Needs Revision'],
                datasets: [{
                    data: [18, 29, 10, 5, 8],
                    backgroundColor: [
                        '#10B981',
                        '#F59E0B',
                        '#3B82F6',
                        '#EF4444',
                        '#EC4899'
                    ],
                    borderWidth: 0,
                }]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                plugins: {
                    legend: {
                        position: 'right',
                        labels: {
                            color: '#E5E7EB',
                            font: {
                                family: 'Inter'
                            }
                        }
                    }
                },
                cutout: '70%'
            }
        });

        // Timeline Chart
        const timelineCtx = document.getElementById('timelineChart').getContext('2d');
        const timelineChart = new Chart(timelineCtx, {
            type: 'line',
            data: {
                labels: ['Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
                datasets: [{
                    label: 'Completed Cases',
                    data: [2, 5, 8, 12, 18, 22, 25],
                    borderColor: '#10B981',
                    backgroundColor: 'rgba(16, 185, 129, 0.1)',
                    tension: 0.4,
                    fill: true,
                    pointBackgroundColor: '#10B981',
                    pointBorderColor: '#111827',
                    pointBorderWidth: 2,
                    pointRadius: 5,
                    pointHoverRadius: 7
                }]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                plugins: {
                    legend: {
                        display: false
                    }
                },
                scales: {
                    x: {
                        grid: {
                            color: 'rgba(55, 65, 81, 0.5)'
                        },
                        ticks: {
                            color: '#9CA3AF'
                        }
                    },
                    y: {
                        grid: {
                            color: 'rgba(55, 65, 81, 0.5)'
                        },
                        ticks: {
                            color: '#9CA3AF'
                        }
                    }
                }
            }
        });
    </script>
</body>
</html>