index.html 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>SoftwareDevHelper - 软件开发学习助手</title>
  7. <link rel="stylesheet" href="/static/style.css">
  8. </head>
  9. <body>
  10. <div class="app-layout">
  11. <!-- 左侧会话列表 -->
  12. <aside class="sidebar left-sidebar">
  13. <button id="new-session-btn" class="primary-btn new-btn">+ 新建会话</button>
  14. <div class="session-list" id="session-list">
  15. <!-- 会话列表动态加载 -->
  16. </div>
  17. </aside>
  18. <!-- 中间主聊天区 -->
  19. <div class="container main-chat">
  20. <header class="chat-header">
  21. <h1 id="current-session-title">👨‍💻 SoftwareDevHelper</h1>
  22. <p>你的专属软件开发学习助手</p>
  23. </header>
  24. <main>
  25. <div class="chat-container" id="chat-container">
  26. <!-- 聊天消息会动态插入这里 -->
  27. </div>
  28. <div class="input-area">
  29. <div class="file-upload">
  30. <label for="project-upload" class="upload-btn">上传项目 (.zip)</label>
  31. <input type="file" id="project-upload" accept=".zip" style="display: none;">
  32. <span id="file-name">未选择文件</span>
  33. </div>
  34. <div class="text-input">
  35. <textarea id="user-input" placeholder="输入你的问题或回复..." rows="3"></textarea>
  36. <button id="send-btn">发送</button>
  37. </div>
  38. </div>
  39. </main>
  40. </div>
  41. <!-- 右侧用户水平和记录窗口 -->
  42. <aside class="sidebar right-sidebar">
  43. <div class="user-profile">
  44. <h3>用户档案</h3>
  45. <div class="level-section">
  46. <label for="user-level">当前水平:</label>
  47. <select id="user-level">
  48. <option value="beginner">初学者 (Beginner)</option>
  49. <option value="intermediate">中级 (Intermediate)</option>
  50. <option value="advanced">高级 (Advanced)</option>
  51. </select>
  52. </div>
  53. <div class="history-section">
  54. <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;">
  55. <h4 style="margin: 0;">做题记录</h4>
  56. <button id="reset-memory-btn" style="background: none; border: none; font-size: 14px; cursor: pointer; color: #e74c3c;" title="清空记录并重置水平">🗑️ 清空</button>
  57. </div>
  58. <ul id="history-list" class="history-list">
  59. <!-- 记录动态加载 -->
  60. </ul>
  61. </div>
  62. </div>
  63. </aside>
  64. </div>
  65. <script src="/static/app.js"></script>
  66. </body>
  67. </html>