123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>AI面试助手 - 首页</title>
- <!-- 国内CDN引入 -->
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.2/css/all.min.css">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@9.4.1/swiper-bundle.min.css">
- <style>
- :root {
- --primary-blue: #2A5CAA;
- --accent-orange: #FF6B35;
- --bg-light: #F5F7FA;
- --text-dark: #2D3748;
- --success-green: #48BB78;
- --card-shadow: 0 10px 20px rgba(0,0,0,0.08);
- }
-
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
- }
-
- body {
- background-color: var(--bg-light);
- color: var(--text-dark);
- line-height: 1.6;
- }
-
- .container {
- max-width: 800px;
- margin: 0 auto;
- padding: 20px;
- }
-
- /* 顶部导航 */
- .header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 30px;
- }
-
- .logo {
- font-size: 24px;
- font-weight: bold;
- background: linear-gradient(to right, var(--primary-blue), var(--accent-orange));
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- }
-
- .user-avatar {
- width: 40px;
- height: 40px;
- border-radius: 50%;
- background-color: var(--primary-blue);
- display: flex;
- justify-content: center;
- align-items: center;
- color: white;
- font-size: 18px;
- }
-
- /* 用户欢迎区域 */
- .welcome-section {
- margin-bottom: 30px;
- }
-
- .welcome-card {
- background: linear-gradient(135deg, var(--primary-blue), #3A7BD5);
- color: white;
- border-radius: 16px;
- padding: 25px;
- box-shadow: var(--card-shadow);
- position: relative;
- overflow: hidden;
- }
-
- .welcome-card::after {
- content: '';
- position: absolute;
- top: -50px;
- right: -50px;
- width: 200px;
- height: 200px;
- background: rgba(255,255,255,0.1);
- border-radius: 50%;
- }
-
- .welcome-title {
- font-size: 22px;
- margin-bottom: 10px;
- font-weight: 500;
- position: relative;
- z-index: 1;
- }
-
- .welcome-subtitle {
- font-size: 16px;
- opacity: 0.9;
- margin-bottom: 20px;
- position: relative;
- z-index: 1;
- }
-
- .start-btn {
- background-color: white;
- color: var(--primary-blue);
- border: none;
- padding: 12px 25px;
- border-radius: 30px;
- font-size: 16px;
- font-weight: 500;
- cursor: pointer;
- display: inline-flex;
- align-items: center;
- box-shadow: 0 4px 15px rgba(0,0,0,0.1);
- transition: all 0.3s ease;
- position: relative;
- z-index: 1;
- }
-
- .start-btn:hover {
- transform: translateY(-3px);
- box-shadow: 0 6px 20px rgba(0,0,0,0.15);
- }
-
- .start-btn i {
- margin-left: 8px;
- }
-
- /* 岗位推荐轮播 */
- .section-title {
- font-size: 20px;
- margin-bottom: 20px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
-
- .see-all {
- font-size: 14px;
- color: var(--primary-blue);
- text-decoration: none;
- }
-
- .swiper {
- width: 100%;
- height: 100%;
- margin-bottom: 40px;
- }
-
- .swiper-slide {
- background: white;
- border-radius: 12px;
- padding: 20px;
- box-shadow: var(--card-shadow);
- cursor: pointer;
- transition: all 0.3s ease;
- }
-
- .swiper-slide:hover {
- transform: translateY(-5px);
- box-shadow: 0 15px 30px rgba(0,0,0,0.12);
- }
-
- .job-card {
- height: 100%;
- display: flex;
- flex-direction: column;
- }
-
- .job-header {
- display: flex;
- justify-content: space-between;
- margin-bottom: 15px;
- }
-
- .job-title {
- font-size: 18px;
- font-weight: 600;
- }
-
- .job-salary {
- color: var(--accent-orange);
- font-weight: bold;
- }
-
- .job-company {
- display: flex;
- align-items: center;
- margin-bottom: 15px;
- }
-
- .company-logo {
- width: 30px;
- height: 30px;
- border-radius: 6px;
- background-color: #EDF2F7;
- margin-right: 10px;
- display: flex;
- justify-content: center;
- align-items: center;
- color: var(--primary-blue);
- font-size: 12px;
- }
-
- .company-name {
- font-size: 14px;
- color: #718096;
- }
-
- .job-tags {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
- margin-bottom: 15px;
- }
-
- .tag {
- background: #EDF2F7;
- padding: 4px 10px;
- border-radius: 20px;
- font-size: 12px;
- color: #4A5568;
- }
-
- .match-bar {
- margin-top: auto;
- }
-
- .match-text {
- display: flex;
- justify-content: space-between;
- margin-bottom: 5px;
- font-size: 14px;
- }
-
- .match-value {
- color: var(--primary-blue);
- font-weight: 600;
- }
-
- .progress-bar {
- height: 6px;
- background: #EDF2F7;
- border-radius: 3px;
- overflow: hidden;
- }
-
- .progress-fill {
- height: 100%;
- border-radius: 3px;
- background: linear-gradient(to right, var(--primary-blue), var(--accent-orange));
- }
-
- /* 快速入口 */
- .quick-actions {
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- gap: 15px;
- margin-bottom: 30px;
- }
-
- .action-card {
- background: white;
- border-radius: 12px;
- padding: 20px;
- box-shadow: var(--card-shadow);
- text-align: center;
- cursor: pointer;
- transition: all 0.3s ease;
- }
-
- .action-card:hover {
- transform: translateY(-3px);
- box-shadow: 0 10px 25px rgba(0,0,0,0.1);
- }
-
- .action-icon {
- width: 50px;
- height: 50px;
- border-radius: 50%;
- background: linear-gradient(135deg, var(--primary-blue), #3A7BD5);
- display: flex;
- justify-content: center;
- align-items: center;
- color: white;
- font-size: 20px;
- margin: 0 auto 15px;
- }
-
- .action-title {
- font-size: 16px;
- font-weight: 500;
- margin-bottom: 5px;
- }
-
- .action-desc {
- font-size: 12px;
- color: #718096;
- }
-
- /* 底部导航 */
- .bottom-nav {
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- background: white;
- box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
- padding: 10px 0;
- z-index: 100;
- }
-
- .nav-container {
- max-width: 800px;
- margin: 0 auto;
- display: flex;
- justify-content: space-around;
- }
-
- .nav-item {
- display: flex;
- flex-direction: column;
- align-items: center;
- color: #718096;
- text-decoration: none;
- font-size: 12px;
- }
-
- .nav-item.active {
- color: var(--primary-blue);
- }
-
- .nav-icon {
- font-size: 20px;
- margin-bottom: 5px;
- }
-
- /* 响应式调整 */
- @media (max-width: 600px) {
- .container {
- padding: 15px;
- padding-bottom: 70px; /* 为底部导航留空间 */
- }
-
- .welcome-card {
- padding: 20px;
- }
-
- .welcome-title {
- font-size: 20px;
- }
-
- .quick-actions {
- grid-template-columns: 1fr;
- }
- }
- </style>
- </head>
- <body>
- <div class="container">
- <!-- 顶部导航 -->
- <div class="header">
- <div class="logo">AI面试官</div>
- <div class="user-avatar">
- <i class="fas fa-user"></i>
- </div>
- </div>
-
- <!-- 欢迎区域 -->
- <div class="welcome-section">
- <div class="welcome-card">
- <h1 class="welcome-title">下午好,李华</h1>
- <p class="welcome-subtitle">您有3个匹配的岗位待面试,准备好了吗?</p>
- <button class="start-btn">
- 开始模拟面试 <i class="fas fa-arrow-right"></i>
- </button>
- </div>
- </div>
-
- <!-- 岗位推荐 -->
- <div class="job-section">
- <h2 class="section-title">
- 为您推荐
- <a href="#" class="see-all">查看全部</a>
- </h2>
-
- <div class="swiper mySwiper">
- <div class="swiper-wrapper">
- <!-- 岗位卡片1 -->
- <div class="swiper-slide">
- <div class="job-card">
- <div class="job-header">
- <h3 class="job-title">前端开发工程师</h3>
- <div class="job-salary">25-40K·15薪</div>
- </div>
- <div class="job-company">
- <div class="company-logo">TX</div>
- <div class="company-name">腾讯科技 · 深圳</div>
- </div>
- <div class="job-tags">
- <span class="tag">Vue.js</span>
- <span class="tag">React</span>
- <span class="tag">TypeScript</span>
- </div>
- <div class="match-bar">
- <div class="match-text">
- <span>匹配度</span>
- <span class="match-value">87%</span>
- </div>
- <div class="progress-bar">
- <div class="progress-fill" style="width: 87%"></div>
- </div>
- </div>
- </div>
- </div>
-
- <!-- 岗位卡片2 -->
- <div class="swiper-slide">
- <div class="job-card">
- <div class="job-header">
- <h3 class="job-title">Java高级工程师</h3>
- <div class="job-salary">30-50K·16薪</div>
- </div>
- <div class="job-company">
- <div class="company-logo">AL</div>
- <div class="company-name">阿里巴巴 · 杭州</div>
- </div>
- <div class="job-tags">
- <span class="tag">Spring Cloud</span>
- <span class="tag">分布式</span>
- <span class="tag">MySQL</span>
- </div>
- <div class="match-bar">
- <div class="match-text">
- <span>匹配度</span>
- <span class="match-value">76%</span>
- </div>
- <div class="progress-bar">
- <div class="progress-fill" style="width: 76%"></div>
- </div>
- </div>
- </div>
- </div>
-
- <!-- 岗位卡片3 -->
- <div class="swiper-slide">
- <div class="job-card">
- <div class="job-header">
- <h3 class="job-title">产品经理</h3>
- <div class="job-salary">20-35K·14薪</div>
- </div>
- <div class="job-company">
- <div class="company-logo">BD</div>
- <div class="company-name">百度 · 北京</div>
- </div>
- <div class="job-tags">
- <span class="tag">Axure</span>
- <span class="tag">用户研究</span>
- <span class="tag">PRD</span>
- </div>
- <div class="match-bar">
- <div class="match-text">
- <span>匹配度</span>
- <span class="match-value">92%</span>
- </div>
- <div class="progress-bar">
- <div class="progress-fill" style="width: 92%"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <!-- 快速入口 -->
- <div class="quick-section">
- <h2 class="section-title">快速开始</h2>
-
- <div class="quick-actions">
- <div class="action-card">
- <div class="action-icon">
- <i class="fas fa-robot"></i>
- </div>
- <h3 class="action-title">AI模拟面试</h3>
- <p class="action-desc">智能评估您的表现</p>
- </div>
-
- <div class="action-card">
- <div class="action-icon" style="background: linear-gradient(135deg, #9F7AEA, #6B46C1);">
- <i class="fas fa-vr-cardboard"></i>
- </div>
- <h3 class="action-title">VR企业展厅</h3>
- <p class="action-desc">沉浸式了解企业</p>
- </div>
-
- <div class="action-card">
- <div class="action-icon" style="background: linear-gradient(135deg, #F6AD55, #DD6B20);">
- <i class="fas fa-book"></i>
- </div>
- <h3 class="action-title">面试题库</h3>
- <p class="action-desc">海量真题练习</p>
- </div>
-
- <div class="action-card">
- <div class="action-icon" style="background: linear-gradient(135deg, #48BB78, #38A169);">
- <i class="fas fa-chart-line"></i>
- </div>
- <h3 class="action-title">成长报告</h3>
- <p class="action-desc">查看历史表现</p>
- </div>
- </div>
- </div>
- </div>
-
- <!-- 底部导航 -->
- <div class="bottom-nav">
- <div class="nav-container">
- <a href="#" class="nav-item active">
- <i class="fas fa-home nav-icon"></i>
- <span>首页</span>
- </a>
- <a href="#" class="nav-item">
- <i class="fas fa-search nav-icon"></i>
- <span>发现</span>
- </a>
- <a href="#" class="nav-item">
- <i class="fas fa-comments nav-icon"></i>
- <span>面试</span>
- </a>
- <a href="#" class="nav-item">
- <i class="fas fa-user nav-icon"></i>
- <span>我的</span>
- </a>
- </div>
- </div>
-
- <!-- Swiper JS -->
- <script src="https://cdn.jsdelivr.net/npm/swiper@9.4.1/swiper-bundle.min.js"></script>
-
- <script>
- // 初始化轮播
- const swiper = new Swiper(".mySwiper", {
- slidesPerView: 1.1,
- spaceBetween: 15,
- grabCursor: true,
- breakpoints: {
- 600: {
- slidesPerView: 2.1,
- spaceBetween: 20
- }
- }
- });
-
- // 模拟点击事件
- document.querySelector('.start-btn').addEventListener('click', function() {
- alert('即将跳转到面试准备页面');
- });
-
- document.querySelectorAll('.job-card, .action-card').forEach(card => {
- card.addEventListener('click', function() {
- alert('即将跳转到对应功能页面');
- });
- });
- </script>
- </body>
- </html>
|