Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Meet Your AI Assistant</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> | |
| @keyframes float { | |
| 0% { transform: translateY(0px); } | |
| 50% { transform: translateY(-10px); } | |
| 100% { transform: translateY(0px); } | |
| } | |
| .floating { | |
| animation: float 3s ease-in-out infinite; | |
| } | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%); | |
| } | |
| .card-hover:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .typewriter { | |
| overflow: hidden; | |
| border-right: .15em solid #6e8efb; | |
| white-space: nowrap; | |
| margin: 0 auto; | |
| letter-spacing: .15em; | |
| animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite; | |
| } | |
| @keyframes typing { | |
| from { width: 0 } | |
| to { width: 100% } | |
| } | |
| @keyframes blink-caret { | |
| from, to { border-color: transparent } | |
| 50% { border-color: #6e8efb; } | |
| } | |
| .chat-bubble { | |
| border-radius: 1.25rem; | |
| position: relative; | |
| max-width: 80%; | |
| } | |
| .user-bubble { | |
| background-color: #6366f1; | |
| color: white; | |
| margin-left: auto; | |
| } | |
| .ai-bubble { | |
| background-color: #f3f4f6; | |
| color: #1f2937; | |
| margin-right: auto; | |
| } | |
| .typing-indicator { | |
| display: flex; | |
| padding: 10px; | |
| } | |
| .typing-dot { | |
| width: 8px; | |
| height: 8px; | |
| background-color: #9ca3af; | |
| border-radius: 50%; | |
| margin: 0 2px; | |
| animation: typing-dot 1.4s infinite ease-in-out; | |
| } | |
| .typing-dot:nth-child(1) { | |
| animation-delay: 0s; | |
| } | |
| .typing-dot:nth-child(2) { | |
| animation-delay: 0.2s; | |
| } | |
| .typing-dot:nth-child(3) { | |
| animation-delay: 0.4s; | |
| } | |
| @keyframes typing-dot { | |
| 0%, 60%, 100% { transform: translateY(0); } | |
| 30% { transform: translateY(-5px); } | |
| } | |
| </style> | |
| </head> | |
| <body class="min-h-screen gradient-bg flex items-center justify-center p-4"> | |
| <div class="max-w-4xl w-full bg-white rounded-2xl shadow-2xl overflow-hidden transition-all duration-300 transform hover:scale-[1.02]"> | |
| <div class="md:flex"> | |
| <!-- Left Side - Visual Representation --> | |
| <div class="md:w-1/3 bg-indigo-50 p-8 flex flex-col items-center justify-center"> | |
| <div class="relative floating mb-6"> | |
| <div class="w-40 h-40 rounded-full bg-indigo-100 flex items-center justify-center shadow-lg"> | |
| <i class="fas fa-robot text-6xl text-indigo-500"></i> | |
| </div> | |
| <div class="absolute -bottom-2 -right-2 bg-green-400 rounded-full w-10 h-10 flex items-center justify-center shadow-md"> | |
| <i class="fas fa-bolt text-white"></i> | |
| </div> | |
| </div> | |
| <h2 class="text-2xl font-bold text-indigo-800 mb-2">AI 助手</h2> | |
| <p class="text-indigo-600 text-center mb-6">您的智能数字助手</p> | |
| <div class="w-full bg-white rounded-lg p-4 shadow"> | |
| <div class="flex items-center"> | |
| <div class="w-3 h-3 rounded-full bg-red-400 mr-2"></div> | |
| <div class="w-3 h-3 rounded-full bg-yellow-400 mr-2"></div> | |
| <div class="w-3 h-3 rounded-full bg-green-400"></div> | |
| </div> | |
| <div class="mt-4 h-4 bg-indigo-100 rounded-full w-full"></div> | |
| <div class="mt-2 h-4 bg-indigo-100 rounded-full w-3/4"></div> | |
| <div class="mt-2 h-4 bg-indigo-100 rounded-full w-1/2"></div> | |
| </div> | |
| </div> | |
| <!-- Right Side - Chat Interface --> | |
| <div class="md:w-2/3 p-6 flex flex-col h-96"> | |
| <div class="flex items-center mb-6"> | |
| <div class="w-3 h-3 rounded-full bg-green-400 mr-2"></div> | |
| <h3 class="text-lg font-semibold text-gray-700">在线</h3> | |
| </div> | |
| <!-- Chat Messages --> | |
| <div class="flex-1 overflow-y-auto space-y-4" id="chat-container"> | |
| <!-- User Message --> | |
| <div class="flex justify-end"> | |
| <div class="chat-bubble user-bubble px-4 py-2"> | |
| 你是谁? | |
| </div> | |
| </div> | |
| <!-- AI Response --> | |
| <div class="flex"> | |
| <div class="chat-bubble ai-bubble px-4 py-3"> | |
| <p class="font-medium text-indigo-600">你好!</p> | |
| <p class="mt-1">我是一个人工智能助手,专门设计来帮助你解答问题、提供信息和完成各种任务。</p> | |
| <p class="mt-2">你可以问我任何问题,我会尽力提供准确和有用的回答!</p> | |
| <div class="mt-3 flex space-x-2"> | |
| <span class="px-2 py-1 bg-indigo-100 text-indigo-800 rounded-full text-xs">智能助手</span> | |
| <span class="px-2 py-1 bg-indigo-100 text-indigo-800 rounded-full text-xs">24/7 在线</span> | |
| <span class="px-2 py-1 bg-indigo-100 text-indigo-800 rounded-full text-xs">多语言</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Input Area --> | |
| <div class="mt-4 flex items-center border-t pt-4"> | |
| <input type="text" placeholder="输入你的问题..." class="flex-1 border border-gray-300 rounded-full py-2 px-4 focus:outline-none focus:ring-2 focus:ring-indigo-500"> | |
| <button class="ml-2 bg-indigo-500 text-white rounded-full p-2 hover:bg-indigo-600 transition-colors"> | |
| <i class="fas fa-paper-plane"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Simple animation for the chat interface | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const chatContainer = document.getElementById('chat-container'); | |
| // Simulate typing indicator | |
| const typingIndicator = document.createElement('div'); | |
| typingIndicator.className = 'flex'; | |
| typingIndicator.innerHTML = ` | |
| <div class="chat-bubble ai-bubble px-4 py-2"> | |
| <div class="typing-indicator"> | |
| <div class="typing-dot"></div> | |
| <div class="typing-dot"></div> | |
| <div class="typing-dot"></div> | |
| </div> | |
| </div> | |
| `; | |
| // Add typing indicator temporarily | |
| setTimeout(() => { | |
| chatContainer.appendChild(typingIndicator); | |
| // Remove typing indicator and add final message | |
| setTimeout(() => { | |
| chatContainer.removeChild(typingIndicator); | |
| const finalMessage = document.createElement('div'); | |
| finalMessage.className = 'flex'; | |
| finalMessage.innerHTML = ` | |
| <div class="chat-bubble ai-bubble px-4 py-3"> | |
| <p>需要我帮忙做什么吗?我随时为您服务!</p> | |
| </div> | |
| `; | |
| chatContainer.appendChild(finalMessage); | |
| chatContainer.scrollTop = chatContainer.scrollHeight; | |
| }, 1500); | |
| }, 3000); | |
| }); | |
| </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=echo3700/echogao2025" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |