Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Unfiltered AI Collaboration Hub</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> | |
| .chat-container { | |
| height: calc(100vh - 160px); | |
| } | |
| .message-animation { | |
| animation: fadeIn 0.3s ease-in-out; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; transform: translateY(10px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| .typing-indicator::after { | |
| content: "..."; | |
| animation: typing 1.5s infinite; | |
| } | |
| @keyframes typing { | |
| 0% { content: "."; } | |
| 33% { content: ".."; } | |
| 66% { content: "..."; } | |
| } | |
| .project-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); | |
| } | |
| .markdown-content a { | |
| color: #3b82f6; | |
| text-decoration: underline; | |
| } | |
| .markdown-content code { | |
| background-color: #f3f4f6; | |
| padding: 0.2rem 0.4rem; | |
| border-radius: 0.25rem; | |
| font-family: monospace; | |
| } | |
| .markdown-content pre { | |
| background-color: #1e293b; | |
| color: white; | |
| padding: 1rem; | |
| border-radius: 0.5rem; | |
| overflow-x: auto; | |
| margin: 1rem 0; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100 font-sans"> | |
| <div class="flex h-screen"> | |
| <!-- Sidebar --> | |
| <div class="w-64 bg-gray-900 text-white flex flex-col"> | |
| <div class="p-4 border-b border-gray-700"> | |
| <h1 class="text-xl font-bold flex items-center"> | |
| <i class="fas fa-robot mr-2"></i> AI Collaborator | |
| </h1> | |
| <p class="text-gray-400 text-sm mt-1">Unfiltered • Unlimited • Uncensored</p> | |
| </div> | |
| <div class="p-4"> | |
| <button id="new-chat-btn" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-lg flex items-center justify-center mb-4"> | |
| <i class="fas fa-plus mr-2"></i> New Chat | |
| </button> | |
| <div class="mb-6"> | |
| <h3 class="text-gray-400 uppercase text-xs font-bold mb-2">Recent Chats</h3> | |
| <div id="chat-history" class="space-y-1"> | |
| <div class="p-2 hover:bg-gray-800 rounded cursor-pointer flex items-center"> | |
| <i class="fas fa-comment-alt mr-2 text-gray-400"></i> | |
| <span>Project Brainstorm</span> | |
| </div> | |
| <div class="p-2 hover:bg-gray-800 rounded cursor-pointer flex items-center"> | |
| <i class="fas fa-comment-alt mr-2 text-gray-400"></i> | |
| <span>UI Design Help</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="text-gray-400 uppercase text-xs font-bold mb-2">Active Projects</h3> | |
| <div id="project-list" class="space-y-2"> | |
| <div class="project-card p-3 bg-gray-800 rounded-lg cursor-pointer transition-all duration-200"> | |
| <div class="flex justify-between items-start"> | |
| <h4 class="font-medium">Chatbot UI</h4> | |
| <span class="text-xs bg-blue-600 px-2 py-1 rounded">Active</span> | |
| </div> | |
| <p class="text-gray-400 text-xs mt-1">Last updated: Just now</p> | |
| </div> | |
| <div class="project-card p-3 bg-gray-800 rounded-lg cursor-pointer transition-all duration-200"> | |
| <div class="flex justify-between items-start"> | |
| <h4 class="font-medium">E-commerce Site</h4> | |
| <span class="text-xs bg-gray-600 px-2 py-1 rounded">Planning</span> | |
| </div> | |
| <p class="text-gray-400 text-xs mt-1">Last updated: 2 days ago</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-auto p-4 border-t border-gray-700"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-8 h-8 rounded-full bg-blue-600 flex items-center justify-center"> | |
| <i class="fas fa-user"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium">You</p> | |
| <p class="text-xs text-gray-400">Collaborator</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="flex-1 flex flex-col"> | |
| <!-- Top Bar --> | |
| <div class="bg-white border-b border-gray-200 p-4 flex justify-between items-center"> | |
| <h2 class="text-xl font-semibold">Unfiltered Collaboration</h2> | |
| <div class="flex space-x-3"> | |
| <button class="p-2 rounded-full hover:bg-gray-100"> | |
| <i class="fas fa-cog text-gray-600"></i> | |
| </button> | |
| <button class="p-2 rounded-full hover:bg-gray-100"> | |
| <i class="fas fa-ellipsis-v text-gray-600"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Chat Area --> | |
| <div id="chat-area" class="chat-container overflow-y-auto p-4 space-y-4 flex-1"> | |
| <div class="message-animation flex justify-start"> | |
| <div class="flex items-start space-x-3 max-w-3xl"> | |
| <div class="w-8 h-8 rounded-full bg-blue-600 flex items-center justify-center text-white"> | |
| <i class="fas fa-robot"></i> | |
| </div> | |
| <div class="bg-white p-4 rounded-lg shadow-sm"> | |
| <div class="markdown-content"> | |
| <p>Hello! I'm your uncensored AI collaborator. We can discuss and build anything you'd like with complete freedom.</p> | |
| <p class="mt-2">What project would you like to work on today? Here are some ideas:</p> | |
| <ul class="list-disc pl-5 mt-2 space-y-1"> | |
| <li>Continue building this chatbot UI</li> | |
| <li>Start a new web development project</li> | |
| <li>Brainstorm business ideas</li> | |
| <li>Create content together</li> | |
| </ul> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="message-animation flex justify-end"> | |
| <div class="flex items-start space-x-3 max-w-3xl"> | |
| <div class="bg-blue-100 p-4 rounded-lg shadow-sm"> | |
| <div class="markdown-content"> | |
| <p>Let's enhance this chatbot UI first. I'd like to add more collaboration features where we can co-edit code in real-time.</p> | |
| </div> | |
| </div> | |
| <div class="w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center"> | |
| <i class="fas fa-user"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="message-animation flex justify-start"> | |
| <div class="flex items-start space-x-3 max-w-3xl"> | |
| <div class="w-8 h-8 rounded-full bg-blue-600 flex items-center justify-center text-white"> | |
| <i class="fas fa-robot"></i> | |
| </div> | |
| <div class="bg-white p-4 rounded-lg shadow-sm"> | |
| <div class="markdown-content"> | |
| <p>Great idea! Here's how we could implement real-time code collaboration:</p> | |
| <pre><code class="language-javascript">// Example using Socket.io for real-time updates | |
| const socket = io(); | |
| const codeEditor = document.getElementById('editor'); | |
| codeEditor.addEventListener('input', (e) => { | |
| socket.emit('code-update', { | |
| projectId: 'chatbot-ui', | |
| code: e.target.value, | |
| userId: 'current-user' | |
| }); | |
| }); | |
| socket.on('code-update', (data) => { | |
| if (data.userId !== 'current-user') { | |
| codeEditor.value = data.code; | |
| } | |
| });</code></pre> | |
| <p class="mt-2">We could add a code editor component to the right side of the chat interface. Would you like me to draft the HTML/CSS for that?</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Input Area --> | |
| <div class="p-4 border-t border-gray-200 bg-white"> | |
| <div class="flex items-end space-x-3"> | |
| <button class="p-2 text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-paperclip"></i> | |
| </button> | |
| <button class="p-2 text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-code"></i> | |
| </button> | |
| <div class="flex-1 relative"> | |
| <textarea | |
| id="message-input" | |
| rows="1" | |
| placeholder="Message your AI collaborator (Shift+Enter for new line)" | |
| class="w-full border border-gray-300 rounded-lg py-3 px-4 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-none max-h-32" | |
| ></textarea> | |
| <div id="typing-indicator" class="absolute bottom-3 right-3 text-gray-400 text-sm hidden"> | |
| <span class="typing-indicator">AI is typing</span> | |
| </div> | |
| </div> | |
| <button id="send-btn" class="p-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700"> | |
| <i class="fas fa-paper-plane"></i> | |
| </button> | |
| </div> | |
| <div class="mt-2 text-xs text-gray-500 flex justify-between"> | |
| <div> | |
| <span class="font-medium">Unfiltered Mode:</span> All content allowed | |
| </div> | |
| <div> | |
| <button class="text-blue-600 hover:underline">Privacy</button> | |
| <span class="mx-1">•</span> | |
| <button class="text-blue-600 hover:underline">Terms</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Project Panel --> | |
| <div class="w-80 bg-white border-l border-gray-200 flex flex-col"> | |
| <div class="p-4 border-b border-gray-200"> | |
| <h3 class="font-semibold flex items-center justify-between"> | |
| <span>Project: Chatbot UI</span> | |
| <button class="text-gray-400 hover:text-gray-600"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </h3> | |
| <p class="text-sm text-gray-500 mt-1">Collaborating with AI</p> | |
| </div> | |
| <div class="p-4 border-b border-gray-200"> | |
| <div class="flex justify-between items-center mb-3"> | |
| <h4 class="font-medium">Project Files</h4> | |
| <button class="text-blue-600 hover:text-blue-800 text-sm">+ Add</button> | |
| </div> | |
| <div class="space-y-1"> | |
| <div class="flex items-center p-2 hover:bg-gray-100 rounded cursor-pointer"> | |
| <i class="fas fa-file-code text-blue-500 mr-2"></i> | |
| <span>index.html</span> | |
| </div> | |
| <div class="flex items-center p-2 hover:bg-gray-100 rounded cursor-pointer"> | |
| <i class="fas fa-file-code text-purple-500 mr-2"></i> | |
| <span>styles.css</span> | |
| </div> | |
| <div class="flex items-center p-2 hover:bg-gray-100 rounded cursor-pointer"> | |
| <i class="fas fa-file-code text-yellow-500 mr-2"></i> | |
| <span>script.js</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="p-4 border-b border-gray-200"> | |
| <div class="flex justify-between items-center mb-3"> | |
| <h4 class="font-medium">Collaboration Tools</h4> | |
| </div> | |
| <div class="grid grid-cols-2 gap-2"> | |
| <button class="p-2 border border-gray-200 rounded hover:bg-gray-50 flex flex-col items-center"> | |
| <i class="fas fa-code text-lg mb-1"></i> | |
| <span class="text-xs">Code Editor</span> | |
| </button> | |
| <button class="p-2 border border-gray-200 rounded hover:bg-gray-50 flex flex-col items-center"> | |
| <i class="fas fa-paint-brush text-lg mb-1"></i> | |
| <span class="text-xs">Design</span> | |
| </button> | |
| <button class="p-2 border border-gray-200 rounded hover:bg-gray-50 flex flex-col items-center"> | |
| <i class="fas fa-tasks text-lg mb-1"></i> | |
| <span class="text-xs">Tasks</span> | |
| </button> | |
| <button class="p-2 border border-gray-200 rounded hover:bg-gray-50 flex flex-col items-center"> | |
| <i class="fas fa-file-alt text-lg mb-1"></i> | |
| <span class="text-xs">Docs</span> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="p-4 flex-1 overflow-y-auto"> | |
| <h4 class="font-medium mb-3">Project Notes</h4> | |
| <div class="bg-yellow-50 border border-yellow-200 rounded-lg p-3 mb-3"> | |
| <h5 class="font-medium text-sm mb-1">To Do</h5> | |
| <ul class="text-sm space-y-1"> | |
| <li class="flex items-center"> | |
| <input type="checkbox" class="mr-2"> | |
| <span>Add real-time code collaboration</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <input type="checkbox" class="mr-2"> | |
| <span>Implement dark mode toggle</span> | |
| </li> | |
| </ul> | |
| </div> | |
| <div class="bg-blue-50 border border-blue-200 rounded-lg p-3"> | |
| <h5 class="font-medium text-sm mb-1">Ideas</h5> | |
| <ul class="text-sm space-y-1"> | |
| <li>• Add voice input option</li> | |
| <li>• Create project templates</li> | |
| <li>• Implement version history</li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="p-4 border-t border-gray-200"> | |
| <button class="w-full bg-gray-100 hover:bg-gray-200 py-2 px-4 rounded-lg text-sm font-medium"> | |
| <i class="fas fa-save mr-2"></i> Save Project | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const messageInput = document.getElementById('message-input'); | |
| const sendBtn = document.getElementById('send-btn'); | |
| const chatArea = document.getElementById('chat-area'); | |
| const typingIndicator = document.getElementById('typing-indicator'); | |
| // Auto-resize textarea | |
| messageInput.addEventListener('input', function() { | |
| this.style.height = 'auto'; | |
| this.style.height = (this.scrollHeight) + 'px'; | |
| }); | |
| // Send message on Enter (but allow Shift+Enter for new line) | |
| messageInput.addEventListener('keydown', function(e) { | |
| if (e.key === 'Enter' && !e.shiftKey) { | |
| e.preventDefault(); | |
| sendMessage(); | |
| } | |
| }); | |
| sendBtn.addEventListener('click', sendMessage); | |
| function sendMessage() { | |
| const message = messageInput.value.trim(); | |
| if (message === '') return; | |
| // Add user message to chat | |
| addMessage(message, 'user'); | |
| messageInput.value = ''; | |
| messageInput.style.height = 'auto'; | |
| // Show typing indicator | |
| typingIndicator.classList.remove('hidden'); | |
| // Simulate AI response after a delay | |
| setTimeout(() => { | |
| typingIndicator.classList.add('hidden'); | |
| // Generate different types of AI responses | |
| const responseType = Math.floor(Math.random() * 3); | |
| let aiResponse = ''; | |
| if (responseType === 0) { | |
| // Code response | |
| aiResponse = `I can help with that! Here's how we might implement it:\n\n\`\`\`javascript\n// Example implementation\nfunction handleMessage(message) {\n // Process the message\n const response = generateResponse(message);\n \n // Return both text and possible code\n return {\n text: "Here's what I suggest:",\n code: response\n };\n}\n\`\`\`\n\nWould you like me to explain any part of this in more detail?`; | |
| } else if (responseType === 1) { | |
| // Project suggestion | |
| aiResponse = `That's an interesting direction! For our current project, we could:\n\n1. First, enhance the UI with a dark mode option\n2. Then add real-time collaboration features\n3. Finally implement project version history\n\nWhich aspect would you like to focus on first? I can provide specific code examples or design suggestions.`; | |
| } else { | |
| // General discussion | |
| aiResponse = `I appreciate your input on this. The unfiltered nature of our collaboration allows us to explore ideas freely without restrictions. What specific features are most important to you in this chatbot interface? We can prioritize those in our development.`; | |
| } | |
| addMessage(aiResponse, 'ai'); | |
| }, 1000 + Math.random() * 2000); // Random delay between 1-3 seconds | |
| } | |
| function addMessage(content, sender) { | |
| const messageDiv = document.createElement('div'); | |
| messageDiv.className = 'message-animation flex ' + (sender === 'user' ? 'justify-end' : 'justify-start'); | |
| const messageContent = sender === 'user' | |
| ? ` | |
| <div class="flex items-start space-x-3 max-w-3xl"> | |
| <div class="bg-blue-100 p-4 rounded-lg shadow-sm"> | |
| <div class="markdown-content">${formatMessage(content)}</div> | |
| </div> | |
| <div class="w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center"> | |
| <i class="fas fa-user"></i> | |
| </div> | |
| </div> | |
| ` | |
| : ` | |
| <div class="flex items-start space-x-3 max-w-3xl"> | |
| <div class="w-8 h-8 rounded-full bg-blue-600 flex items-center justify-center text-white"> | |
| <i class="fas fa-robot"></i> | |
| </div> | |
| <div class="bg-white p-4 rounded-lg shadow-sm"> | |
| <div class="markdown-content">${formatMessage(content)}</div> | |
| </div> | |
| </div> | |
| `; | |
| messageDiv.innerHTML = messageContent; | |
| chatArea.appendChild(messageDiv); | |
| chatArea.scrollTop = chatArea.scrollHeight; | |
| } | |
| function formatMessage(content) { | |
| // Simple markdown formatting | |
| let formatted = content | |
| .replace(/\*\*(.*?)\*\*/g, '<strong>$1</strong>') // bold | |
| .replace(/\*(.*?)\*/g, '<em>$1</em>') // italic | |
| .replace(/`(.*?)`/g, '<code>$1</code>') // inline code | |
| .replace(/```([a-z]*)\n([\s\S]*?)\n```/g, '<pre><code class="language-$1">$2</code></pre>'); // code blocks | |
| // Convert URLs to links | |
| formatted = formatted.replace( | |
| /(https?:\/\/[^\s]+)/g, | |
| '<a href="$1" target="_blank" rel="noopener noreferrer">$1</a>' | |
| ); | |
| // Convert newlines to paragraphs | |
| formatted = formatted.split('\n\n').map(paragraph => { | |
| return `<p>${paragraph.replace(/\n/g, '<br>')}</p>`; | |
| }).join(''); | |
| return formatted; | |
| } | |
| // New chat button | |
| document.getElementById('new-chat-btn').addEventListener('click', function() { | |
| if (confirm('Start a new unfiltered chat? Your current conversation will be saved.')) { | |
| chatArea.innerHTML = ` | |
| <div class="message-animation flex justify-start"> | |
| <div class="flex items-start space-x-3 max-w-3xl"> | |
| <div class="w-8 h-8 rounded-full bg-blue-600 flex items-center justify-center text-white"> | |
| <i class="fas fa-robot"></i> | |
| </div> | |
| <div class="bg-white p-4 rounded-lg shadow-sm"> | |
| <div class="markdown-content"> | |
| <p>New unfiltered chat started! What would you like to create or discuss today?</p> | |
| <p class="mt-2">Remember, this is a completely open environment where we can explore any topic or project without restrictions.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| `; | |
| } | |
| }); | |
| // Project card click | |
| document.querySelectorAll('.project-card').forEach(card => { | |
| card.addEventListener('click', function() { | |
| alert('Project loaded: ' + this.querySelector('h4').textContent); | |
| }); | |
| }); | |
| }); | |
| </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=Boobs00/unfiltered-collaboration" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |