Spaces:
Sleeping
Sleeping
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>ImmoReserv - Apartment Viewing Assistant</title> | |
| <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet"> | |
| <style> | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| min-height: 100vh; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| .chat-container { | |
| background: white; | |
| border-radius: 20px; | |
| box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); | |
| width: 90%; | |
| max-width: 800px; | |
| height: 600px; | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| } | |
| .chat-header { | |
| background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); | |
| color: white; | |
| padding: 20px; | |
| text-align: center; | |
| position: relative; | |
| } | |
| .chat-header h1 { | |
| font-size: 24px; | |
| font-weight: 600; | |
| margin-bottom: 5px; | |
| } | |
| .chat-header p { | |
| font-size: 14px; | |
| opacity: 0.9; | |
| } | |
| .bot-status { | |
| position: absolute; | |
| right: 20px; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .status-indicator { | |
| width: 10px; | |
| height: 10px; | |
| background: #10b981; | |
| border-radius: 50%; | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.5; } | |
| } | |
| .chat-messages { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 20px; | |
| background: #f8fafc; | |
| } | |
| .message { | |
| margin-bottom: 16px; | |
| animation: slideIn 0.3s ease-out; | |
| } | |
| @keyframes slideIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(10px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .message-bot { | |
| display: flex; | |
| align-items: flex-start; | |
| gap: 12px; | |
| } | |
| .message-user { | |
| display: flex; | |
| align-items: flex-start; | |
| gap: 12px; | |
| flex-direction: row-reverse; | |
| } | |
| .avatar { | |
| width: 40px; | |
| height: 40px; | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 16px; | |
| color: white; | |
| flex-shrink: 0; | |
| } | |
| .avatar-bot { | |
| background: linear-gradient(135deg, #4f46e5, #7c3aed); | |
| } | |
| .avatar-user { | |
| background: linear-gradient(135deg, #06b6d4, #3b82f6); | |
| } | |
| .message-content { | |
| max-width: 70%; | |
| padding: 12px 16px; | |
| border-radius: 18px; | |
| line-height: 1.5; | |
| font-size: 14px; | |
| } | |
| .message-bot .message-content { | |
| background: white; | |
| border: 1px solid #e2e8f0; | |
| color: #374151; | |
| } | |
| .message-user .message-content { | |
| background: linear-gradient(135deg, #4f46e5, #7c3aed); | |
| color: white; | |
| } | |
| .typing-indicator { | |
| display: none; | |
| align-items: center; | |
| gap: 12px; | |
| margin-bottom: 16px; | |
| } | |
| .typing-dots { | |
| display: flex; | |
| gap: 4px; | |
| padding: 12px 16px; | |
| background: white; | |
| border: 1px solid #e2e8f0; | |
| border-radius: 18px; | |
| } | |
| .dot { | |
| width: 8px; | |
| height: 8px; | |
| background: #94a3b8; | |
| border-radius: 50%; | |
| animation: typing 1.4s infinite ease-in-out; | |
| } | |
| .dot:nth-child(1) { animation-delay: -0.32s; } | |
| .dot:nth-child(2) { animation-delay: -0.16s; } | |
| @keyframes typing { | |
| 0%, 80%, 100% { | |
| transform: scale(0); | |
| opacity: 0.5; | |
| } | |
| 40% { | |
| transform: scale(1); | |
| opacity: 1; | |
| } | |
| } | |
| .chat-input { | |
| padding: 20px; | |
| background: white; | |
| border-top: 1px solid #e2e8f0; | |
| } | |
| .input-container { | |
| display: flex; | |
| gap: 12px; | |
| align-items: flex-end; | |
| } | |
| .input-wrapper { | |
| flex: 1; | |
| position: relative; | |
| } | |
| #messageInput { | |
| width: 100%; | |
| padding: 12px 16px; | |
| border: 2px solid #e2e8f0; | |
| border-radius: 25px; | |
| font-size: 14px; | |
| resize: none; | |
| max-height: 100px; | |
| min-height: 44px; | |
| outline: none; | |
| transition: border-color 0.2s ease; | |
| } | |
| #messageInput:focus { | |
| border-color: #4f46e5; | |
| } | |
| #sendButton { | |
| width: 44px; | |
| height: 44px; | |
| background: linear-gradient(135deg, #4f46e5, #7c3aed); | |
| border: none; | |
| border-radius: 50%; | |
| color: white; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: transform 0.2s ease, box-shadow 0.2s ease; | |
| font-size: 16px; | |
| } | |
| #sendButton:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3); | |
| } | |
| #sendButton:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| transform: none; | |
| box-shadow: none; | |
| } | |
| .quick-replies { | |
| display: flex; | |
| gap: 8px; | |
| flex-wrap: wrap; | |
| margin-top: 12px; | |
| } | |
| .quick-reply { | |
| padding: 8px 16px; | |
| background: #f1f5f9; | |
| border: 1px solid #e2e8f0; | |
| border-radius: 20px; | |
| font-size: 12px; | |
| color: #475569; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .quick-reply:hover { | |
| background: #4f46e5; | |
| color: white; | |
| border-color: #4f46e5; | |
| } | |
| @media (max-width: 768px) { | |
| .chat-container { | |
| width: 95%; | |
| height: 80vh; | |
| border-radius: 15px; | |
| } | |
| .message-content { | |
| max-width: 85%; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="chat-container"> | |
| <div class="chat-header"> | |
| <h1><i class="fas fa-home"></i> ImmoReserv Assistant</h1> | |
| <p>Your friendly apartment viewing companion</p> | |
| <div class="bot-status"> | |
| <div class="status-indicator"></div> | |
| <span style="font-size: 12px;">Online</span> | |
| </div> | |
| </div> | |
| <div class="chat-messages" id="chatMessages"> | |
| <!-- Messages will be dynamically added here --> | |
| </div> | |
| <div class="typing-indicator" id="typingIndicator"> | |
| <div class="avatar avatar-bot"> | |
| <i class="fas fa-robot"></i> | |
| </div> | |
| <div class="typing-dots"> | |
| <div class="dot"></div> | |
| <div class="dot"></div> | |
| <div class="dot"></div> | |
| </div> | |
| </div> | |
| <div class="chat-input"> | |
| <div class="input-container"> | |
| <div class="input-wrapper"> | |
| <textarea id="messageInput" placeholder="Type your message here..." rows="1"></textarea> | |
| </div> | |
| <button id="sendButton" type="button"> | |
| <i class="fas fa-paper-plane"></i> | |
| </button> | |
| </div> | |
| <div class="quick-replies" id="quickReplies" style="display: none;"> | |
| <!-- Quick reply buttons will be added here --> | |
| </div> | |
| </div> | |
| </div> | |
| <script src="script.js"></script> | |
| </body> | |
| </html> |