Spaces:
Running
Running
| <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> | |