Spaces:
Sleeping
Sleeping
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Chef Bot</title> | |
| <link rel="stylesheet" href="/static/styles.css"> | |
| <style> | |
| .popup { | |
| display: none; | |
| position: fixed; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%); | |
| background: white; | |
| padding: 20px; | |
| border: 1px solid #ccc; | |
| border-radius: 5px; | |
| box-shadow: 0 0 10px rgba(0,0,0,0.1); | |
| z-index: 1000; | |
| max-height: 80vh; | |
| overflow-y: auto; | |
| } | |
| .popup-content { | |
| max-width: 300px; | |
| } | |
| .close-btn { | |
| position: absolute; | |
| top: 10px; | |
| right: 10px; | |
| cursor: pointer; | |
| } | |
| .reset-btn { | |
| position: absolute; | |
| top: 10px; | |
| right: 10px; | |
| background: none; | |
| border: none; | |
| font-size: 20px; | |
| cursor: pointer; | |
| color: #f28c38; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="chat-container"> | |
| <div class="chat-header">🍳 Chef Bot | |
| <button class="reset-btn" onclick="resetChat()">↻</button> | |
| </div> | |
| <div class="chat-messages" id="chatMessages"> | |
| <div class="bot-message">Hi there! I'm Chef Bot! May I know your name?</div> | |
| </div> | |
| <div class="chat-input"> | |
| <input type="text" id="userInput" placeholder="Type your response..."> | |
| <button onclick="sendMessage()">Send</button> | |
| </div> | |
| </div> | |
| <div id="popup" class="popup"> | |
| <span class="close-btn" onclick="closePopup()">×</span> | |
| <div class="popup-content" id="popupContent"></div> | |
| </div> | |
| <script src="/static/script.js"></script> | |
| </body> | |
| </html> |