ai_login.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  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>AI面试助手 - 首页</title>
  7. <!-- 国内CDN引入 -->
  8. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.2/css/all.min.css">
  9. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@9.4.1/swiper-bundle.min.css">
  10. <style>
  11. :root {
  12. --primary-blue: #2A5CAA;
  13. --accent-orange: #FF6B35;
  14. --bg-light: #F5F7FA;
  15. --text-dark: #2D3748;
  16. --success-green: #48BB78;
  17. --card-shadow: 0 10px 20px rgba(0,0,0,0.08);
  18. }
  19. * {
  20. margin: 0;
  21. padding: 0;
  22. box-sizing: border-box;
  23. font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  24. }
  25. body {
  26. background-color: var(--bg-light);
  27. color: var(--text-dark);
  28. line-height: 1.6;
  29. }
  30. .container {
  31. max-width: 800px;
  32. margin: 0 auto;
  33. padding: 20px;
  34. }
  35. /* 顶部导航 */
  36. .header {
  37. display: flex;
  38. justify-content: space-between;
  39. align-items: center;
  40. margin-bottom: 30px;
  41. }
  42. .logo {
  43. font-size: 24px;
  44. font-weight: bold;
  45. background: linear-gradient(to right, var(--primary-blue), var(--accent-orange));
  46. -webkit-background-clip: text;
  47. -webkit-text-fill-color: transparent;
  48. }
  49. .user-avatar {
  50. width: 40px;
  51. height: 40px;
  52. border-radius: 50%;
  53. background-color: var(--primary-blue);
  54. display: flex;
  55. justify-content: center;
  56. align-items: center;
  57. color: white;
  58. font-size: 18px;
  59. }
  60. /* 用户欢迎区域 */
  61. .welcome-section {
  62. margin-bottom: 30px;
  63. }
  64. .welcome-card {
  65. background: linear-gradient(135deg, var(--primary-blue), #3A7BD5);
  66. color: white;
  67. border-radius: 16px;
  68. padding: 25px;
  69. box-shadow: var(--card-shadow);
  70. position: relative;
  71. overflow: hidden;
  72. }
  73. .welcome-card::after {
  74. content: '';
  75. position: absolute;
  76. top: -50px;
  77. right: -50px;
  78. width: 200px;
  79. height: 200px;
  80. background: rgba(255,255,255,0.1);
  81. border-radius: 50%;
  82. }
  83. .welcome-title {
  84. font-size: 22px;
  85. margin-bottom: 10px;
  86. font-weight: 500;
  87. position: relative;
  88. z-index: 1;
  89. }
  90. .welcome-subtitle {
  91. font-size: 16px;
  92. opacity: 0.9;
  93. margin-bottom: 20px;
  94. position: relative;
  95. z-index: 1;
  96. }
  97. .start-btn {
  98. background-color: white;
  99. color: var(--primary-blue);
  100. border: none;
  101. padding: 12px 25px;
  102. border-radius: 30px;
  103. font-size: 16px;
  104. font-weight: 500;
  105. cursor: pointer;
  106. display: inline-flex;
  107. align-items: center;
  108. box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  109. transition: all 0.3s ease;
  110. position: relative;
  111. z-index: 1;
  112. }
  113. .start-btn:hover {
  114. transform: translateY(-3px);
  115. box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  116. }
  117. .start-btn i {
  118. margin-left: 8px;
  119. }
  120. /* 岗位推荐轮播 */
  121. .section-title {
  122. font-size: 20px;
  123. margin-bottom: 20px;
  124. display: flex;
  125. justify-content: space-between;
  126. align-items: center;
  127. }
  128. .see-all {
  129. font-size: 14px;
  130. color: var(--primary-blue);
  131. text-decoration: none;
  132. }
  133. .swiper {
  134. width: 100%;
  135. height: 100%;
  136. margin-bottom: 40px;
  137. }
  138. .swiper-slide {
  139. background: white;
  140. border-radius: 12px;
  141. padding: 20px;
  142. box-shadow: var(--card-shadow);
  143. cursor: pointer;
  144. transition: all 0.3s ease;
  145. }
  146. .swiper-slide:hover {
  147. transform: translateY(-5px);
  148. box-shadow: 0 15px 30px rgba(0,0,0,0.12);
  149. }
  150. .job-card {
  151. height: 100%;
  152. display: flex;
  153. flex-direction: column;
  154. }
  155. .job-header {
  156. display: flex;
  157. justify-content: space-between;
  158. margin-bottom: 15px;
  159. }
  160. .job-title {
  161. font-size: 18px;
  162. font-weight: 600;
  163. }
  164. .job-salary {
  165. color: var(--accent-orange);
  166. font-weight: bold;
  167. }
  168. .job-company {
  169. display: flex;
  170. align-items: center;
  171. margin-bottom: 15px;
  172. }
  173. .company-logo {
  174. width: 30px;
  175. height: 30px;
  176. border-radius: 6px;
  177. background-color: #EDF2F7;
  178. margin-right: 10px;
  179. display: flex;
  180. justify-content: center;
  181. align-items: center;
  182. color: var(--primary-blue);
  183. font-size: 12px;
  184. }
  185. .company-name {
  186. font-size: 14px;
  187. color: #718096;
  188. }
  189. .job-tags {
  190. display: flex;
  191. flex-wrap: wrap;
  192. gap: 8px;
  193. margin-bottom: 15px;
  194. }
  195. .tag {
  196. background: #EDF2F7;
  197. padding: 4px 10px;
  198. border-radius: 20px;
  199. font-size: 12px;
  200. color: #4A5568;
  201. }
  202. .match-bar {
  203. margin-top: auto;
  204. }
  205. .match-text {
  206. display: flex;
  207. justify-content: space-between;
  208. margin-bottom: 5px;
  209. font-size: 14px;
  210. }
  211. .match-value {
  212. color: var(--primary-blue);
  213. font-weight: 600;
  214. }
  215. .progress-bar {
  216. height: 6px;
  217. background: #EDF2F7;
  218. border-radius: 3px;
  219. overflow: hidden;
  220. }
  221. .progress-fill {
  222. height: 100%;
  223. border-radius: 3px;
  224. background: linear-gradient(to right, var(--primary-blue), var(--accent-orange));
  225. }
  226. /* 快速入口 */
  227. .quick-actions {
  228. display: grid;
  229. grid-template-columns: repeat(2, 1fr);
  230. gap: 15px;
  231. margin-bottom: 30px;
  232. }
  233. .action-card {
  234. background: white;
  235. border-radius: 12px;
  236. padding: 20px;
  237. box-shadow: var(--card-shadow);
  238. text-align: center;
  239. cursor: pointer;
  240. transition: all 0.3s ease;
  241. }
  242. .action-card:hover {
  243. transform: translateY(-3px);
  244. box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  245. }
  246. .action-icon {
  247. width: 50px;
  248. height: 50px;
  249. border-radius: 50%;
  250. background: linear-gradient(135deg, var(--primary-blue), #3A7BD5);
  251. display: flex;
  252. justify-content: center;
  253. align-items: center;
  254. color: white;
  255. font-size: 20px;
  256. margin: 0 auto 15px;
  257. }
  258. .action-title {
  259. font-size: 16px;
  260. font-weight: 500;
  261. margin-bottom: 5px;
  262. }
  263. .action-desc {
  264. font-size: 12px;
  265. color: #718096;
  266. }
  267. /* 底部导航 */
  268. .bottom-nav {
  269. position: fixed;
  270. bottom: 0;
  271. left: 0;
  272. right: 0;
  273. background: white;
  274. box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
  275. padding: 10px 0;
  276. z-index: 100;
  277. }
  278. .nav-container {
  279. max-width: 800px;
  280. margin: 0 auto;
  281. display: flex;
  282. justify-content: space-around;
  283. }
  284. .nav-item {
  285. display: flex;
  286. flex-direction: column;
  287. align-items: center;
  288. color: #718096;
  289. text-decoration: none;
  290. font-size: 12px;
  291. }
  292. .nav-item.active {
  293. color: var(--primary-blue);
  294. }
  295. .nav-icon {
  296. font-size: 20px;
  297. margin-bottom: 5px;
  298. }
  299. /* 响应式调整 */
  300. @media (max-width: 600px) {
  301. .container {
  302. padding: 15px;
  303. padding-bottom: 70px; /* 为底部导航留空间 */
  304. }
  305. .welcome-card {
  306. padding: 20px;
  307. }
  308. .welcome-title {
  309. font-size: 20px;
  310. }
  311. .quick-actions {
  312. grid-template-columns: 1fr;
  313. }
  314. }
  315. </style>
  316. </head>
  317. <body>
  318. <div class="container">
  319. <!-- 顶部导航 -->
  320. <div class="header">
  321. <div class="logo">AI面试官</div>
  322. <div class="user-avatar">
  323. <i class="fas fa-user"></i>
  324. </div>
  325. </div>
  326. <!-- 欢迎区域 -->
  327. <div class="welcome-section">
  328. <div class="welcome-card">
  329. <h1 class="welcome-title">下午好,李华</h1>
  330. <p class="welcome-subtitle">您有3个匹配的岗位待面试,准备好了吗?</p>
  331. <button class="start-btn">
  332. 开始模拟面试 <i class="fas fa-arrow-right"></i>
  333. </button>
  334. </div>
  335. </div>
  336. <!-- 岗位推荐 -->
  337. <div class="job-section">
  338. <h2 class="section-title">
  339. 为您推荐
  340. <a href="#" class="see-all">查看全部</a>
  341. </h2>
  342. <div class="swiper mySwiper">
  343. <div class="swiper-wrapper">
  344. <!-- 岗位卡片1 -->
  345. <div class="swiper-slide">
  346. <div class="job-card">
  347. <div class="job-header">
  348. <h3 class="job-title">前端开发工程师</h3>
  349. <div class="job-salary">25-40K·15薪</div>
  350. </div>
  351. <div class="job-company">
  352. <div class="company-logo">TX</div>
  353. <div class="company-name">腾讯科技 · 深圳</div>
  354. </div>
  355. <div class="job-tags">
  356. <span class="tag">Vue.js</span>
  357. <span class="tag">React</span>
  358. <span class="tag">TypeScript</span>
  359. </div>
  360. <div class="match-bar">
  361. <div class="match-text">
  362. <span>匹配度</span>
  363. <span class="match-value">87%</span>
  364. </div>
  365. <div class="progress-bar">
  366. <div class="progress-fill" style="width: 87%"></div>
  367. </div>
  368. </div>
  369. </div>
  370. </div>
  371. <!-- 岗位卡片2 -->
  372. <div class="swiper-slide">
  373. <div class="job-card">
  374. <div class="job-header">
  375. <h3 class="job-title">Java高级工程师</h3>
  376. <div class="job-salary">30-50K·16薪</div>
  377. </div>
  378. <div class="job-company">
  379. <div class="company-logo">AL</div>
  380. <div class="company-name">阿里巴巴 · 杭州</div>
  381. </div>
  382. <div class="job-tags">
  383. <span class="tag">Spring Cloud</span>
  384. <span class="tag">分布式</span>
  385. <span class="tag">MySQL</span>
  386. </div>
  387. <div class="match-bar">
  388. <div class="match-text">
  389. <span>匹配度</span>
  390. <span class="match-value">76%</span>
  391. </div>
  392. <div class="progress-bar">
  393. <div class="progress-fill" style="width: 76%"></div>
  394. </div>
  395. </div>
  396. </div>
  397. </div>
  398. <!-- 岗位卡片3 -->
  399. <div class="swiper-slide">
  400. <div class="job-card">
  401. <div class="job-header">
  402. <h3 class="job-title">产品经理</h3>
  403. <div class="job-salary">20-35K·14薪</div>
  404. </div>
  405. <div class="job-company">
  406. <div class="company-logo">BD</div>
  407. <div class="company-name">百度 · 北京</div>
  408. </div>
  409. <div class="job-tags">
  410. <span class="tag">Axure</span>
  411. <span class="tag">用户研究</span>
  412. <span class="tag">PRD</span>
  413. </div>
  414. <div class="match-bar">
  415. <div class="match-text">
  416. <span>匹配度</span>
  417. <span class="match-value">92%</span>
  418. </div>
  419. <div class="progress-bar">
  420. <div class="progress-fill" style="width: 92%"></div>
  421. </div>
  422. </div>
  423. </div>
  424. </div>
  425. </div>
  426. </div>
  427. </div>
  428. <!-- 快速入口 -->
  429. <div class="quick-section">
  430. <h2 class="section-title">快速开始</h2>
  431. <div class="quick-actions">
  432. <div class="action-card">
  433. <div class="action-icon">
  434. <i class="fas fa-robot"></i>
  435. </div>
  436. <h3 class="action-title">AI模拟面试</h3>
  437. <p class="action-desc">智能评估您的表现</p>
  438. </div>
  439. <div class="action-card">
  440. <div class="action-icon" style="background: linear-gradient(135deg, #9F7AEA, #6B46C1);">
  441. <i class="fas fa-vr-cardboard"></i>
  442. </div>
  443. <h3 class="action-title">VR企业展厅</h3>
  444. <p class="action-desc">沉浸式了解企业</p>
  445. </div>
  446. <div class="action-card">
  447. <div class="action-icon" style="background: linear-gradient(135deg, #F6AD55, #DD6B20);">
  448. <i class="fas fa-book"></i>
  449. </div>
  450. <h3 class="action-title">面试题库</h3>
  451. <p class="action-desc">海量真题练习</p>
  452. </div>
  453. <div class="action-card">
  454. <div class="action-icon" style="background: linear-gradient(135deg, #48BB78, #38A169);">
  455. <i class="fas fa-chart-line"></i>
  456. </div>
  457. <h3 class="action-title">成长报告</h3>
  458. <p class="action-desc">查看历史表现</p>
  459. </div>
  460. </div>
  461. </div>
  462. </div>
  463. <!-- 底部导航 -->
  464. <div class="bottom-nav">
  465. <div class="nav-container">
  466. <a href="#" class="nav-item active">
  467. <i class="fas fa-home nav-icon"></i>
  468. <span>首页</span>
  469. </a>
  470. <a href="#" class="nav-item">
  471. <i class="fas fa-search nav-icon"></i>
  472. <span>发现</span>
  473. </a>
  474. <a href="#" class="nav-item">
  475. <i class="fas fa-comments nav-icon"></i>
  476. <span>面试</span>
  477. </a>
  478. <a href="#" class="nav-item">
  479. <i class="fas fa-user nav-icon"></i>
  480. <span>我的</span>
  481. </a>
  482. </div>
  483. </div>
  484. <!-- Swiper JS -->
  485. <script src="https://cdn.jsdelivr.net/npm/swiper@9.4.1/swiper-bundle.min.js"></script>
  486. <script>
  487. // 初始化轮播
  488. const swiper = new Swiper(".mySwiper", {
  489. slidesPerView: 1.1,
  490. spaceBetween: 15,
  491. grabCursor: true,
  492. breakpoints: {
  493. 600: {
  494. slidesPerView: 2.1,
  495. spaceBetween: 20
  496. }
  497. }
  498. });
  499. // 模拟点击事件
  500. document.querySelector('.start-btn').addEventListener('click', function() {
  501. alert('即将跳转到面试准备页面');
  502. });
  503. document.querySelectorAll('.job-card, .action-card').forEach(card => {
  504. card.addEventListener('click', function() {
  505. alert('即将跳转到对应功能页面');
  506. });
  507. });
  508. </script>
  509. </body>
  510. </html>