Spaces:
Running
Running
File size: 52,223 Bytes
928a58d 516af0e |
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 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Aegis AI - Fire & Safety Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></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/vanta@latest/dist/vanta.globe.min.js"></script>
<style>
:root {
--bg-primary: #111827;
--bg-secondary: #1F2937;
--text-primary: #f3f4f6;
--accent-start: #8b5cf6;
--accent-end: #ec4899;
}
body {
background-color: var(--bg-primary);
color: var(--text-primary);
font-family: 'Inter', sans-serif;
}
.gradient-text {
background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.gradient-bg {
background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
}
.status-green {
background-color: #10b981;
}
.status-red {
background-color: #ef4444;
animation: pulse 2s infinite;
}
.status-yellow {
background-color: #f59e0b;
}
.status-blue {
background-color: #3b82f6;
}
.status-orange {
background-color: #f97316;
}
.status-purple {
background-color: #8b5cf6;
}
.status-pink {
background-color: #ec4899;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
.floor-plan {
background-color: var(--bg-secondary);
border-radius: 1rem;
position: relative;
overflow: hidden;
}
.device {
position: absolute;
width: 16px;
height: 16px;
border-radius: 50%;
cursor: pointer;
transition: all 0.3s ease;
}
.device:hover {
transform: scale(1.5);
z-index: 10;
}
.device-tooltip {
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background-color: var(--bg-secondary);
padding: 0.5rem;
border-radius: 0.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
min-width: 200px;
z-index: 20;
}
.device:hover .device-tooltip {
opacity: 1;
}
.event-log {
max-height: 400px;
overflow-y: auto;
}
.event-log::-webkit-scrollbar {
width: 6px;
}
.event-log::-webkit-scrollbar-track {
background: var(--bg-secondary);
}
.event-log::-webkit-scrollbar-thumb {
background: var(--accent-start);
border-radius: 3px;
}
.project-card {
transition: all 0.3s ease;
border-left: 4px solid var(--accent-start);
}
.project-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.progress-bar {
height: 8px;
border-radius: 4px;
background-color: var(--bg-secondary);
}
.progress-fill {
height: 100%;
border-radius: 4px;
background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
transition: width 0.5s ease;
}
.nav-link {
position: relative;
padding: 0.5rem 1rem;
transition: all 0.3s ease;
}
.nav-link:hover {
color: var(--accent-start);
}
.nav-link.active {
color: var(--accent-start);
}
.nav-link.active::after {
content: '';
position: absolute;
bottom: -2px;
left: 1rem;
right: 1rem;
height: 2px;
background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
}
.dropdown-menu {
opacity: 0;
pointer-events: none;
transition: all 0.3s ease;
transform: translateY(-10px);
}
.dropdown:hover .dropdown-menu {
opacity: 1;
pointer-events: auto;
transform: translateY(0);
}
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: center;
align-items: center;
z-index: 100;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}
.modal-overlay.active {
opacity: 1;
pointer-events: auto;
}
.modal-content {
background-color: var(--bg-secondary);
border-radius: 1rem;
max-width: 90%;
max-height: 90vh;
overflow-y: auto;
transform: scale(0.9);
transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
transform: scale(1);
}
.tab-button {
padding: 0.5rem 1rem;
border-radius: 0.5rem;
transition: all 0.3s ease;
}
.tab-button.active {
background-color: var(--bg-primary);
color: var(--accent-start);
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.drag-drop-area {
border: 2px dashed var(--accent-start);
border-radius: 1rem;
transition: all 0.3s ease;
}
.drag-drop-area.active {
border-color: var(--accent-end);
background-color: rgba(139, 92, 246, 0.1);
}
.compliance-issue {
border-left: 4px solid #ef4444;
padding-left: 0.5rem;
}
.compliance-warning {
border-left: 4px solid #f59e0b;
padding-left: 0.5rem;
}
.compliance-advisory {
border-left: 4px solid #3b82f6;
padding-left: 0.5rem;
}
</style>
</head>
<body class="min-h-screen">
<!-- Vanta.js Background -->
<div id="vanta-bg" class="fixed top-0 left-0 w-full h-full z-0"></div>
<!-- Main Content -->
<div class="relative z-10">
<!-- Header -->
<header class="bg-gray-900 bg-opacity-80 backdrop-blur-md border-b border-gray-800">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<div class="flex items-center space-x-4">
<div class="gradient-text text-2xl font-bold">Aegis AI</div>
<div class="text-sm text-gray-400">Fire & Safety OS</div>
</div>
<div class="flex items-center space-x-6">
<div class="relative">
<button id="theme-toggle" class="p-2 rounded-full hover:bg-gray-800">
<i data-feather="moon" class="text-gray-400"></i>
</button>
</div>
<div class="relative">
<button id="notifications-btn" class="p-2 rounded-full hover:bg-gray-800 relative">
<i data-feather="bell" class="text-gray-400"></i>
<span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
</button>
<div id="notifications-dropdown" class="dropdown-menu absolute right-0 mt-2 w-80 bg-gray-800 rounded-lg shadow-lg py-2 z-50">
<div class="px-4 py-2 border-b border-gray-700 flex justify-between items-center">
<h3 class="font-semibold">Notifications</h3>
<button class="text-xs text-purple-400 hover:text-purple-300">Mark all as read</button>
</div>
<div class="max-h-60 overflow-y-auto">
<div class="px-4 py-3 hover:bg-gray-700 cursor-pointer border-b border-gray-700">
<div class="flex items-start">
<div class="status-red w-2 h-2 rounded-full mt-1 mr-2"></div>
<div>
<p class="text-sm font-medium">Alarm triggered - Floor 3, Zone 5</p>
<p class="text-xs text-gray-400">2 minutes ago</p>
</div>
</div>
</div>
<div class="px-4 py-3 hover:bg-gray-700 cursor-pointer border-b border-gray-700">
<div class="flex items-start">
<div class="status-yellow w-2 h-2 rounded-full mt-1 mr-2"></div>
<div>
<p class="text-sm font-medium">Trouble detected - Device 42A7</p>
<p class="text-xs text-gray-400">15 minutes ago</p>
</div>
</div>
</div>
<div class="px-4 py-3 hover:bg-gray-700 cursor-pointer border-b border-gray-700">
<div class="flex items-start">
<div class="status-blue w-2 h-2 rounded-full mt-1 mr-2"></div>
<div>
<p class="text-sm font-medium">New compliance report ready</p>
<p class="text-xs text-gray-400">1 hour ago</p>
</div>
</div>
</div>
</div>
<div class="px-4 py-2 text-center">
<a href="#" class="text-xs text-purple-400 hover:text-purple-300">View all notifications</a>
</div>
</div>
</div>
<div class="relative dropdown">
<button class="flex items-center space-x-2 hover:bg-gray-800 rounded-full p-1 pr-3">
<div class="w-8 h-8 rounded-full bg-purple-500 flex items-center justify-center text-white font-semibold">JD</div>
<span class="text-sm">John Doe</span>
<i data-feather="chevron-down" class="w-4 h-4"></i>
</button>
<div class="dropdown-menu absolute right-0 mt-2 w-48 bg-gray-800 rounded-lg shadow-lg py-1 z-50">
<a href="#" class="block px-4 py-2 text-sm hover:bg-gray-700"><i data-feather="user" class="w-4 h-4 mr-2"></i> Profile</a>
<a href="#" class="block px-4 py-2 text-sm hover:bg-gray-700"><i data-feather="settings" class="w-4 h-4 mr-2"></i> Settings</a>
<div class="border-t border-gray-700"></div>
<a href="#" class="block px-4 py-2 text-sm hover:bg-gray-700"><i data-feather="log-out" class="w-4 h-4 mr-2"></i> Sign out</a>
</div>
</div>
</div>
</div>
</header>
<!-- Main Navigation -->
<nav class="bg-gray-900 bg-opacity-80 backdrop-blur-md border-b border-gray-800">
<div class="container mx-auto px-4">
<div class="flex space-x-8">
<a href="#" class="nav-link active"><i data-feather="home" class="w-4 h-4 mr-2"></i> Dashboard</a>
<a href="#" class="nav-link"><i data-feather="clipboard" class="w-4 h-4 mr-2"></i> Projects</a>
<a href="#" class="nav-link"><i data-feather="book" class="w-4 h-4 mr-2"></i> Knowledge</a>
<a href="#" class="nav-link"><i data-feather="shield" class="w-4 h-4 mr-2"></i> Compliance</a>
<a href="#" class="nav-link"><i data-feather="calculator" class="w-4 h-4 mr-2"></i> Calculations</a>
<a href="#" class="nav-link"><i data-feather="calendar" class="w-4 h-4 mr-2"></i> Calendar</a>
<a href="#" class="nav-link"><i data-feather="settings" class="w-4 h-4 mr-2"></i> Admin</a>
</div>
</div>
</nav>
<!-- Main Content -->
<main class="container mx-auto px-4 py-6">
<!-- Dashboard Header -->
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-6">
<div>
<h1 class="text-2xl font-bold mb-2">Fire & Safety Dashboard</h1>
<p class="text-gray-400">Real-time monitoring and management of fire alarm systems</p>
</div>
<div class="mt-4 md:mt-0 flex space-x-3">
<button class="px-4 py-2 bg-gray-800 hover:bg-gray-700 rounded-lg flex items-center">
<i data-feather="refresh-cw" class="w-4 h-4 mr-2"></i>
<span>Refresh</span>
</button>
<button class="px-4 py-2 gradient-bg text-white rounded-lg flex items-center">
<i data-feather="plus" class="w-4 h-4 mr-2"></i>
<span>New Alert</span>
</button>
</div>
</div>
<!-- Status Overview -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
<div class="bg-gray-800 rounded-lg p-4">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-400 text-sm">Total Devices</p>
<h3 class="text-2xl font-bold">1,248</h3>
</div>
<div class="status-green w-10 h-10 rounded-full flex items-center justify-center">
<i data-feather="check" class="text-white"></i>
</div>
</div>
<div class="mt-4">
<div class="flex justify-between text-sm">
<span class="text-gray-400">Healthy</span>
<span>1,210</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-1.5 mt-1">
<div class="bg-green-500 h-1.5 rounded-full" style="width: 97%"></div>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-lg p-4">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-400 text-sm">Active Alarms</p>
<h3 class="text-2xl font-bold">3</h3>
</div>
<div class="status-red w-10 h-10 rounded-full flex items-center justify-center">
<i data-feather="alert-triangle" class="text-white"></i>
</div>
</div>
<div class="mt-4">
<div class="flex justify-between text-sm">
<span class="text-gray-400">Unacknowledged</span>
<span>2</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-1.5 mt-1">
<div class="bg-red-500 h-1.5 rounded-full" style="width: 66%"></div>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-lg p-4">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-400 text-sm">Trouble Conditions</p>
<h3 class="text-2xl font-bold">12</h3>
</div>
<div class="status-yellow w-10 h-10 rounded-full flex items-center justify-center">
<i data-feather="alert-circle" class="text-white"></i>
</div>
</div>
<div class="mt-4">
<div class="flex justify-between text-sm">
<span class="text-gray-400">Maintenance Needed</span>
<span>8</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-1.5 mt-1">
<div class="bg-yellow-500 h-1.5 rounded-full" style="width: 66%"></div>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-lg p-4">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-400 text-sm">Compliance Status</p>
<h3 class="text-2xl font-bold">92%</h3>
</div>
<div class="status-blue w-10 h-10 rounded-full flex items-center justify-center">
<i data-feather="shield" class="text-white"></i>
</div>
</div>
<div class="mt-4">
<div class="flex justify-between text-sm">
<span class="text-gray-400">NFPA 72 Compliance</span>
<span>92%</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-1.5 mt-1">
<div class="bg-blue-500 h-1.5 rounded-full" style="width: 92%"></div>
</div>
</div>
</div>
</div>
<!-- Main Dashboard Content -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Left Column -->
<div class="lg:col-span-2 space-y-6">
<!-- Floor Plan -->
<div class="bg-gray-800 rounded-xl p-4">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold">Building Floor Plan</h2>
<div class="flex space-x-2">
<select class="bg-gray-700 text-sm rounded-lg px-3 py-1">
<option>Floor 1</option>
<option>Floor 2</option>
<option selected>Floor 3</option>
<option>Floor 4</option>
<option>Roof</option>
</select>
<button class="p-1 rounded-lg hover:bg-gray-700">
<i data-feather="maximize" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="floor-plan h-96 relative">
<!-- Floor plan background would be here -->
<div class="absolute inset-0 flex items-center justify-center text-gray-600">
<p>Floor plan visualization would appear here</p>
</div>
<!-- Example devices -->
<div class="device status-green" style="top: 30%; left: 20%;">
<div class="device-tooltip">
<p class="font-medium">Smoke Detector</p>
<p class="text-xs">ID: SD-3-42</p>
<p class="text-xs">Zone: 3A</p>
<p class="text-xs">Last Test: 2023-11-15</p>
</div>
</div>
<div class="device status-red" style="top: 45%; left: 65%;">
<div class="device-tooltip">
<p class="font-medium">Smoke Detector (Alarm)</p>
<p class="text-xs">ID: SD-3-87</p>
<p class="text-xs">Zone: 3C</p>
<p class="text-xs">Triggered: 2023-11-20 14:32</p>
</div>
</div>
<div class="device status-yellow" style="top: 70%; left: 40%;">
<div class="device-tooltip">
<p class="font-medium">Pull Station (Trouble)</p>
<p class="text-xs">ID: PS-3-12</p>
<p class="text-xs">Zone: 3B</p>
<p class="text-xs">Last Maintenance: 2023-09-10</p>
</div>
</div>
<div class="device status-green" style="top: 25%; left: 75%;">
<div class="device-tooltip">
<p class="font-medium">Heat Detector</p>
<p class="text-xs">ID: HD-3-33</p>
<p class="text-xs">Zone: 3D</p>
<p class="text-xs">Last Test: 2023-11-10</p>
</div>
</div>
</div>
<div class="mt-4 flex justify-between items-center">
<div class="flex space-x-2">
<div class="flex items-center">
<div class="status-green w-3 h-3 rounded-full mr-1"></div>
<span class="text-xs">Normal</span>
</div>
<div class="flex items-center">
<div class="status-red w-3 h-3 rounded-full mr-1"></div>
<span class="text-xs">Alarm</span>
</div>
<div class="flex items-center">
<div class="status-yellow w-3 h-3 rounded-full mr-1"></div>
<span class="text-xs">Trouble</span>
</div>
</div>
<button class="text-xs text-purple-400 hover:text-purple-300 flex items-center">
<i data-feather="zoom-in" class="w-3 h-3 mr-1"></i>
<span>Zoom Controls</span>
</button>
</div>
</div>
<!-- Event Log -->
<div class="bg-gray-800 rounded-xl p-4">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold">Event Log</h2>
<div class="flex space-x-2">
<select class="bg-gray-700 text-sm rounded-lg px-3 py-1">
<option>All Events</option>
<option>Alarms</option>
<option>Troubles</option>
<option>Supervisory</option>
<option>System Events</option>
</select>
<button class="p-1 rounded-lg hover:bg-gray-700">
<i data-feather="filter" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="event-log">
<div class="border-b border-gray-700 pb-3 mb-3">
<div class="flex items-start">
<div class="status-red w-2 h-2 rounded-full mt-1.5 mr-2"></div>
<div class="flex-1">
<div class="flex justify-between">
<p class="font-medium">Alarm: Smoke Detector</p>
<span class="text-xs text-gray-400">2 min ago</span>
</div>
<p class="text-sm text-gray-400">Device ID: SD-3-87 | Zone: 3C | Floor 3, Room 312</p>
<div class="mt-1 flex space-x-2">
<button class="text-xs px-2 py-0.5 bg-gray-700 hover:bg-gray-600 rounded">Acknowledge</button>
<button class="text-xs px-2 py-0.5 bg-gray-700 hover:bg-gray-600 rounded">Silence</button>
<button class="text-xs px-2 py-0.5 bg-gray-700 hover:bg-gray-600 rounded">Reset</button>
</div>
</div>
</div>
</div>
<div class="border-b border-gray-700 pb-3 mb-3">
<div class="flex items-start">
<div class="status-yellow w-2 h-2 rounded-full mt-1.5 mr-2"></div>
<div class="flex-1">
<div class="flex justify-between">
<p class="font-medium">Trouble: Pull Station</p>
<span class="text-xs text-gray-400">15 min ago</span>
</div>
<p class="text-sm text-gray-400">Device ID: PS-3-12 | Zone: 3B | Floor 3, Hallway</p>
<div class="mt-1 flex space-x-2">
<button class="text-xs px-2 py-0.5 bg-gray-700 hover:bg-gray-600 rounded">Create Work Order</button>
</div>
</div>
</div>
</div>
<div class="border-b border-gray-700 pb-3 mb-3">
<div class="flex items-start">
<div class="status-blue w-2 h-2 rounded-full mt-1.5 mr-2"></div>
<div class="flex-1">
<div class="flex justify-between">
<p class="font-medium">System: Weekly Test</p>
<span class="text-xs text-gray-400">1 hour ago</span>
</div>
<p class="text-sm text-gray-400">Initiated by: John Doe | Devices Tested: 42 | Result: Pass</p>
</div>
</div>
</div>
<div class="border-b border-gray-700 pb-3 mb-3">
<div class="flex items-start">
<div class="status-green w-2 h-2 rounded-full mt-1.5 mr-2"></div>
<div class="flex-1">
<div class="flex justify-between">
<p class="font-medium">Normal: System Reset</p>
<span class="text-xs text-gray-400">2 hours ago</span>
</div>
<p class="text-sm text-gray-400">Initiated by: Jane Smith | All devices returned to normal state</p>
</div>
</div>
</div>
<div class="border-b border-gray-700 pb-3 mb-3">
<div class="flex items-start">
<div class="status-purple w-2 h-2 rounded-full mt-1.5 mr-2"></div>
<div class="flex-1">
<div class="flex justify-between">
<p class="font-medium">Drill: Fire Evacuation</p>
<span class="text-xs text-gray-400">1 day ago</span>
</div>
<p class="text-sm text-gray-400">Floor 3 | Duration: 8 min 42 sec | Participants: 87</p>
</div>
</div>
</div>
</div>
<div class="mt-4 text-center">
<button class="text-xs text-purple-400 hover:text-purple-300 flex items-center justify-center mx-auto">
<i data-feather="list" class="w-3 h-3 mr-1"></i>
<span>View Full Event History</span>
</button>
</div>
</div>
</div>
<!-- Right Column -->
<div class="space-y-6">
<!-- Aegis AI Assistant -->
<div class="bg-gray-800 rounded-xl p-4">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold">Aegis AI Assistant</h2>
<button class="p-1 rounded-lg hover:bg-gray-700">
<i data-feather="help-circle" class="w-4 h-4"></i>
</button>
</div>
<div class="bg-gray-700 rounded-lg p-3 mb-3">
<div class="flex items-start">
<div class="w-8 h-8 rounded-full bg-purple-500 flex items-center justify-center text-white font-semibold mr-2">AI</div>
<div class="flex-1">
<p class="text-sm">Hello! I'm your Aegis AI assistant. How can I help with fire safety and compliance today?</p>
</div>
</div>
</div>
<div class="relative">
<input type="text" placeholder="Ask about device status, compliance, or procedures..." class="w-full bg-gray-700 rounded-lg px-4 py-2 pr-10 text-sm focus:outline-none focus:ring-2 focus:ring-purple-500">
<button class="absolute right-2 top-1/2 transform -translate-y-1/2 p-1 text-gray-400 hover:text-purple-400">
<i data-feather="send" class="w-4 h-4"></i>
</button>
</div>
<div class="mt-3 grid grid-cols-2 gap-2">
<button class="text-xs px-2 py-1 bg-gray-700 hover:bg-gray-600 rounded">Status on 3rd floor?</button>
<button class="text-xs px-2 py-1 bg-gray-700 hover:bg-gray-600 rounded">NAC circuit load</button>
<button class="text-xs px-2 py-1 bg-gray-700 hover:bg-gray-600 rounded">Create evacuation route</button>
<button class="text-xs px-2 py-1 bg-gray-700 hover:bg-gray-600 rounded">NFPA 72 compliance</button>
</div>
</div>
<!-- Active Projects -->
<div class="bg-gray-800 rounded-xl p-4">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold">Active Projects</h2>
<button class="p-1 rounded-lg hover:bg-gray-700">
<i data-feather="plus" class="w-4 h-4"></i>
</button>
</div>
<div class="space-y-3">
<div class="project-card bg-gray-700 rounded-lg p-3">
<div class="flex justify-between items-start">
<div>
<h3 class="font-medium">N16x Phase 2</h3>
<p class="text-xs text-gray-400">A433 Ref: 2023-1120 | Notifier NFS2-3030</p>
</div>
<div class="status-orange w-3 h-3 rounded-full mt-1"></div>
</div>
<div class="mt-2">
<div class="flex justify-between text-xs mb-1">
<span>Progress: 65%</span>
<span>Due: Dec 15, 2023</span>
</div>
<div class="progress-bar">
<div class="progress-fill" style="width: 65%"></div>
</div>
</div>
<div class="mt-2 flex justify-between text-xs">
<span class="text-gray-400">Blocked by: FSAE submittal</span>
<button class="text-purple-400 hover:text-purple-300">Details</button>
</div>
</div>
<div class="project-card bg-gray-700 rounded-lg p-3">
<div class="flex justify-between items-start">
<div>
<h3 class="font-medium">Broadway Tower Retrofit</h3>
<p class="text-xs text-gray-400">A433 Ref: 2023-1015 | EST3</p>
</div>
<div class="status-green w-3 h-3 rounded-full mt-1"></div>
</div>
<div class="mt-2">
<div class="flex justify-between text-xs mb-1">
<span>Progress: 82%</span>
<span>Due: Nov 30, 2023</span>
</div>
<div class="progress-bar">
<div class="progress-fill" style="width: 82%"></div>
</div>
</div>
<div class="mt-2 flex justify-between text-xs">
<span class="text-gray-400">On track</span>
<button class="text-purple-400 hover:text-purple-300">Details</button>
</div>
</div>
<div class="project-card bg-gray-700 rounded-lg p-3">
<div class="flex justify-between items-start">
<div>
<h3 class="font-medium">Hudson Yards West</h3>
<p class="text-xs text-gray-400">A433 Ref: 2023-0905 | Silent Knight SK-5208</p>
</div>
<div class="status-blue w-3 h-3 rounded-full mt-1"></div>
</div>
<div class="mt-2">
<div class="flex justify-between text-xs mb-1">
<span>Progress: 100%</span>
<span>Completed: Nov 5, 2023</span>
</div>
<div class="progress-bar">
<div class="progress-fill" style="width: 100%"></div>
</div>
</div>
<div class="mt-2 flex justify-between text-xs">
<span class="text-gray-400">Awaiting FDNY sign-off</span>
<button class="text-purple-400 hover:text-purple-300">Details</button>
</div>
</div>
</div>
<div class="mt-4 text-center">
<button class="text-xs text-purple-400 hover:text-purple-300 flex items-center justify-center mx-auto">
<i data-feather="folder" class="w-3 h-3 mr-1"></i>
<span>View All Projects</span>
</button>
</div>
</div>
<!-- Compliance Alerts -->
<div class="bg-gray-800 rounded-xl p-4">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold">Compliance Alerts</h2>
<button class="p-1 rounded-lg hover:bg-gray-700">
<i data-feather="refresh-cw" class="w-4 h-4"></i>
</button>
</div>
<div class="space-y-3">
<div class="compliance-issue bg-gray-700 rounded-lg p-3">
<div class="flex justify-between items-start">
<h3 class="font-medium text-sm">NAC Circuit Overload</h3>
<span class="text-xs px-1.5 py-0.5 bg-red-500 bg-opacity-20 text-red-400 rounded">Critical</span>
</div>
<p class="text-xs text-gray-400 mt-1">Circuit AP26R exceeds 2.8A limit (3.2A measured)</p>
<div class="mt-2 flex justify-between text-xs">
<span class="text-gray-400">NFPA72_2022:18.5.4.1</span>
<button class="text-purple-400 hover:text-purple-300">Fix</button>
</div>
</div>
<div class="compliance-warning bg-gray-700 rounded-lg p-3">
<div class="flex justify-between items-start">
<h3 class="font-medium text-sm">Missing A433 Info</h3>
<span class="text-xs px-1.5 py-0.5 bg-yellow-500 bg-opacity-20 text-yellow-400 rounded">Warning</span>
</div>
<p class="text-xs text-gray-400 mt-1">Riser diagram missing owner of record</p>
<div class="mt-2 flex justify-between text-xs">
<span class="text-gray-400">upcodes_2022:§907.5.2.3</span>
<button class="text-purple-400 hover:text-purple-300">Fix</button>
</div>
</div>
<div class="compliance-advisory bg-gray-700 rounded-lg p-3">
<div class="flex justify-between items-start">
<h3 class="font-medium text-sm">Upcoming Inspection</h3>
<span class="text-xs px-1.5 py-0.5 bg-blue-500 bg-opacity-20 text-blue-400 rounded">Advisory</span>
</div>
<p class="text-xs text-gray-400 mt-1">Quarterly inspection due in 7 days</p>
<div class="mt-2 flex justify-between text-xs">
<span class="text-gray-400">FDNY BC 2022-003</span>
<button class="text-purple-400 hover:text-purple-300">Schedule</button>
</div>
</div>
</div>
<div class="mt-4 text-center">
<button class="text-xs text-purple-400 hover:text-purple-300 flex items-center justify-center mx-auto">
<i data-feather="shield" class="w-3 h-3 mr-1"></i>
<span>Run Full Compliance Check</span>
</button>
</div>
</div>
</div>
</div>
</main>
</div>
<!-- Remote Control Modal -->
<div id="remote-control-modal" class="modal-overlay">
<div class="modal-content w-full max-w-md">
<div class="p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold">Remote System Control</h3>
<button id="close-remote-modal" class="p-1 rounded-full hover:bg-gray-700">
<i data-feather="x" class="w-5 h-5"></i>
</button>
</div>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium mb-1">Action</label>
<select class="w-full bg-gray-700 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-purple-500">
<option>Silence Alarm</option>
<option>Reset System</option>
<option>HVAC Purge</option>
<option>Elevator Recall</option>
<option>Door Unlock</option>
</select>
</div>
<div>
<label class="block text-sm font-medium mb-1">Affected Devices/Zones</label>
<div class="bg-gray-700 rounded-lg p-2">
<div class="flex items-center justify-between py-1">
<div class="flex items-center">
<div class="status-red w-2 h-2 rounded-full mr-2"></div>
<span class="text-sm">SD-3-87 (Floor 3, Zone 3C)</span>
</div>
<button class="text-xs text-red-400 hover:text-red-300">
<i data-feather="x" class="w-3 h-3"></i>
</button>
</div>
<div class="flex items-center justify-between py-1">
<div class="flex items-center">
<div class="status-red w-2 h-2 rounded-full mr-2"></div>
<span class="text-sm">PS-3-12 (Floor 3, Zone 3B)</span>
</div>
<button class="text-xs text-red-400 hover:text-red-300">
<i data-feather="x" class="w-3 h-3"></i>
</button>
</div>
</div>
</div>
<div>
<label class="block text-sm font-medium mb-1">Reason</label>
<textarea class="w-full bg-gray-700 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-purple-500" rows="2" placeholder="Briefly describe the reason for this action..."></textarea>
</div>
<div>
<label class="block text-sm font-medium mb-1">Verification Code</label>
<input type="text" class="w-full bg-gray-700 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-purple-500" placeholder="Enter 6-digit code from authenticator">
</div>
<div class="pt-2">
<button class="w-full gradient-bg text-white rounded-lg py-2 font-medium flex items-center justify-center">
<i data-feather="shield" class="w-4 h-4 mr-2"></i>
<span>Confirm & Execute</span>
</button>
</div>
</div>
</div>
</div>
</div>
<script>
// Initialize Vanta.js globe background
VANTA.GLOBE({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x8b5cf6,
backgroundColor: 0x111827,
size: 0.8
});
// Initialize AOS animations
AOS.init({
duration: 800,
easing: 'ease-in-out',
once: true
});
// Initialize Feather Icons
feather.replace();
// Theme toggle
const themeToggle = document.getElementById('theme-toggle');
themeToggle.addEventListener('click', () => {
document.documentElement.classList.toggle('dark');
const icon = themeToggle.querySelector('i');
if (document.documentElement.classList.contains('dark')) {
feather.replace({ 'stroke': '#9CA3AF' });
icon.setAttribute('data-feather', 'moon');
} else {
feather.replace({ 'stroke': '#4B5563' });
icon.setAttribute('data-feather', 'sun');
}
feather.replace();
});
// Notifications dropdown
const notificationsBtn = document.getElementById('notifications-btn');
const notificationsDropdown = document.getElementById('notifications-dropdown');
notificationsBtn.addEventListener('click', () => {
notificationsDropdown.classList.toggle('hidden');
});
// Close dropdown when clicking outside
document.addEventListener('click', (e) => {
if (!notificationsBtn.contains(e.target) && !notificationsDropdown.contains(e.target)) {
notificationsDropdown.classList.add('hidden');
}
});
// Remote control modal
const remoteControlModal = document.getElementById('remote-control-modal');
const closeRemoteModal = document.getElementById('close-remote-modal');
// Example: This would be triggered by a button click in a real scenario
function openRemoteControlModal() {
remoteControlModal.classList.add('active');
}
closeRemoteModal.addEventListener('click', () => {
remoteControlModal.classList.remove('active');
});
// Example: Open modal when clicking on a device in alarm
document.querySelectorAll('.device.status-red').forEach(device => {
device.addEventListener('click', openRemoteControlModal);
});
// Tab functionality example
const tabButtons = document.querySelectorAll('.tab-button');
const tabContents = document.querySelectorAll('.tab-content');
tabButtons.forEach(button => {
button.addEventListener('click', () => {
const tabId = button.getAttribute('data-tab');
tabButtons.forEach(btn => btn.classList.remove('active'));
tabContents.forEach(content => content.classList.remove('active'));
button.classList.add('active');
document.getElementById(tabId).classList.add('active');
});
});
// Drag and drop example
const dragDropAreas = document.querySelectorAll('.drag-drop-area');
dragDropAreas.forEach(area => {
area.addEventListener('dragover', (e) => {
e.preventDefault();
area.classList.add('active');
});
area.addEventListener('dragleave', () => {
area.classList.remove('active');
});
area.addEventListener('drop', (e) => {
e.preventDefault();
area.classList.remove('active');
// Handle file drop here
});
});
</script>
</body>
</html>
|