Spaces:
Running
Running
can i talk to you before we start?
Browse filesFiles changed (2)
- README.md+9-5
- index.html+76-19
12345678910---title: Chattycodecanvasemoji: 🔥colorFrom: yellowcolorTo: greensdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference1234567891011121314---title: ChattyCodeCanvas 🎨colorFrom: pinkcolorTo: grayemoji: 🐳sdk: staticpinned: falsetags:- deepsite-v3---# Welcome to your new DeepSite project!This project was created with [DeepSite](https://deepsite.hf.co).
12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576<!-- Chat Initiation Button --><div id="chat-starter" class="fixed bottom-6 right-6 bg-blue-500 text-white p-4 rounded-full shadow-lg cursor-pointer hover:bg-blue-600 transition-all"><i data-feather="message-circle"></i></div><!-- Chat Modal --><div id="chat-modal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50"><div class="bg-white rounded-lg shadow-xl w-full max-w-md max-h-[80vh] flex flex-col"><div class="p-4 border-b flex justify-between items-center"><h3 class="text-lg font-semibold">ChattyCodeCanvas Assistant</h3><button id="close-chat" class="text-gray-500 hover:text-gray-700"><i data-feather="x"></i></button></div><div id="chat-messages" class="flex-1 p-4 overflow-y-auto"><div class="text-center text-gray-500 py-4">How can I help you with your project today?</div></div><div class="p-4 border-t"><div class="flex gap-2"><input id="chat-input" type="text" placeholder="Type your message..." class="flex-1 border rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"><button id="send-chat" class="bg-blue-500 text-white px-4 py-2 rounded-lg hover:bg-blue-600 transition-all"><i data-feather="send"></i></button></div></div></div></div><script>document.addEventListener('DOMContentLoaded', function() {feather.replace();const chatStarter = document.getElementById('chat-starter');const chatModal = document.getElementById('chat-modal');const closeChat = document.getElementById('close-chat');const chatInput = document.getElementById('chat-input');const sendChat = document.getElementById('send-chat');const chatMessages = document.getElementById('chat-messages');chatStarter.addEventListener('click', () => {chatModal.classList.remove('hidden');});closeChat.addEventListener('click', () => {chatModal.classList.add('hidden');});sendChat.addEventListener('click', sendMessage);chatInput.addEventListener('keypress', (e) => {if (e.key === 'Enter') sendMessage();});function sendMessage() {const message = chatInput.value.trim();if (message) {addMessage(message, 'user');chatInput.value = '';// Here you would typically send to a backend or processsetTimeout(() => {addMessage("I'm just a frontend demo! In a real app, this would connect to a backend.", 'bot');}, 800);}}function addMessage(text, sender) {const messageDiv = document.createElement('div');messageDiv.className = `mb-4 p-3 rounded-lg max-w-[80%] ${sender === 'user' ? 'bg-blue-100 ml-auto' : 'bg-gray-100'}`;messageDiv.textContent = text;chatMessages.appendChild(messageDiv);chatMessages.scrollTop = chatMessages.scrollHeight;}});</script>
README.md+9-5
index.html+76-19