| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <meta charset="UTF-8"> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| <title>AI Assistant - ComSync Pro</title> |
| <script src="https://cdn.tailwindcss.com"></script> |
| <script src="https://unpkg.com/feather-icons"></script> |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> |
| <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script> |
| <link rel="stylesheet" href="style.css"> |
| </head> |
| <body class="bg-gray-900 text-gray-100"> |
| <div id="vanta-bg" class="fixed inset-0 z-0"></div> |
| <script src="components/navbar.js"></script> |
| <custom-navbar></custom-navbar> |
| <div class="relative z-10 min-h-screen p-4 md:p-6"> |
| |
| <header class="bg-gray-800/80 backdrop-blur-md rounded-xl p-4 mb-6 border border-gray-700/50 shadow-lg"> |
| <div class="flex flex-col md:flex-row justify-between items-start md:items-center gap-4"> |
| <div class="flex items-center space-x-3"> |
| <i data-feather="cpu" class="w-8 h-8 text-purple-400"></i> |
| <h1 class="text-2xl font-bold bg-gradient-to-r from-purple-400 to-blue-400 bg-clip-text text-transparent">AI Assistant</h1> |
| </div> |
| <div class="flex flex-wrap items-center gap-4"> |
| <div class="status-pill flex items-center px-3 py-1 rounded-full text-sm bg-green-900/30 text-green-400"> |
| <i data-feather="check-circle" class="w-4 h-4 mr-1"></i> |
| <span id="connection-status">Connected</span> |
| </div> |
| <div class="flex items-center space-x-1"> |
| <i data-feather="clock" class="w-5 h-5"></i> |
| <span class="text-sm" id="current-time">14:45:32</span> |
| </div> |
| <button class="settings-btn p-2 bg-gray-700/50 hover:bg-gray-600/50 rounded-lg transition-all"> |
| <i data-feather="settings" class="w-5 h-5"></i> |
| </button> |
| </div> |
| </div> |
| </header> |
|
|
| |
| <div class="bg-gray-800/80 backdrop-blur-md rounded-xl p-5 border border-gray-700/50 shadow-lg max-w-4xl mx-auto"> |
| <div class="flex flex-col h-[calc(100vh-220px)]"> |
| |
| <div class="mb-4 pb-4 border-b border-gray-700"> |
| <h2 class="text-xl font-semibold flex items-center"> |
| <i data-feather="cpu" class="w-5 h-5 mr-2 text-purple-400"></i> |
| Gemma v4 AI Assistant |
| </h2> |
| <p class="text-sm text-gray-400 mt-1">Ask anything related to operations, logistics, or emergency procedures</p> |
| </div> |
| |
| |
| <chat-component id="chatComponent"></chat-component> |
| |
| <div class="mt-4"> |
| <p class="text-xs text-gray-500 text-center mt-2">Powered by Meta-Gemma/gemma-v4-8b-instruct</p> |
| </div> |
| </div> |
| </div> |
| </div> |
|
|
| <script src="components/chat-component.js"></script> |
| <script> |
| |
| VANTA.NET({ |
| 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, |
| points: 10.00, |
| maxDistance: 22.00, |
| spacing: 18.00 |
| }); |
| |
| |
| function updateTime() { |
| const now = new Date(); |
| document.getElementById('current-time').textContent = now.toLocaleTimeString(); |
| } |
| setInterval(updateTime, 1000); |
| updateTime(); |
| |
| |
| feather.replace(); |
| |
| |
| let isConnected = true; |
| |
| function updateConnectionStatus() { |
| const statusElement = document.getElementById('connection-status'); |
| if (isConnected) { |
| statusElement.textContent = 'Connected'; |
| statusElement.parentElement.className = 'status-pill flex items-center px-3 py-1 rounded-full text-sm bg-green-900/30 text-green-400'; |
| } else { |
| statusElement.textContent = 'Disconnected'; |
| statusElement.parentElement.className = 'status-pill flex items-center px-3 py-1 rounded-full text-sm bg-red-900/30 text-red-400'; |
| } |
| } |
| |
| |
| setInterval(() => { |
| if (Math.random() > 0.95) { |
| isConnected = !isConnected; |
| updateConnectionStatus(); |
| } |
| }, 30000); |
| |
| |
| document.querySelector('.settings-btn').addEventListener('click', function() { |
| alert('🤖 AI Assistant Settings:\n\n• Response Speed: Normal\n• Context Awareness: Enabled\n• Mission Integration: Active\n• Emergency Detection: Enabled\n\nSettings would open in a full implementation.'); |
| }); |
| |
| |
| window.addEventListener('popstate', function(event) { |
| location.reload(); |
| }); |
| |
| history.pushState(null, null, location.href); |
| </script> |
| </body> |
| </html> |
|
|