caseflow-visualizer / index.html
fermiller's picture
Create me a cool visualization page for this data
3b8706b verified
Raw History Blame Contribute Delete
20.1 kB
<!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>