Download chat.html from secutorpro/comsync-pro-team-connect-hub: direct link, hf CLI and curl.
- Browser
- Download file 5.7 kB
-
https://huggingface.co/spaces/secutorpro/comsync-pro-team-connect-hub/resolve/main/chat.html
- Command line
-
hf download hf://spaces/secutorpro/comsync-pro-team-connect-hub/chat.html
-
curl -L -o chat.html https://huggingface.co/spaces/secutorpro/comsync-pro-team-connect-hub/resolve/main/chat.html
5.7 kB
| <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 --> | |
| <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> | |
| <!-- Chat Container --> | |
| <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)]"> | |
| <!-- Chat Header --> | |
| <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 --> | |
| <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> | |
| // Initialize Vanta.js background | |
| 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 | |
| }); | |
| // Update current time | |
| function updateTime() { | |
| const now = new Date(); | |
| document.getElementById('current-time').textContent = now.toLocaleTimeString(); | |
| } | |
| setInterval(updateTime, 1000); | |
| updateTime(); | |
| // Initialize Feather Icons | |
| feather.replace(); | |
| // Connection status simulation | |
| 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'; | |
| } | |
| } | |
| // Simulate connection issues randomly | |
| setInterval(() => { | |
| if (Math.random() > 0.95) { // Less frequent for better UX | |
| isConnected = !isConnected; | |
| updateConnectionStatus(); | |
| } | |
| }, 30000); | |
| // Settings handler | |
| 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.'); | |
| }); | |
| // Navigation history | |
| window.addEventListener('popstate', function(event) { | |
| location.reload(); | |
| }); | |
| history.pushState(null, null, location.href); | |
| </script> | |
| </body> | |
| </html> | |