File size: 48,470 Bytes
207ea12 | 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 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 | <!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MyCommVault - Personal Data Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Inter', sans-serif;
}
.active-tab {
border-bottom: 3px solid #3b82f6;
color: #3b82f6;
font-weight: 600;
}
.incoming-call {
background-color: rgba(16, 185, 129, 0.1);
}
.outgoing-call {
background-color: rgba(59, 130, 246, 0.1);
}
.missed-call {
background-color: rgba(239, 68, 68, 0.1);
}
.message-preview {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
@media (max-width: 640px) {
.stat-card {
width: 100%;
}
}
</style>
</head>
<body class="bg-gray-900 text-gray-100 min-h-screen">
<div class="container mx-auto px-4 py-6">
<!-- Header -->
<header class="flex justify-between items-center mb-8">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8 text-blue-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4" />
</svg>
<h1 class="text-2xl font-bold ml-2">MyComm<span class="text-blue-500">Vault</span></h1>
</div>
<div class="flex items-center space-x-2">
<div class="relative">
<input type="email" id="gmail-account" placeholder="your.email@gmail.com" class="bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 w-64">
</div>
<button id="gmail-login" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" viewBox="0 0 24 24" fill="currentColor">
<path d="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z" />
</svg>
Connect Gmail
</button>
</div>
</header>
<!-- Navigation Tabs -->
<div class="border-b border-gray-700 mb-6">
<nav class="flex space-x-8 overflow-x-auto">
<button onclick="showSection('inbox')" id="inbox-tab" class="active-tab py-3 px-1 font-medium text-sm whitespace-nowrap">Inbox</button>
<button onclick="showSection('call-history')" id="call-history-tab" class="py-3 px-1 font-medium text-sm whitespace-nowrap text-gray-400 hover:text-gray-300">Call History</button>
<button onclick="showSection('messages')" id="messages-tab" class="py-3 px-1 font-medium text-sm whitespace-nowrap text-gray-400 hover:text-gray-300">Messages</button>
<button onclick="showSection('statistics')" id="statistics-tab" class="py-3 px-1 font-medium text-sm whitespace-nowrap text-gray-400 hover:text-gray-300">Statistics</button>
</nav>
</div>
<!-- Main Content -->
<main>
<!-- Inbox Section -->
<section id="inbox" class="section-content">
<div class="mb-4 flex flex-col md:flex-row md:items-center justify-between">
<h2 class="text-xl font-semibold mb-2 md:mb-0">Email Inbox</h2>
<div class="flex space-x-2">
<div class="relative">
<input type="text" placeholder="Search sender..." class="bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 pl-10 focus:outline-none focus:ring-2 focus:ring-blue-500 w-full md:w-64">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-500 absolute left-3 top-2.5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
</svg>
</div>
<select class="bg-gray-800 border border-gray-700 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
<option>All Dates</option>
<option>Today</option>
<option>Last 7 Days</option>
<option>This Month</option>
</select>
</div>
</div>
<div class="bg-gray-800 rounded-lg overflow-hidden border border-gray-700">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-700">
<thead class="bg-gray-750">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">From</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Subject</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Date</th>
</tr>
</thead>
<tbody class="bg-gray-800 divide-y divide-gray-700">
<tr class="hover:bg-gray-750 cursor-pointer">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-500 flex items-center justify-center text-white font-semibold">JD</div>
<div class="ml-4">
<div class="text-sm font-medium">John Doe</div>
<div class="text-sm text-gray-400">john.doe@example.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium">Meeting tomorrow at 10 AM</div>
<div class="text-sm text-gray-400">Hi there, let's discuss the project progress...</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">Today, 09:42 AM</td>
</tr>
<tr class="hover:bg-gray-750 cursor-pointer">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-500 flex items-center justify-center text-white font-semibold">AS</div>
<div class="ml-4">
<div class="text-sm font-medium">Amazon Shopping</div>
<div class="text-sm text-gray-400">no-reply@amazon.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium">Your Amazon order #12345 has shipped</div>
<div class="text-sm text-gray-400">Your recent order is on its way...</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">Yesterday, 3:15 PM</td>
</tr>
<tr class="hover:bg-gray-750 cursor-pointer">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-purple-500 flex items-center justify-center text-white font-semibold">LI</div>
<div class="ml-4">
<div class="text-sm font-medium">LinkedIn</div>
<div class="text-sm text-gray-400">news@linkedin.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium">5 new connection requests</div>
<div class="text-sm text-gray-400">You have 5 new connection requests waiting...</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">Mar 12, 2023</td>
</tr>
<tr class="hover:bg-gray-750 cursor-pointer">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-yellow-500 flex items-center justify-center text-white font-semibold">TW</div>
<div class="ml-4">
<div class="text-sm font-medium">Twitter</div>
<div class="text-sm text-gray-400">info@twitter.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium">Your weekly Twitter digest</div>
<div class="text-sm text-gray-400">Here's what you missed on Twitter this week...</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">Mar 10, 2023</td>
</tr>
<tr class="hover:bg-gray-750 cursor-pointer">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-red-500 flex items-center justify-center text-white font-semibold">YT</div>
<div class="ml-4">
<div class="text-sm font-medium">YouTube</div>
<div class="text-sm text-gray-400">no-reply@youtube.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium">New videos from channels you follow</div>
<div class="text-sm text-gray-400">Check out these new uploads from your subscriptions...</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">Mar 8, 2023</td>
</tr>
<tr class="hover:bg-gray-750 cursor-pointer">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-indigo-500 flex items-center justify-center text-white font-semibold">GS</div>
<div class="ml-4">
<div class="text-sm font-medium">GitHub Support</div>
<div class="text-sm text-gray-400">support@github.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium">Your repository access has been updated</div>
<div class="text-sm text-gray-400">You've been granted write access to the project repository...</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">Mar 7, 2023</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<!-- Call History Section -->
<section id="call-history" class="section-content hidden">
<div class="mb-4 flex flex-col md:flex-row md:items-center justify-between">
<h2 class="text-xl font-semibold mb-2 md:mb-0">Call History</h2>
<div class="flex space-x-2">
<div class="relative">
<input type="text" placeholder="Search contacts..." class="bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 pl-10 focus:outline-none focus:ring-2 focus:ring-blue-500 w-full md:w-64">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-500 absolute left-3 top-2.5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
</svg>
</div>
<select class="bg-gray-800 border border-gray-700 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
<option>All Calls</option>
<option>Incoming</option>
<option>Outgoing</option>
<option>Missed</option>
</select>
</div>
</div>
<div class="bg-gray-800 rounded-lg overflow-hidden border border-gray-700">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-700">
<thead class="bg-gray-750">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Type</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Contact</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Date/Time</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Duration</th>
</tr>
</thead>
<tbody class="bg-gray-800 divide-y divide-gray-700">
<tr class="incoming-call hover:bg-gray-750 cursor-pointer">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-green-500 mr-2" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd" />
</svg>
<span class="text-sm">Incoming</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-500 flex items-center justify-center text-white font-semibold">JD</div>
<div class="ml-4">
<div class="text-sm font-medium">John Doe</div>
<div class="text-sm text-gray-400">+1 (555) 123-4567</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">Today, 11:23 AM</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">5:32</td>
</tr>
<tr class="outgoing-call hover:bg-gray-750 cursor-pointer">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-blue-500 mr-2" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z" clip-rule="evenodd" />
</svg>
<span class="text-sm">Outgoing</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-purple-500 flex items-center justify-center text-white font-semibold">MS</div>
<div class="ml-4">
<div class="text-sm font-medium">Mom</div>
<div class="text-sm text-gray-400">+1 (555) 987-6543</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">Today, 09:15 AM</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">12:45</td>
</tr>
<tr class="missed-call hover:bg-gray-750 cursor-pointer">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-red-500 mr-2" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd" />
</svg>
<span class="text-sm">Missed</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-500 flex items-center justify-center text-white font-semibold">WB</div>
<div class="ml-4">
<div class="text-sm font-medium">Work Boss</div>
<div class="text-sm text-gray-400">+1 (555) 789-0123</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">Yesterday, 4:30 PM</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">--</td>
</tr>
<tr class="incoming-call hover:bg-gray-750 cursor-pointer">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-green-500 mr-2" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd" />
</svg>
<span class="text-sm">Incoming</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-yellow-500 flex items-center justify-center text-white font-semibold">DS</div>
<div class="ml-4">
<div class="text-sm font-medium">Dr. Smith</div>
<div class="text-sm text-gray-400">+1 (555) 456-7890</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">Yesterday, 2:15 PM</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">8:12</td>
</tr>
<tr class="outgoing-call hover:bg-gray-750 cursor-pointer">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-blue-500 mr-2" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z" clip-rule="evenodd" />
</svg>
<span class="text-sm">Outgoing</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-red-500 flex items-center justify-center text-white font-semibold">PS</div>
<div class="ml-4">
<div class="text-sm font-medium">Pizza Shop</div>
<div class="text-sm text-gray-400">+1 (555) 321-6547</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">Mar 12, 2023, 6:45 PM</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">3:21</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<!-- Messages Section -->
<section id="messages" class="section-content hidden">
<div class="mb-4 flex flex-col md:flex-row md:items-center justify-between">
<h2 class="text-xl font-semibold mb-2 md:mb-0">Text Messages</h2>
<div class="flex space-x-2">
<div class="relative">
<input type="text" placeholder="Search messages..." class="bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 pl-10 focus:outline-none focus:ring-2 focus:ring-blue-500 w-full md:w-64">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-500 absolute left-3 top-2.5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
</svg>
</div>
<select class="bg-gray-800 border border-gray-700 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
<option>All Messages</option>
<option>Today</option>
<option>Last 7 Days</option>
<option>Unread</option>
</select>
</div>
</div>
<div class="bg-gray-800 rounded-lg overflow-hidden border border-gray-700">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-700">
<thead class="bg-gray-750">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Contact</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Message Preview</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Date/Time</th>
</tr>
</thead>
<tbody class="bg-gray-800 divide-y divide-gray-700">
<tr class="hover:bg-gray-750 cursor-pointer">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-500 flex items-center justify-center text-white font-semibold">JD</div>
<div class="ml-4">
<div class="text-sm font-medium">John Doe</div>
<div class="text-sm text-gray-400">+1 (555) 123-4567</div>
</div>
</div>
</td>
<td class="px-6 py-4">
<div class="text-sm font-medium">Meeting at 2 PM tomorrow</div>
<div class="text-sm text-gray-400 message-preview">Hey, just confirming our meeting tomorrow at the coffee shop. I'll bring the project documents we discussed last week.</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">Today, 1:15 PM</td>
</tr>
<tr class="hover:bg-gray-750 cursor-pointer">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-500 flex items-center justify-center text-white font-semibold">AM</div>
<div class="ml-4">
<div class="text-sm font-medium">Amazon</div>
<div class="text-sm text-gray-400">AMAZON</div>
</div>
</div>
</td>
<td class="px-6 py-4">
<div class="text-sm font-medium">Your package is out for delivery</div>
<div class="text-sm text-gray-400 message-preview">Your Amazon package #12345 is out for delivery today. Track your package: https://amzn.com/track/12345</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">Today, 9:30 AM</td>
</tr>
<tr class="hover:bg-gray-750 cursor-pointer">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-purple-500 flex items-center justify-center text-white font-semibold">MS</div>
<div class="ml-4">
<div class="text-sm font-medium">Mom</div>
<div class="text-sm text-gray-400">+1 (555) 987-6543</div>
</div>
</div>
</td>
<td class="px-6 py-4">
<div class="text-sm font-medium">Family dinner this weekend</div>
<div class="text-sm text-gray-400 message-preview">Hi honey! Just reminding you about family dinner this Sunday at 6 PM. Your aunt and uncle will be joining us too.</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">Yesterday, 7:45 PM</td>
</tr>
<tr class="hover:bg-gray-750 cursor-pointer">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-yellow-500 flex items-center justify-center text-white font-semibold">UB</div>
<div class="ml-4">
<div class="text-sm font-medium">Uber</div>
<div class="text-sm text-gray-400">UBER</div>
</div>
</div>
</td>
<td class="px-6 py-4">
<div class="text-sm font-medium">Your ride receipt</div>
<div class="text-sm text-gray-400 message-preview">Thanks for riding with Uber. Your trip on Mar 12 cost $14.25. View receipt: https://uber.com/receipt/12345</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">Mar 12, 2023, 8:30 PM</td>
</tr>
<tr class="hover:bg-gray-750 cursor-pointer">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-red-500 flex items-center justify-center text-white font-semibold">WB</div>
<div class="ml-4">
<div class="text-sm font-medium">Work Boss</div>
<div class="text-sm text-gray-400">+1 (555) 789-0123</div>
</div>
</div>
</td>
<td class="px-6 py-4">
<div class="text-sm font-medium">Project deadline moved</div>
<div class="text-sm text-gray-400 message-preview">Important: The deadline for the current project has been moved to next Friday. Please adjust your schedule accordingly.</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">Mar 10, 2023, 4:20 PM</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<!-- Statistics Section -->
<section id="statistics" class="section-content hidden">
<h2 class="text-xl font-semibold mb-6">Communication Statistics</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
<div class="bg-gray-800 p-6 rounded-lg border border-gray-700">
<h3 class="text-lg font-medium mb-4">Emails Received (Last 10 Days)</h3>
<canvas id="emailChart" height="250"></canvas>
</div>
<div class="bg-gray-800 p-6 rounded-lg border border-gray-700">
<h3 class="text-lg font-medium mb-4">Call Duration (Last 10 Days)</h3>
<canvas id="callChart" height="250"></canvas>
</div>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
<div class="stat-card bg-gray-800 p-4 rounded-lg border border-gray-700">
<div class="flex items-center">
<div class="p-3 rounded-full bg-blue-500/10 mr-4">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-blue-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
</svg>
</div>
<div>
<p class="text-sm text-gray-400">Emails Today</p>
<p class="text-2xl font-semibold">24</p>
</div>
</div>
</div>
<div class="stat-card bg-gray-800 p-4 rounded-lg border border-gray-700">
<div class="flex items-center">
<div class="p-3 rounded-full bg-green-500/10 mr-4">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-green-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z" />
</svg>
</div>
<div>
<p class="text-sm text-gray-400">Call Time Today</p>
<p class="text-2xl font-semibold">38 min</p>
</div>
</div>
</div>
<div class="stat-card bg-gray-800 p-4 rounded-lg border border-gray-700">
<div class="flex items-center">
<div class="p-3 rounded-full bg-purple-500/10 mr-4">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-purple-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z" />
</svg>
</div>
<div>
<p class="text-sm text-gray-400">Messages Today</p>
<p class="text-2xl font-semibold">12</p>
</div>
</div>
</div>
<div class="stat-card bg-gray-800 p-4 rounded-lg border border-gray-700">
<div class="flex items-center">
<div class="p-3 rounded-full bg-yellow-500/10 mr-4">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-yellow-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
</div>
<div>
<p class="text-sm text-gray-400">Avg. Response Time</p>
<p class="text-2xl font-semibold">2.4 hrs</p>
</div>
</div>
</div>
</div>
</section>
</main>
</div>
<script>
// Tab switching functionality
function showSection(sectionId) {
// Hide all sections
document.querySelectorAll('.section-content').forEach(section => {
section.classList.add('hidden');
});
// Remove active class from all tabs
document.querySelectorAll('nav button').forEach(tab => {
tab.classList.remove('active-tab');
tab.classList.add('text-gray-400', 'hover:text-gray-300');
});
// Show selected section
document.getElementById(sectionId).classList.remove('hidden');
// Add active class to selected tab
document.getElementById(`${sectionId}-tab`).classList.add('active-tab');
document.getElementById(`${sectionId}-tab`).classList.remove('text-gray-400', 'hover:text-gray-300');
// If showing statistics, render charts
if (sectionId === 'statistics') {
renderCharts();
}
}
// Mock Gmail API connection
document.getElementById('gmail-login').addEventListener('click', function() {
this.innerHTML = `
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 animate-spin" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6" />
</svg>
Connecting...
`;
setTimeout(() => {
this.innerHTML = `
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 text-green-500" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd" />
</svg>
Gmail Connected
`;
this.classList.remove('bg-blue-600', 'hover:bg-blue-700');
this.classList.add('bg-green-600', 'hover:bg-green-700');
// Simulate fetching emails
const email = document.getElementById('gmail-account').value || 'your Gmail account';
setTimeout(() => {
alert(`Successfully fetched 24 emails from ${email}`);
}, 500);
}, 2000);
});
// Render charts for statistics section
function renderCharts() {
// Email Chart
const emailCtx = document.getElementById('emailChart').getContext('2d');
const emailChart = new Chart(emailCtx, {
type: 'bar',
data: {
labels: ['Mar 3', 'Mar 4', 'Mar 5', 'Mar 6', 'Mar 7', 'Mar 8', 'Mar 9', 'Mar 10', 'Mar 11', 'Mar 12'],
datasets: [{
label: 'Emails Received',
data: [12, 19, 15, 8, 11, 14, 17, 22, 18, 24],
backgroundColor: 'rgba(59, 130, 246, 0.7)',
borderColor: 'rgba(59, 130, 246, 1)',
borderWidth: 1
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true,
grid: {
color: 'rgba(55, 65, 81, 0.5)'
},
ticks: {
color: 'rgba(156, 163, 175, 1)'
}
},
x: {
grid: {
color: 'rgba(55, 65, 81, 0.5)'
},
ticks: {
color: 'rgba(156, 163, 175, 1)'
}
}
},
plugins: {
legend: {
labels: {
color: 'rgba(209, 213, 219, 1)'
}
}
}
}
});
// Call Chart
const callCtx = document.getElementById('callChart').getContext('2d');
const callChart = new Chart(callCtx, {
type: 'line',
data: {
labels: ['Mar 3', 'Mar 4', 'Mar 5', 'Mar 6', 'Mar 7', 'Mar 8', 'Mar 9', 'Mar 10', 'Mar 11', 'Mar 12'],
datasets: [{
label: 'Call Duration (minutes)',
data: [25, 32, 18, 27, 15, 22, 30, 28, 35, 38],
backgroundColor: 'rgba(16, 185, 129, 0.2)',
borderColor: 'rgba(16, 185, 129, 1)',
borderWidth: 2,
tension: 0.1,
fill: true
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true,
grid: {
color: 'rgba(55, 65, 81, 0.5)'
},
ticks: {
color: 'rgba(156, 163, 175, 1)'
}
},
x: {
grid: {
color: 'rgba(55, 65, 81, 0.5)'
},
ticks: {
color: 'rgba(156, 163, 175, 1)'
}
}
},
plugins: {
legend: {
labels: {
color: 'rgba(209, 213, 219, 1)'
}
}
}
}
});
}
// Initialize the page with Inbox section visible
document.addEventListener('DOMContentLoaded', function() {
showSection('inbox');
});
</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=giggro/jojo" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |