File size: 40,575 Bytes
3dba8af 8e5def3 3dba8af 8e5def3 3dba8af 8e5def3 | 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 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modern Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: ['class'],
theme: {
container: {
center: true,
},
extend: {
colors: {
background: 'hsl(0, 0%, 100%)',
foreground: 'hsl(222.2, 84%, 4.9%)',
card: {
DEFAULT: 'hsl(0, 0%, 100%)',
foreground: 'hsl(222.2, 84%, 4.9%)',
},
popover: {
DEFAULT: 'hsl(0, 0%, 100%)',
foreground: 'hsl(222.2, 84%, 4.9%)',
},
primary: {
DEFAULT: 'hsl(221.2, 83.2%, 53.3%)',
foreground: 'hsl(210, 40%, 98%)',
},
secondary: {
DEFAULT: 'hsl(210, 40%, 96.1%)',
foreground: 'hsl(222.2, 47.4%, 11.2%)',
},
muted: {
DEFAULT: 'hsl(210, 40%, 96.1%)',
foreground: 'hsl(215.4, 16.3%, 46.9%)',
},
accent: {
DEFAULT: 'hsl(210, 40%, 96.1%)',
foreground: 'hsl(222.2, 47.4%, 11.2%)',
},
destructive: {
DEFAULT: 'hsl(0, 84.2%, 60.2%)',
foreground: 'hsl(210, 40%, 98%)',
},
border: 'hsl(214.3, 31.8%, 91.4%)',
input: 'hsl(214.3, 31.8%, 91.4%)',
ring: 'hsl(221.2, 83.2%, 53.3%)',
chart: {
1: 'hsl(221.2, 83.2%, 53.3%)',
2: 'hsl(142.1, 76.2%, 36.3%)',
3: 'hsl(346.8, 77.2%, 49.8%)',
4: 'hsl(258.3, 89.5%, 66.3%)',
5: 'hsl(47.9, 95.8%, 61.8%)',
},
sidebar: {
DEFAULT: 'hsl(210, 40%, 98%)',
foreground: 'hsl(222.2, 47.4%, 11.2%)',
primary: 'hsl(221.2, 83.2%, 53.3%)',
'primary-foreground': 'hsl(210, 40%, 98%)',
accent: 'hsl(210, 40%, 96.1%)',
'accent-foreground': 'hsl(222.2, 47.4%, 11.2%)',
border: 'hsl(214.3, 31.8%, 91.4%)',
ring: 'hsl(221.2, 83.2%, 53.3%)',
},
},
borderRadius: {
lg: '0.5rem',
md: 'calc(0.5rem - 2px)',
sm: 'calc(0.5rem - 4px)',
},
keyframes: {
'accordion-down': {
from: { height: '0' },
to: { height: 'var(--radix-accordion-content-height)' },
},
'accordion-up': {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: '0' },
},
},
animation: {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
},
},
},
plugins: [],
}
</script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
}
.chart-bar {
transition: height 0.5s ease;
}
.sidebar-item:hover .sidebar-icon {
transform: translateX(3px);
}
.sidebar-icon {
transition: transform 0.2s ease;
}
.dark .dark\:bg-background {
background-color: hsl(222.2, 84%, 4.9%);
}
.dark .dark\:text-foreground {
color: hsl(210, 40%, 98%);
}
.dark .dark\:bg-card {
background-color: hsl(222.2, 47.4%, 11.2%);
}
.dark .dark\:text-card-foreground {
color: hsl(210, 40%, 98%);
}
.dark .dark\:border-border {
border-color: hsl(217.2, 32.6%, 17.5%);
}
</style>
</head>
<body class="bg-background text-foreground min-h-screen flex">
<!-- Sidebar -->
<div class="sidebar-background hidden md:flex flex-col w-64 border-r border-sidebar-border bg-sidebar text-sidebar-foreground">
<div class="p-4 flex items-center justify-between border-b border-sidebar-border">
<div class="flex items-center space-x-2">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-sidebar-primary">
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
<polyline points="9 22 9 12 15 12 15 22"></polyline>
</svg>
<span class="font-semibold text-lg">Dashboard</span>
</div>
<button class="p-1 rounded-full hover:bg-sidebar-accent">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="12" cy="5" r="1"></circle>
<circle cx="12" cy="19" r="1"></circle>
</svg>
</button>
</div>
<nav class="flex-1 p-4 space-y-1">
<a href="#" class="sidebar-item flex items-center space-x-3 px-3 py-2 rounded-lg bg-sidebar-primary text-sidebar-primary-foreground">
<span class="sidebar-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
<polyline points="9 22 9 12 15 12 15 22"></polyline>
</svg>
</span>
<span>Overview</span>
</a>
<a href="#" class="sidebar-item flex items-center space-x-3 px-3 py-2 rounded-lg hover:bg-sidebar-accent hover:text-sidebar-accent-foreground">
<span class="sidebar-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="2" y="4" width="20" height="16" rx="2"></rect>
<path d="M2 10h20M7 14h3m4 0h1"></path>
</svg>
</span>
<span>Analytics</span>
</a>
<a href="#" class="sidebar-item flex items-center space-x-3 px-3 py-2 rounded-lg hover:bg-sidebar-accent hover:text-sidebar-accent-foreground">
<span class="sidebar-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
</svg>
</span>
<span>Products</span>
</a>
<a href="#" class="sidebar-item flex items-center space-x-3 px-3 py-2 rounded-lg hover:bg-sidebar-accent hover:text-sidebar-accent-foreground">
<span class="sidebar-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
<circle cx="9" cy="7" r="4"></circle>
<path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
</svg>
</span>
<span>Customers</span>
</a>
<a href="#" class="sidebar-item flex items-center space-x-3 px-3 py-2 rounded-lg hover:bg-sidebar-accent hover:text-sidebar-accent-foreground">
<span class="sidebar-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M22 12h-4l-3 9L9 3l-3 9H2"></path>
</svg>
</span>
<span>Reports</span>
</a>
<a href="#" class="sidebar-item flex items-center space-x-3 px-3 py-2 rounded-lg hover:bg-sidebar-accent hover:text-sidebar-accent-foreground">
<span class="sidebar-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="3"></circle>
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>
</svg>
</span>
<span>Settings</span>
</a>
</nav>
<div class="p-4 border-t border-sidebar-border">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full bg-sidebar-primary flex items-center justify-center text-sidebar-primary-foreground">
<span>JD</span>
</div>
<div class="flex-1">
<div class="font-medium">John Doe</div>
<div class="text-sm text-muted-foreground">Admin</div>
</div>
<button class="p-1 rounded-full hover:bg-sidebar-accent">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path>
<path d="M13.73 21a2 2 0 0 1-3.46 0"></path>
</svg>
</button>
</div>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Mobile Header -->
<header class="md:hidden flex items-center justify-between p-4 border-b border-border bg-card">
<button class="p-2 rounded-md hover:bg-accent">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="3" y1="12" x2="21" y2="12"></line>
<line x1="3" y1="6" x2="21" y2="6"></line>
<line x1="3" y1="18" x2="21" y2="18"></line>
</svg>
</button>
<div class="font-semibold">Dashboard</div>
<div class="w-8"></div>
</header>
<!-- Desktop Header -->
<header class="hidden md:flex items-center justify-between p-4 border-b border-border bg-card">
<h1 class="text-2xl font-semibold">Dashboard Overview</h1>
<div class="flex items-center space-x-4">
<div class="relative">
<input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="absolute left-3 top-2.5 text-muted-foreground">
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg>
</div>
<button class="p-2 rounded-full hover:bg-accent">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path>
<path d="M13.73 21a2 2 0 0 1-3.46 0"></path>
</svg>
</button>
<button class="p-2 rounded-full hover:bg-accent">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>
</svg>
</button>
</div>
</header>
<!-- Main Content Area -->
<main class="flex-1 overflow-y-auto p-4 md:p-6 bg-background">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
<div class="bg-card border border-border rounded-lg p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-muted-foreground">Total Revenue</p>
<h3 class="text-2xl font-semibold">$45,231</h3>
<p class="text-sm text-green-500 mt-1">+20.1% from last month</p>
</div>
<div class="p-3 rounded-lg bg-primary/10 text-primary">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>
</svg>
</div>
</div>
</div>
<div class="bg-card border border-border rounded-lg p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-muted-foreground">Subscriptions</p>
<h3 class="text-2xl font-semibold">+2,350</h3>
<p class="text-sm text-green-500 mt-1">+15.8% from last month</p>
</div>
<div class="p-3 rounded-lg bg-primary/10 text-primary">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
<circle cx="9" cy="7" r="4"></circle>
<path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
</svg>
</div>
</div>
</div>
<div class="bg-card border border-border rounded-lg p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-muted-foreground">Sales</p>
<h3 class="text-2xl font-semibold">+12,234</h3>
<p class="text-sm text-green-500 mt-1">+8.5% from last month</p>
</div>
<div class="p-3 rounded-lg bg-primary/10 text-primary">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="2" y="3" width="20" height="14" rx="2"></rect>
<line x1="8" y1="21" x2="16" y2="21"></line>
<line x1="12" y1="17" x2="12" y2="21"></line>
</svg>
</div>
</div>
</div>
<div class="bg-card border border-border rounded-lg p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-muted-foreground">Active Now</p>
<h3 class="text-2xl font-semibold">+573</h3>
<p class="text-sm text-red-500 mt-1">-2.3% from last hour</p>
</div>
<div class="p-3 rounded-lg bg-primary/10 text-primary">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M22 12h-4l-3 9L9 3l-3 9H2"></path>
</svg>
</div>
</div>
</div>
</div>
<!-- Charts Section -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
<!-- Main Chart -->
<div class="bg-card border border-border rounded-lg p-6 lg:col-span-2">
<div class="flex items-center justify-between mb-6">
<h2 class="text-lg font-semibold">Revenue Overview</h2>
<div class="flex items-center space-x-2">
<button class="px-3 py-1 text-xs rounded-full bg-accent text-accent-foreground">Month</button>
<button class="px-3 py-1 text-xs rounded-full hover:bg-accent">Quarter</button>
<button class="px-3 py-1 text-xs rounded-full hover:bg-accent">Year</button>
</div>
</div>
<div class="h-64">
<div class="flex items-end h-48 space-x-1">
<div class="flex-1 flex flex-col items-center">
<div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 80%"></div>
<span class="text-xs text-muted-foreground mt-1">Jan</span>
</div>
<div class="flex-1 flex flex-col items-center">
<div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 65%"></div>
<span class="text-xs text-muted-foreground mt-1">Feb</span>
</div>
<div class="flex-1 flex flex-col items-center">
<div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 72%"></div>
<span class="text-xs text-muted-foreground mt-1">Mar</span>
</div>
<div class="flex-1 flex flex-col items-center">
<div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 88%"></div>
<span class="text-xs text-muted-foreground mt-1">Apr</span>
</div>
<div class="flex-1 flex flex-col items-center">
<div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 95%"></div>
<span class="text-xs text-muted-foreground mt-1">May</span>
</div>
<div class="flex-1 flex flex-col items-center">
<div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 75%"></div>
<span class="text-xs text-muted-foreground mt-1">Jun</span>
</div>
<div class="flex-1 flex flex-col items-center">
<div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 82%"></div>
<span class="text-xs text-muted-foreground mt-1">Jul</span>
</div>
<div class="flex-1 flex flex-col items-center">
<div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 90%"></div>
<span class="text-xs text-muted-foreground mt-1">Aug</span>
</div>
<div class="flex-1 flex flex-col items-center">
<div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 70%"></div>
<span class="text-xs text-muted-foreground mt-1">Sep</span>
</div>
<div class="flex-1 flex flex-col items-center">
<div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 85%"></div>
<span class="text-xs text-muted-foreground mt-1">Oct</span>
</div>
<div class="flex-1 flex flex-col items-center">
<div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 92%"></div>
<span class="text-xs text-muted-foreground mt-1">Nov</span>
</div>
<div class="flex-1 flex flex-col items-center">
<div class="chart-bar bg-chart-1 w-full rounded-t-sm" style="height: 98%"></div>
<span class="text-xs text-muted-foreground mt-1">Dec</span>
</div>
</div>
</div>
</div>
<!-- Pie Chart -->
<div class="bg-card border border-border rounded-lg p-6">
<h2 class="text-lg font-semibold mb-6">Sales by Category</h2>
<div class="flex justify-center">
<div class="relative w-40 h-40">
<svg viewBox="0 0 100 100" class="w-full h-full">
<circle cx="50" cy="50" r="45" fill="none" stroke="hsl(214.3, 31.8%, 91.4%)" stroke-width="10"></circle>
<circle cx="50" cy="50" r="45" fill="none" stroke="hsl(var(--chart-1))" stroke-width="10" stroke-dasharray="70 100" stroke-dashoffset="25" transform="rotate(-90 50 50)"></circle>
<circle cx="50" cy="50" r="45" fill="none" stroke="hsl(var(--chart-2))" stroke-width="10" stroke-dasharray="30 100" stroke-dashoffset="95" transform="rotate(-90 50 50)"></circle>
<circle cx="50" cy="50" r="45" fill="none" stroke="hsl(var(--chart-3))" stroke-width="10" stroke-dasharray="20 100" stroke-dashoffset="125" transform="rotate(-90 50 50)"></circle>
<circle cx="50" cy="50" r="45" fill="none" stroke="hsl(var(--chart-4))" stroke-width="10" stroke-dasharray="15 100" stroke-dashoffset="145" transform="rotate(-90 50 50)"></circle>
<circle cx="50" cy="50" r="45" fill="none" stroke="hsl(var(--chart-5))" stroke-width="10" stroke-dasharray="15 100" stroke-dashoffset="160" transform="rotate(-90 50 50)"></circle>
</svg>
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center">
<div class="text-2xl font-semibold">1,234</div>
<div class="text-xs text-muted-foreground">Total Sales</div>
</div>
</div>
</div>
</div>
<div class="mt-6 space-y-3">
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-chart-1 mr-2"></div>
<span class="text-sm">Electronics</span>
</div>
<span class="text-sm font-medium">56%</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-chart-2 mr-2"></div>
<span class="text-sm">Clothing</span>
</div>
<span class="text-sm font-medium">24%</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-chart-3 mr-2"></div>
<span class="text-sm">Home</span>
</div>
<span class="text-sm font-medium">16%</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-chart-4 mr-2"></div>
<span class="text-sm">Beauty</span>
</div>
<span class="text-sm font-medium">12%</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-chart-5 mr-2"></div>
<span class="text-sm">Other</span>
</div>
<span class="text-sm font-medium">8%</span>
</div>
</div>
</div>
</div>
<!-- Recent Sales Table -->
<div class="bg-card border border-border rounded-lg p-6">
<div class="flex items-center justify-between mb-6">
<h2 class="text-lg font-semibold">Recent Sales</h2>
<button class="px-3 py-1 text-sm rounded-md border border-border hover:bg-accent">View All</button>
</div>
<div class="overflow-x-auto">
<table class="w-full">
<thead>
<tr class="text-left text-sm text-muted-foreground border-b border-border">
<th class="pb-3 px-4">Customer</th>
<th class="pb-3 px-4">Email</th>
<th class="pb-3 px-4">Amount</th>
<th class="pb-3 px-4">Date</th>
<th class="pb-3 px-4">Status</th>
<th class="pb-3 px-4"></th>
</tr>
</thead>
<tbody class="divide-y divide-border">
<tr>
<td class="py-4 px-4">
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center mr-3">
<span>JD</span>
</div>
<span>John Doe</span>
</div>
</td>
<td class="py-4 px-4 text-sm text-muted-foreground">john@example.com</td>
<td class="py-4 px-4 font-medium">$249.99</td>
<td class="py-4 px-4 text-sm text-muted-foreground">2023-12-15</td>
<td class="py-4 px-4">
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Completed</span>
</td>
<td class="py-4 px-4">
<button class="p-1 rounded-md hover:bg-accent">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="12" cy="5" r="1"></circle>
<circle cx="12" cy="19" r="1"></circle>
</svg>
</button>
</td>
</tr>
<tr>
<td class="py-4 px-4">
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center mr-3">
<span>AS</span>
</div>
<span>Alice Smith</span>
</div>
</td>
<td class="py-4 px-4 text-sm text-muted-foreground">alice@example.com</td>
<td class="py-4 px-4 font-medium">$149.99</td>
<td class="py-4 px-4 text-sm text-muted-foreground">2023-12-14</td>
<td class="py-4 px-4">
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Completed</span>
</td>
<td class="py-4 px-4">
<button class="p-1 rounded-md hover:bg-accent">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="12" cy="5" r="1"></circle>
<circle cx="12" cy="19" r="1"></circle>
</svg>
</button>
</td>
</tr>
<tr>
<td class="py-4 px-4">
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center mr-3">
<span>BJ</span>
</div>
<span>Bob Johnson</span>
</div>
</td>
<td class="py-4 px-4 text-sm text-muted-foreground">bob@example.com</td>
<td class="py-4 px-4 font-medium">$349.99</td>
<td class="py-4 px-4 text-sm text-muted-foreground">2023-12-13</td>
<td class="py-4 px-4">
<span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Pending</span>
</td>
<td class="py-4 px-4">
<button class="p-1 rounded-md hover:bg-accent">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="12" cy="5" r="1"></circle>
<circle cx="12" cy="19" r="1"></circle>
</svg>
</button>
</td>
</tr>
<tr>
<td class="py-4 px-4">
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center mr-3">
<span>SB</span>
</div>
<span>Sara Brown</span>
</div>
</td>
<td class="py-4 px-4 text-sm text-muted-foreground">sara@example.com</td>
<td class="py-4 px-4 font-medium">$199.99</td>
<td class="py-4 px-4 text-sm text-muted-foreground">2023-12-12</td>
<td class="py-4 px-4">
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Completed</span>
</td>
<td class="py-4 px-4">
<button class="p-1 rounded-md hover:bg-accent">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="12" cy="5" r="1"></circle>
<circle cx="12" cy="19" r="1"></circle>
</svg>
</button>
</td>
</tr>
<tr>
<td class="py-4 px-4">
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center mr-3">
<span>MW</span>
</div>
<span>Mike Wilson</span>
</div>
</td>
<td class="py-4 px-4 text-sm text-muted-foreground">mike@example.com</td>
<td class="py-4 px-4 font-medium">$299.99</td>
<td class="py-4 px-4 text-sm text-muted-foreground">2023-12-11</td>
<td class="py-4 px-4">
<span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">Failed</span>
</td>
<td class="py-4 px-4">
<button class="p-1 rounded-md hover:bg-accent">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="12" cy="5" r="1"></circle>
<circle cx="12" cy="19" r="1"></circle>
</svg>
</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</main>
</div>
<script>
// Toggle dark mode
function toggleDarkMode() {
document.documentElement.classList.toggle('dark');
}
// Mobile menu toggle
document.querySelector('[aria-label="Toggle mobile menu"]').addEventListener('click', function() {
document.querySelector('.sidebar-background').classList.toggle('hidden');
});
// Chart animation
document.addEventListener('DOMContentLoaded', function() {
const bars = document.querySelectorAll('.chart-bar');
bars.forEach(bar => {
const height = bar.style.height;
bar.style.height = '0';
setTimeout(() => {
bar.style.height = height;
}, 100);
});
});
</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=aking96/aimsc" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |