profile.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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>个人中心 - LineFunQueue</title>
  7. <!-- Tailwind CSS -->
  8. <script src="https://cdn.tailwindcss.com"></script>
  9. <!-- FontAwesome -->
  10. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  11. <!-- 自定义样式 -->
  12. <link rel="stylesheet" href="../css/custom.css">
  13. <style>
  14. .app-content {
  15. padding-bottom: 60px; /* 为底部导航栏留出空间 */
  16. }
  17. .room-item {
  18. transition: all 0.2s ease;
  19. }
  20. .room-item:hover {
  21. transform: translateY(-2px);
  22. }
  23. </style>
  24. </head>
  25. <body>
  26. <div class="iphone-frame">
  27. <!-- 引入状态栏 -->
  28. <iframe src="../components/status-bar.html" frameborder="0" scrolling="no" style="width:100%; height:44px; overflow:hidden;"></iframe>
  29. <!-- 导航栏 -->
  30. <div class="app-navbar">
  31. <div class="title">个人中心</div>
  32. <div class="right-button">
  33. <i class="fas fa-cog text-gray-600"></i>
  34. </div>
  35. </div>
  36. <!-- 内容区域 -->
  37. <div class="app-content">
  38. <!-- 用户信息 -->
  39. <div class="bg-white p-4">
  40. <div class="flex items-center">
  41. <div class="w-16 h-16 rounded-full overflow-hidden mr-4 border-2 border-primary">
  42. <img src="https://images.unsplash.com/photo-1527980965255-d3b416303d12?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=80&h=80&q=80" class="w-full h-full object-cover" alt="用户头像">
  43. </div>
  44. <div>
  45. <h2 class="text-lg font-bold">林小明</h2>
  46. <div class="flex items-center mt-1">
  47. <span class="text-xs text-gray-500">玩家ID: 12345678</span>
  48. </div>
  49. </div>
  50. </div>
  51. <!-- 个人数据统计 -->
  52. <div class="flex justify-between mt-4 text-center">
  53. <div class="flex-1">
  54. <div class="text-lg font-bold">28</div>
  55. <div class="text-xs text-gray-500">参与游戏</div>
  56. </div>
  57. <div class="flex-1 border-l border-r border-gray-200">
  58. <div class="text-lg font-bold">12</div>
  59. <div class="text-xs text-gray-500">创建房间</div>
  60. </div>
  61. <div class="flex-1">
  62. <div class="text-lg font-bold">92%</div>
  63. <div class="text-xs text-gray-500">解谜成功率</div>
  64. </div>
  65. </div>
  66. </div>
  67. <!-- 我的房间 -->
  68. <div class="app-card mx-3 my-3">
  69. <div class="p-3 border-b border-gray-100 flex justify-between items-center">
  70. <h3 class="font-medium">我的房间</h3>
  71. <span class="text-xs text-primary">查看全部</span>
  72. </div>
  73. <!-- 有房间的视图 -->
  74. <div class="p-3">
  75. <!-- 房间1 - 正在进行中 -->
  76. <a href="room-waiting.html" class="block bg-white border border-gray-200 rounded-lg p-3 mb-2 room-item">
  77. <div class="flex justify-between items-center">
  78. <div class="flex items-center">
  79. <div class="w-10 h-10 rounded-lg overflow-hidden mr-3">
  80. <img src="https://images.unsplash.com/photo-1582845512747-e42001c95638?ixlib=rb-1.2.1&auto=format&fit=crop&w=40&h=40&q=80" class="w-full h-full object-cover" alt="海龟汤">
  81. </div>
  82. <div>
  83. <div class="font-medium text-sm">欢乐海龟汤</div>
  84. <div class="text-xs text-gray-500 mt-0.5">房间码: ABC123</div>
  85. </div>
  86. </div>
  87. <div class="flex flex-col items-end">
  88. <span class="text-xs bg-green-500 text-white px-1.5 py-0.5 rounded-full mb-1">进行中</span>
  89. <span class="text-xs text-gray-500">3/10人</span>
  90. </div>
  91. </div>
  92. </a>
  93. <!-- 房间2 - 等待中 -->
  94. <a href="room-waiting.html" class="block bg-white border border-gray-200 rounded-lg p-3 room-item">
  95. <div class="flex justify-between items-center">
  96. <div class="flex items-center">
  97. <div class="w-10 h-10 rounded-lg overflow-hidden mr-3">
  98. <img src="https://images.unsplash.com/photo-1553481187-be93c21490a9?ixlib=rb-1.2.1&auto=format&fit=crop&w=40&h=40&q=80" class="w-full h-full object-cover" alt="谁是卧底">
  99. </div>
  100. <div>
  101. <div class="font-medium text-sm">趣味谁是卧底</div>
  102. <div class="text-xs text-gray-500 mt-0.5">房间码: DEF456</div>
  103. </div>
  104. </div>
  105. <div class="flex flex-col items-end">
  106. <span class="text-xs bg-blue-500 text-white px-1.5 py-0.5 rounded-full mb-1">等待中</span>
  107. <span class="text-xs text-gray-500">2/8人</span>
  108. </div>
  109. </div>
  110. </a>
  111. </div>
  112. <!-- 创建/加入按钮 -->
  113. <div class="p-3 border-t border-gray-100">
  114. <div class="flex space-x-2">
  115. <a href="room-create.html" class="flex-1 py-2 bg-primary text-white text-sm rounded-md flex items-center justify-center">
  116. <i class="fas fa-plus-circle mr-1"></i> 创建房间
  117. </a>
  118. <a href="room-join.html" class="flex-1 py-2 bg-gray-100 text-gray-700 text-sm rounded-md flex items-center justify-center">
  119. <i class="fas fa-sign-in-alt mr-1"></i> 加入房间
  120. </a>
  121. </div>
  122. </div>
  123. </div>
  124. <!-- 功能菜单 - 简化版 -->
  125. <div class="app-card mx-3">
  126. <a href="#" class="flex items-center justify-between p-3 border-b border-gray-100">
  127. <div class="flex items-center">
  128. <i class="fas fa-history text-blue-500 w-5"></i>
  129. <span class="ml-3 text-sm">游戏历史</span>
  130. </div>
  131. <i class="fas fa-chevron-right text-gray-400 text-xs"></i>
  132. </a>
  133. <a href="#" class="flex items-center justify-between p-3">
  134. <div class="flex items-center">
  135. <i class="fas fa-info-circle text-gray-500 w-5"></i>
  136. <span class="ml-3 text-sm">关于我们</span>
  137. </div>
  138. <i class="fas fa-chevron-right text-gray-400 text-xs"></i>
  139. </a>
  140. </div>
  141. <!-- 最近游戏 -->
  142. <div class="mx-3 mt-3">
  143. <div class="flex justify-between items-center mb-2">
  144. <h3 class="font-medium">历史游戏</h3>
  145. <a href="#" class="text-xs text-primary">清空记录</a>
  146. </div>
  147. <div class="space-y-2">
  148. <!-- 游戏记录1 -->
  149. <div class="bg-white rounded-lg overflow-hidden shadow-sm">
  150. <div class="p-3 flex">
  151. <div class="w-12 h-12 rounded-lg overflow-hidden mr-3">
  152. <img src="https://images.unsplash.com/photo-1582845512747-e42001c95638?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=48&h=48&q=80" class="w-full h-full object-cover" alt="海龟汤">
  153. </div>
  154. <div class="flex-1">
  155. <div class="flex justify-between">
  156. <div class="font-medium text-sm">神秘的手表</div>
  157. <div class="text-xs bg-green-500 text-white px-1.5 py-0.5 rounded-full">已解谜</div>
  158. </div>
  159. <div class="text-xs text-gray-500 mt-1">
  160. <span class="mr-2">海龟汤</span>
  161. <span>昨天 15:30</span>
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. <!-- 游戏记录2 -->
  167. <div class="bg-white rounded-lg overflow-hidden shadow-sm">
  168. <div class="p-3 flex">
  169. <div class="w-12 h-12 rounded-lg overflow-hidden mr-3">
  170. <img src="https://images.unsplash.com/photo-1553481187-be93c21490a9?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=48&h=48&q=80" class="w-full h-full object-cover" alt="谁是卧底">
  171. </div>
  172. <div class="flex-1">
  173. <div class="flex justify-between">
  174. <div class="font-medium text-sm">神秘词语</div>
  175. <div class="text-xs bg-red-500 text-white px-1.5 py-0.5 rounded-full">未完成</div>
  176. </div>
  177. <div class="text-xs text-gray-500 mt-1">
  178. <span class="mr-2">谁是卧底</span>
  179. <span>前天 20:15</span>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186. <!-- 版本信息 -->
  187. <div class="mt-5 text-center text-xs text-gray-400">
  188. <p>LineFunQueue v1.0</p>
  189. <p class="mt-1">© 2023 排队游戏小组</p>
  190. </div>
  191. </div>
  192. <!-- 引入底部导航栏 -->
  193. <iframe src="../components/nav-bar.html" frameborder="0" scrolling="no" style="width:100%; height:50px; overflow:hidden; position:fixed; bottom:0;"></iframe>
  194. </div>
  195. </body>
  196. </html>