index.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>LocalFoodAI Chat</title>
  7. <meta name="description" content="LocalFoodAI Assistant for Nutritional Information and Menu Proposals">
  8. <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
  9. <link rel="stylesheet" href="/static/style.css">
  10. </head>
  11. <body>
  12. <div class="app-container">
  13. <header class="chat-header">
  14. <div class="brand">
  15. <div class="logo">🍳</div>
  16. <div>
  17. <h1>LocalFoodAI</h1>
  18. <span class="status-indicator"></span><span class="status-text">Local LLM Ready</span>
  19. </div>
  20. </div>
  21. <div class="actions">
  22. <button id="clear-chat" title="Clear Chat">
  23. <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 6h18M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2"></path></svg>
  24. </button>
  25. </div>
  26. </header>
  27. <main class="chat-container" id="chat-container">
  28. <div class="message system">
  29. <div class="avatar">🤖</div>
  30. <div class="message-content">
  31. <p>Hello! I am LocalFoodAI, your completely local nutrition and menu assistant. How can I help you today?</p>
  32. </div>
  33. </div>
  34. </main>
  35. <footer class="chat-input-area">
  36. <form id="chat-form" class="input-form">
  37. <textarea id="user-input" placeholder="Ask about recipes, nutrition, menus..." rows="1" required></textarea>
  38. <button type="submit" id="send-btn" class="send-btn" aria-label="Send message">
  39. <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon></svg>
  40. </button>
  41. </form>
  42. <div class="footer-note">Powered by Llama 3.1 8B running locally on Ubuntu 24.04 via Ollama</div>
  43. </footer>
  44. </div>
  45. <script src="/static/script.js"></script>
  46. </body>
  47. </html>