| <!DOCTYPE html> |
| <html lang="en" class="dark"> |
| <head> |
| <meta charset="UTF-8"> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| <title>DarkBERT Dashboard</title> |
| <script src="https://cdn.tailwindcss.com"></script> |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> |
| <style> |
| |
| ::-webkit-scrollbar { |
| width: 8px; |
| } |
| ::-webkit-scrollbar-track { |
| background: #1e1e2d; |
| } |
| ::-webkit-scrollbar-thumb { |
| background: #4b5563; |
| border-radius: 4px; |
| } |
| ::-webkit-scrollbar-thumb:hover { |
| background: #6b7280; |
| } |
| |
| |
| @keyframes fadeIn { |
| from { opacity: 0; transform: translateY(10px); } |
| to { opacity: 1; transform: translateY(0); } |
| } |
| |
| .message { |
| animation: fadeIn 0.3s ease-out; |
| } |
| |
| |
| .gradient-text { |
| background: linear-gradient(90deg, #8b5cf6, #ec4899); |
| -webkit-background-clip: text; |
| background-clip: text; |
| color: transparent; |
| } |
| |
| |
| .typewriter { |
| overflow: hidden; |
| border-right: 2px solid #8b5cf6; |
| white-space: nowrap; |
| margin: 0 auto; |
| letter-spacing: 1px; |
| animation: |
| typing 3.5s steps(40, end), |
| blink-caret 0.75s step-end infinite; |
| } |
| |
| @keyframes typing { |
| from { width: 0 } |
| to { width: 100% } |
| } |
| |
| @keyframes blink-caret { |
| from, to { border-color: transparent } |
| 50% { border-color: #8b5cf6; } |
| } |
| </style> |
| </head> |
| <body class="bg-gray-900 text-gray-200 min-h-screen flex flex-col"> |
| |
| <header class="bg-gray-800 border-b border-gray-700 p-4"> |
| <div class="container mx-auto flex justify-between items-center"> |
| <div class="flex items-center space-x-3"> |
| <div class="w-10 h-10 bg-purple-600 rounded-full flex items-center justify-center"> |
| <i class="fas fa-robot text-xl"></i> |
| </div> |
| <h1 class="text-2xl font-bold gradient-text">Dark<span class="text-white">BERT</span></h1> |
| </div> |
| <div class="flex items-center space-x-4"> |
| <button id="theme-toggle" class="p-2 rounded-full hover:bg-gray-700 transition"> |
| <i class="fas fa-moon text-yellow-400"></i> |
| </button> |
| <button class="bg-purple-600 hover:bg-purple-700 px-4 py-2 rounded-lg font-medium transition"> |
| <i class="fas fa-user mr-2"></i>Sign In |
| </button> |
| </div> |
| </div> |
| </header> |
|
|
| <div class="flex flex-1 overflow-hidden"> |
| |
| <aside class="w-64 bg-gray-800 border-r border-gray-700 hidden md:block overflow-y-auto"> |
| <div class="p-4"> |
| <div class="mb-6"> |
| <h2 class="text-lg font-semibold mb-2 text-gray-300">Quick Actions</h2> |
| <button class="w-full bg-purple-600 hover:bg-purple-700 text-white py-2 px-3 rounded mb-2 text-left transition"> |
| <i class="fas fa-plus mr-2"></i>New Chat |
| </button> |
| <button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-2 px-3 rounded text-left transition"> |
| <i class="fas fa-history mr-2"></i>History |
| </button> |
| </div> |
| |
| <div class="mb-6"> |
| <h2 class="text-lg font-semibold mb-2 text-gray-300">Training & Fine-tuning</h2> |
| <div class="space-y-3 mb-4"> |
| <button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-2 px-3 rounded text-left transition"> |
| <i class="fas fa-upload mr-2"></i>Upload Training Data |
| </button> |
| <button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-2 px-3 rounded text-left transition"> |
| <i class="fas fa-sliders-h mr-2"></i>Fine-tune Parameters |
| </button> |
| <button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-2 px-3 rounded text-left transition"> |
| <i class="fas fa-play mr-2"></i>Start Training Session |
| </button> |
| </div> |
|
|
| <h2 class="text-lg font-semibold mb-2 text-gray-300">Saved Prompts</h2> |
| <div class="space-y-2"> |
| <button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-2 px-3 rounded text-left text-sm transition truncate"> |
| <i class="fas fa-code mr-2"></i>Explain this code snippet... |
| </button> |
| <button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-2 px-3 rounded text-left text-sm transition truncate"> |
| <i class="fas fa-book mr-2"></i>Summarize research paper... |
| </button> |
| <button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-2 px-3 rounded text-left text-sm transition truncate"> |
| <i class="fas fa-terminal mr-2"></i>Debug this Python script... |
| </button> |
| </div> |
| </div> |
| |
| <div class="mb-6"> |
| <h2 class="text-lg font-semibold mb-2 text-gray-300">Training & Fine-tuning</h2> |
| <div class="space-y-3 mb-4"> |
| <button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-2 px-3 rounded text-left transition"> |
| <i class="fas fa-upload mr-2"></i>Upload Training Data |
| </button> |
| <button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-2 px-3 rounded text-left transition"> |
| <i class="fas fa-sliders-h mr-2"></i>Fine-tune Parameters |
| </button> |
| <button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-2 px-3 rounded text-left transition"> |
| <i class="fas fa-play mr-2"></i>Start Training Session |
| </button> |
| </div> |
|
|
| <h2 class="text-lg font-semibold mb-2 text-gray-300">Model Settings</h2> |
| <div class="space-y-3"> |
| <div> |
| <label class="block text-sm text-gray-400 mb-1">Temperature</label> |
| <input type="range" min="0" max="1" step="0.1" value="0.7" class="w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer"> |
| <div class="flex justify-between text-xs text-gray-400"> |
| <span>Precise</span> |
| <span>Creative</span> |
| </div> |
| </div> |
| <div> |
| <label class="block text-sm text-gray-400 mb-1">Max Tokens</label> |
| <input type="range" min="100" max="4000" step="100" value="2000" class="w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer"> |
| </div> |
| </div> |
| </div> |
| </div> |
| </aside> |
|
|
| |
| <button id="mobile-sidebar-toggle" class="md:hidden fixed bottom-4 left-4 bg-purple-600 p-3 rounded-full z-10 shadow-lg"> |
| <i class="fas fa-bars"></i> |
| </button> |
|
|
| |
| <main class="flex-1 flex flex-col overflow-hidden"> |
| |
| <div id="chat-container" class="flex-1 overflow-y-auto p-4 space-y-6"> |
| |
| <div class="max-w-3xl mx-auto message"> |
| <div class="flex items-start space-x-3"> |
| <div class="w-8 h-8 bg-purple-600 rounded-full flex items-center justify-center flex-shrink-0"> |
| <i class="fas fa-robot text-sm"></i> |
| </div> |
| <div class="bg-gray-800 p-4 rounded-lg rounded-tl-none shadow-lg flex-1"> |
| <div class="typewriter text-lg font-medium mb-1">Welcome to DarkBERT</div> |
| <p class="text-gray-300">I'm your AI assistant specialized in cybersecurity, dark web analysis, and advanced technical research. How can I assist you today?</p> |
| <div class="mt-3 grid grid-cols-1 md:grid-cols-2 gap-2"> |
| <button class="prompt-suggestion bg-gray-700 hover:bg-gray-600 text-sm p-2 rounded transition text-left"> |
| Explain the latest dark web threats |
| </button> |
| <button class="prompt-suggestion bg-gray-700 hover:bg-gray-600 text-sm p-2 rounded transition text-left"> |
| Analyze this malware sample |
| </button> |
| <button class="prompt-suggestion bg-gray-700 hover:bg-gray-600 text-sm p-2 rounded transition text-left"> |
| Suggest cybersecurity best practices |
| </button> |
| <button class="prompt-suggestion bg-gray-700 hover:bg-gray-600 text-sm p-2 rounded transition text-left"> |
| Decode this encrypted message |
| </button> |
| <button class="prompt-suggestion bg-gray-700 hover:bg-gray-600 text-sm p-2 rounded transition text-left"> |
| Help me fine-tune my model |
| </button> |
| </div> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="max-w-3xl mx-auto message hidden" id="example-conversation"> |
| <div class="flex items-start space-x-3"> |
| <div class="w-8 h-8 bg-gray-700 rounded-full flex items-center justify-center flex-shrink-0"> |
| <i class="fas fa-user text-sm"></i> |
| </div> |
| <div class="bg-gray-800 p-4 rounded-lg rounded-tl-none shadow-lg flex-1"> |
| <p>Explain the Tor network architecture and its security implications</p> |
| </div> |
| </div> |
| |
| <div class="flex items-start space-x-3 mt-4"> |
| <div class="w-8 h-8 bg-purple-600 rounded-full flex items-center justify-center flex-shrink-0"> |
| <i class="fas fa-robot text-sm"></i> |
| </div> |
| <div class="bg-gray-800 p-4 rounded-lg rounded-tl-none shadow-lg flex-1"> |
| <p>The Tor (The Onion Router) network is a decentralized anonymity system that routes internet traffic through multiple encrypted relays. Key aspects:</p> |
| <ul class="list-disc pl-5 mt-2 space-y-1"> |
| <li><strong>Layered Encryption:</strong> Uses onion routing with multiple layers of encryption</li> |
| <li><strong>Circuit Creation:</strong> Random path through at least 3 nodes (guard, middle, exit)</li> |
| <li><strong>Anonymity:</strong> Each node only knows immediate predecessor and successor</li> |
| </ul> |
| <p class="mt-2">Security considerations include potential exit node eavesdropping and correlation attacks. Would you like me to elaborate on any specific aspect?</p> |
| </div> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="border-t border-gray-700 p-4 bg-gray-800"> |
| <form id="chat-form" class="max-w-3xl mx-auto"> |
| <div class="relative"> |
| <textarea id="message-input" rows="1" class="w-full bg-gray-700 rounded-lg pl-4 pr-16 py-3 text-gray-200 focus:outline-none focus:ring-2 focus:ring-purple-600 resize-none" placeholder="Ask DarkBERT anything..." autofocus></textarea> |
| <div class="absolute right-2 bottom-2 flex space-x-1"> |
| <button type="button" class="p-2 text-gray-400 hover:text-white rounded-full hover:bg-gray-600 transition"> |
| <i class="fas fa-paperclip"></i> |
| </button> |
| <button type="submit" class="p-2 bg-purple-600 text-white rounded-full hover:bg-purple-700 transition"> |
| <i class="fas fa-paper-plane"></i> |
| </button> |
| </div> |
| </div> |
| <div class="flex justify-between items-center mt-2 text-xs text-gray-400"> |
| <div> |
| <button type="button" class="hover:text-gray-300 transition"> |
| <i class="fas fa-magic mr-1"></i>Enhance Prompt |
| </button> |
| </div> |
| <div> |
| <span id="char-count">0</span>/4000 |
| </div> |
| </div> |
| </form> |
| </div> |
| </main> |
| </div> |
|
|
| |
| <div id="mobile-sidebar" class="fixed inset-0 bg-gray-900 bg-opacity-90 z-20 hidden"> |
| <div class="h-full w-64 bg-gray-800 overflow-y-auto"> |
| <div class="p-4"> |
| <div class="flex justify-between items-center mb-6"> |
| <h2 class="text-xl font-bold">Menu</h2> |
| <button id="close-mobile-sidebar" class="p-2 rounded-full hover:bg-gray-700"> |
| <i class="fas fa-times"></i> |
| </button> |
| </div> |
| |
| <div class="mb-6"> |
| <button class="w-full bg-purple-600 hover:bg-purple-700 text-white py-2 px-3 rounded mb-2 text-left transition"> |
| <i class="fas fa-plus mr-2"></i>New Chat |
| </button> |
| <button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-2 px-3 rounded text-left transition"> |
| <i class="fas fa-history mr-2"></i>History |
| </button> |
| </div> |
| |
| <div class="mb-6"> |
| <h2 class="text-lg font-semibold mb-2 text-gray-300">Saved Prompts</h2> |
| <div class="space-y-2"> |
| <button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-2 px-3 rounded text-left text-sm transition truncate"> |
| <i class="fas fa-code mr-2"></i>Explain this code snippet... |
| </button> |
| <button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-2 px-3 rounded text-left text-sm transition truncate"> |
| <i class="fas fa-book mr-2"></i>Summarize research paper... |
| </button> |
| <button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-2 px-3 rounded text-left text-sm transition truncate"> |
| <i class="fas fa-terminal mr-2"></i>Debug this Python script... |
| </button> |
| </div> |
| </div> |
| </div> |
| </div> |
| </div> |
|
|
| <script> |
| |
| const chatForm = document.getElementById('chat-form'); |
| const messageInput = document.getElementById('message-input'); |
| const chatContainer = document.getElementById('chat-container'); |
| const charCount = document.getElementById('char-count'); |
| const themeToggle = document.getElementById('theme-toggle'); |
| const mobileSidebarToggle = document.getElementById('mobile-sidebar-toggle'); |
| const mobileSidebar = document.getElementById('mobile-sidebar'); |
| const closeMobileSidebar = document.getElementById('close-mobile-sidebar'); |
| const promptSuggestions = document.querySelectorAll('.prompt-suggestion'); |
| const exampleConversation = document.getElementById('example-conversation'); |
| |
| |
| messageInput.addEventListener('input', function() { |
| this.style.height = 'auto'; |
| this.style.height = (this.scrollHeight) + 'px'; |
| |
| |
| charCount.textContent = this.value.length; |
| }); |
| |
| |
| chatForm.addEventListener('submit', function(e) { |
| e.preventDefault(); |
| const message = messageInput.value.trim(); |
| |
| if (message) { |
| |
| addMessageToChat(message, 'user'); |
| |
| |
| messageInput.value = ''; |
| messageInput.style.height = 'auto'; |
| charCount.textContent = '0'; |
| |
| |
| setTimeout(() => { |
| const responses = [ |
| "I'm analyzing your request about '" + message + "'. This is a complex topic that requires careful consideration of multiple factors.", |
| "Based on my knowledge base, here's what I can tell you about '" + message + "'. First, we need to consider the security implications...", |
| "That's an interesting question about '" + message + "'. From a cybersecurity perspective, there are several key points to address..." |
| ]; |
| |
| const randomResponse = responses[Math.floor(Math.random() * responses.length)]; |
| addMessageToChat(randomResponse, 'ai'); |
| }, 1000 + Math.random() * 2000); |
| } |
| }); |
| |
| |
| function addMessageToChat(message, sender) { |
| const messageDiv = document.createElement('div'); |
| messageDiv.className = 'max-w-3xl mx-auto message'; |
| |
| if (sender === 'user') { |
| messageDiv.innerHTML = ` |
| <div class="flex items-start space-x-3"> |
| <div class="w-8 h-8 bg-gray-700 rounded-full flex items-center justify-center flex-shrink-0"> |
| <i class="fas fa-user text-sm"></i> |
| </div> |
| <div class="bg-gray-800 p-4 rounded-lg rounded-tl-none shadow-lg flex-1"> |
| <p>${message}</p> |
| </div> |
| </div> |
| `; |
| } else { |
| messageDiv.innerHTML = ` |
| <div class="flex items-start space-x-3"> |
| <div class="w-8 h-8 bg-purple-600 rounded-full flex items-center justify-center flex-shrink-0"> |
| <i class="fas fa-robot text-sm"></i> |
| </div> |
| <div class="bg-gray-800 p-4 rounded-lg rounded-tl-none shadow-lg flex-1"> |
| <p>${message}</p> |
| </div> |
| </div> |
| `; |
| } |
| |
| chatContainer.appendChild(messageDiv); |
| chatContainer.scrollTop = chatContainer.scrollHeight; |
| } |
| |
| |
| themeToggle.addEventListener('click', function() { |
| document.documentElement.classList.toggle('dark'); |
| const icon = this.querySelector('i'); |
| |
| if (document.documentElement.classList.contains('dark')) { |
| icon.classList.remove('fa-sun'); |
| icon.classList.add('fa-moon'); |
| icon.classList.add('text-yellow-400'); |
| } else { |
| icon.classList.remove('fa-moon'); |
| icon.classList.remove('text-yellow-400'); |
| icon.classList.add('fa-sun'); |
| } |
| }); |
| |
| |
| mobileSidebarToggle.addEventListener('click', function() { |
| mobileSidebar.classList.remove('hidden'); |
| }); |
| |
| closeMobileSidebar.addEventListener('click', function() { |
| mobileSidebar.classList.add('hidden'); |
| }); |
| |
| |
| promptSuggestions.forEach(button => { |
| button.addEventListener('click', function() { |
| messageInput.value = this.textContent.trim(); |
| messageInput.focus(); |
| messageInput.dispatchEvent(new Event('input')); |
| |
| |
| exampleConversation.classList.remove('hidden'); |
| chatContainer.scrollTop = chatContainer.scrollHeight; |
| }); |
| }); |
| |
| |
| charCount.textContent = messageInput.value.length; |
| </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=JarlJarle/darkbert" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> |
| </html> |