Browse Source

feat demo

0235702 3 days ago
parent
commit
2eee6f7b29
1 changed files with 573 additions and 0 deletions
  1. 573 0
      interview-web/demo/ai_login.html

+ 573 - 0
interview-web/demo/ai_login.html

@@ -0,0 +1,573 @@
+<!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>