File size: 26,642 Bytes
4960f2e | 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 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interactive Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
/* Custom CSS for animations and effects */
.card-hover:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.gradient-bg {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.progress-ring__circle {
transition: stroke-dashoffset 0.5s;
transform: rotate(-90deg);
transform-origin: 50% 50%;
}
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
100% { transform: translateY(0px); }
}
.floating {
animation: float 3s ease-in-out infinite;
}
</style>
</head>
<body class="bg-gray-100 font-sans">
<div class="min-h-screen flex flex-col">
<!-- Header -->
<header class="gradient-bg text-white shadow-lg">
<div class="container mx-auto px-4 py-6 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fas fa-rocket text-2xl"></i>
<h1 class="text-2xl font-bold">NexusDash</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<i class="fas fa-bell text-xl cursor-pointer"></i>
<span class="absolute -top-1 -right-1 h-3 w-3 bg-red-500 rounded-full"></span>
</div>
<div class="flex items-center space-x-2">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="h-8 w-8 rounded-full">
<span class="font-medium">Sarah Johnson</span>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="flex-1 container mx-auto px-4 py-8">
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6">
<!-- Sidebar -->
<aside class="lg:col-span-1 bg-white rounded-xl shadow-md p-6 h-fit sticky top-8">
<nav>
<ul class="space-y-3">
<li>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg bg-indigo-50 text-indigo-700 font-medium">
<i class="fas fa-home"></i>
<span>Dashboard</span>
</a>
</li>
<li>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-100 text-gray-700">
<i class="fas fa-chart-line"></i>
<span>Analytics</span>
</a>
</li>
<li>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-100 text-gray-700">
<i class="fas fa-envelope"></i>
<span>Messages</span>
<span class="ml-auto bg-indigo-500 text-white text-xs px-2 py-1 rounded-full">12</span>
</a>
</li>
<li>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-100 text-gray-700">
<i class="fas fa-calendar"></i>
<span>Calendar</span>
</a>
</li>
<li>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-100 text-gray-700">
<i class="fas fa-cog"></i>
<span>Settings</span>
</a>
</li>
</ul>
</nav>
<div class="mt-8">
<h3 class="text-sm font-semibold text-gray-500 uppercase tracking-wider">Teams</h3>
<ul class="mt-3 space-y-2">
<li class="flex items-center">
<span class="h-2 w-2 bg-green-500 rounded-full mr-2"></span>
<span class="text-gray-700">Development</span>
</li>
<li class="flex items-center">
<span class="h-2 w-2 bg-blue-500 rounded-full mr-2"></span>
<span class="text-gray-700">Design</span>
</li>
<li class="flex items-center">
<span class="h-2 w-2 bg-purple-500 rounded-full mr-2"></span>
<span class="text-gray-700">Marketing</span>
</li>
</ul>
</div>
</aside>
<!-- Main Dashboard -->
<div class="lg:col-span-3 space-y-6">
<!-- Welcome Card -->
<div class="gradient-bg text-white rounded-xl shadow-lg p-6 relative overflow-hidden">
<div class="absolute -right-10 -top-10 h-32 w-32 bg-white bg-opacity-10 rounded-full"></div>
<div class="absolute right-0 bottom-0 h-20 w-20 bg-white bg-opacity-10 rounded-full"></div>
<div class="relative z-10">
<h2 class="text-2xl font-bold mb-2">Welcome back, Sarah!</h2>
<p class="mb-6 opacity-90">Here's what's happening with your projects today.</p>
<button class="bg-white text-indigo-700 px-4 py-2 rounded-lg font-medium hover:bg-opacity-90 transition">
View Reports
</button>
</div>
<div class="absolute right-10 bottom-0 floating">
<i class="fas fa-chart-pie text-6xl opacity-20"></i>
</div>
</div>
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-white rounded-xl shadow-md p-6 card-hover transition">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500">Total Revenue</p>
<h3 class="text-2xl font-bold mt-1">$24,780</h3>
<p class="text-green-500 text-sm mt-2 flex items-center">
<i class="fas fa-arrow-up mr-1"></i> 12% from last month
</p>
</div>
<div class="bg-green-100 p-3 rounded-full">
<i class="fas fa-dollar-sign text-green-600"></i>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6 card-hover transition">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500">New Users</p>
<h3 class="text-2xl font-bold mt-1">1,245</h3>
<p class="text-blue-500 text-sm mt-2 flex items-center">
<i class="fas fa-arrow-up mr-1"></i> 8% from last month
</p>
</div>
<div class="bg-blue-100 p-3 rounded-full">
<i class="fas fa-users text-blue-600"></i>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6 card-hover transition">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500">Active Projects</p>
<h3 class="text-2xl font-bold mt-1">14</h3>
<p class="text-purple-500 text-sm mt-2 flex items-center">
<i class="fas fa-arrow-down mr-1"></i> 2% from last month
</p>
</div>
<div class="bg-purple-100 p-3 rounded-full">
<i class="fas fa-tasks text-purple-600"></i>
</div>
</div>
</div>
</div>
<!-- Projects Table -->
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="p-6 border-b border-gray-200 flex justify-between items-center">
<h3 class="text-lg font-semibold">Recent Projects</h3>
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
View All
</button>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Project</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Team</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Progress</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Due Date</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-indigo-100 rounded-full flex items-center justify-center">
<i class="fas fa-mobile-alt text-indigo-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Mobile App Redesign</div>
<div class="text-sm text-gray-500">UI/UX</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex -space-x-2">
<img class="h-8 w-8 rounded-full border-2 border-white" src="https://randomuser.me/api/portraits/men/32.jpg" alt="">
<img class="h-8 w-8 rounded-full border-2 border-white" src="https://randomuser.me/api/portraits/women/22.jpg" alt="">
<img class="h-8 w-8 rounded-full border-2 border-white" src="https://randomuser.me/api/portraits/men/45.jpg" alt="">
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-green-500 h-2 rounded-full" style="width: 75%"></div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 15, 2023</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center">
<i class="fas fa-globe text-blue-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Website Launch</div>
<div class="text-sm text-gray-500">Development</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex -space-x-2">
<img class="h-8 w-8 rounded-full border-2 border-white" src="https://randomuser.me/api/portraits/men/12.jpg" alt="">
<img class="h-8 w-8 rounded-full border-2 border-white" src="https://randomuser.me/api/portraits/women/33.jpg" alt="">
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-yellow-500 h-2 rounded-full" style="width: 45%"></div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jul 2, 2023</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-purple-100 rounded-full flex items-center justify-center">
<i class="fas fa-bullhorn text-purple-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Marketing Campaign</div>
<div class="text-sm text-gray-500">Marketing</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex -space-x-2">
<img class="h-8 w-8 rounded-full border-2 border-white" src="https://randomuser.me/api/portraits/women/44.jpg" alt="">
<img class="h-8 w-8 rounded-full border-2 border-white" src="https://randomuser.me/api/portraits/men/28.jpg" alt="">
<img class="h-8 w-8 rounded-full border-2 border-white" src="https://randomuser.me/api/portraits/women/15.jpg" alt="">
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Delayed</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-red-500 h-2 rounded-full" style="width: 30%"></div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">May 28, 2023</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Charts Section -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
<!-- Line Chart -->
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex justify-between items-center mb-6">
<h3 class="text-lg font-semibold">Revenue Overview</h3>
<select class="border border-gray-300 rounded-md px-3 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option>Last 7 days</option>
<option>Last 30 days</option>
<option selected>Last 90 days</option>
</select>
</div>
<div class="h-64">
<canvas id="lineChart"></canvas>
</div>
</div>
<!-- Doughnut Chart -->
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex justify-between items-center mb-6">
<h3 class="text-lg font-semibold">Traffic Sources</h3>
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
View Details
</button>
</div>
<div class="h-64">
<canvas id="doughnutChart"></canvas>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-white border-t border-gray-200 py-6">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="flex items-center space-x-2 mb-4 md:mb-0">
<i class="fas fa-rocket text-indigo-600"></i>
<span class="font-medium">NexusDash</span>
</div>
<div class="text-sm text-gray-500">
© 2023 NexusDash. All rights reserved.
</div>
<div class="flex space-x-4 mt-4 md:mt-0">
<a href="#" class="text-gray-500 hover:text-gray-700">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="text-gray-500 hover:text-gray-700">
<i class="fab fa-facebook"></i>
</a>
<a href="#" class="text-gray-500 hover:text-gray-700">
<i class="fab fa-linkedin"></i>
</a>
<a href="#" class="text-gray-500 hover:text-gray-700">
<i class="fab fa-github"></i>
</a>
</div>
</div>
</div>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
// Initialize charts
document.addEventListener('DOMContentLoaded', function() {
// Line Chart
const lineCtx = document.getElementById('lineChart').getContext('2d');
const lineChart = new Chart(lineCtx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
datasets: [{
label: 'Revenue',
data: [12000, 19000, 15000, 18000, 22000, 24000],
borderColor: '#667eea',
backgroundColor: 'rgba(102, 126, 234, 0.1)',
borderWidth: 2,
fill: true,
tension: 0.4
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: false,
grid: {
drawBorder: false
}
},
x: {
grid: {
display: false
}
}
}
}
});
// Doughnut Chart
const doughnutCtx = document.getElementById('doughnutChart').getContext('2d');
const doughnutChart = new Chart(doughnutCtx, {
type: 'doughnut',
data: {
labels: ['Direct', 'Organic', 'Referral', 'Social'],
datasets: [{
data: [35, 25, 20, 20],
backgroundColor: [
'#667eea',
'#764ba2',
'#ff9a9e',
'#fad0c4'
],
borderWidth: 0,
hoverOffset: 10
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
cutout: '70%',
plugins: {
legend: {
position: 'right',
}
}
}
});
// Floating animation for welcome card icon
const floatingIcon = document.querySelector('.floating');
floatingIcon.addEventListener('mouseenter', () => {
floatingIcon.style.animationPlayState = 'paused';
});
floatingIcon.addEventListener('mouseleave', () => {
floatingIcon.style.animationPlayState = 'running';
});
// Card hover effects
const cards = document.querySelectorAll('.card-hover');
cards.forEach(card => {
card.addEventListener('mouseenter', () => {
card.classList.add('shadow-lg');
});
card.addEventListener('mouseleave', () => {
card.classList.remove('shadow-lg');
});
});
});
</script>
<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=jkind/nexusdash" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |