Files
dsProject/dsLightRag/static/JiMeng/history.html
2025-08-21 11:54:59 +08:00

209 lines
12 KiB
HTML

<!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>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; }
body { background-color: #f5f7fa; color: #333; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
header { text-align: center; padding: 40px 20px; background: linear-gradient(135deg, #3498db, #8e44ad); color: white; border-radius: 10px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
h1 { font-size: 2rem; margin-bottom: 10px; font-weight: 700; }
/* 导航栏样式 */
.navbar { background-color: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1); border-radius: 6px; margin-bottom: 30px; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.navbar-brand { font-size: 1.5rem; font-weight: bold; color: #3498db; text-decoration: none; }
.navbar-links { display: flex; gap: 20px; }
.navbar-link { color: #333; text-decoration: none; padding: 8px 15px; border-radius: 6px; transition: background 0.3s; }
.navbar-link:hover { background-color: #f5f7fa; }
.navbar-link.active { background-color: #e8f4fd; color: #3498db; font-weight: 500; }
/* 筛选栏样式 */
.filter-bar { background-color: white; padding: 15px 20px; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 30px; display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.filter-group { display: flex; flex-direction: column; }
.filter-label { font-weight: 500; margin-bottom: 5px; color: #555; }
.filter-input, .filter-select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.filter-button { padding: 8px 15px; background-color: #3498db; color: white; border: none; border-radius: 4px; cursor: pointer; transition: background 0.3s; align-self: flex-end; }
.filter-button:hover { background-color: #2980b9; }
/* 历史记录列表样式 */
.history-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; margin-bottom: 40px; }
.history-item { background-color: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.history-item:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.history-item-header { padding: 15px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.history-item-title { font-size: 1.2rem; font-weight: 600; color: #2c3e50; }
.history-item-date { color: #7f8c8d; font-size: 0.9rem; }
.history-item-content { padding: 15px; }
.history-item-preview { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; margin-bottom: 15px; }
.history-item-description { color: #666; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.history-item-type { display: inline-block; padding: 3px 8px; background-color: #e8f4fd; color: #3498db; border-radius: 4px; font-size: 0.8rem; margin-right: 5px; }
.history-item-actions { display: flex; justify-content: space-between; margin-top: 15px; }
.btn { padding: 8px 15px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; transition: background 0.3s; text-decoration: none; display: inline-block; }
.btn-primary { background-color: #3498db; color: white; }
.btn-primary:hover { background-color: #2980b9; }
.btn-secondary { background-color: #95a5a6; color: white; }
.btn-secondary:hover { background-color: #7f8c8d; }
.btn-danger { background-color: #e74c3c; color: white; }
.btn-danger:hover { background-color: #c0392b; }
/* 分页样式 */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.pagination-button { padding: 8px 15px; background-color: white; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; transition: background 0.3s; }
.pagination-button:hover { background-color: #f5f7fa; }
.pagination-button.active { background-color: #3498db; color: white; border-color: #3498db; }
.pagination-button:disabled { opacity: 0.5; cursor: not-allowed; }
footer { text-align: center; padding: 30px 0; margin-top: 60px; color: #7f8c8d; border-top: 1px solid #eee; }
@media screen and (max-width: 768px) {
.navbar { flex-direction: column; gap: 15px; }
.navbar-links { width: 100%; justify-content: center; }
.filter-bar { flex-direction: column; align-items: stretch; }
.filter-button { align-self: stretch; }
.history-list { grid-template-columns: 1fr; }
}
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body>
<div class="container">
<header>
<h1>历史记录</h1>
<p>查看和管理您之前生成的教学视频内容</p>
</header>
<nav class="navbar">
<a href="index.html" class="navbar-brand">教学视频AI</a>
<div class="navbar-links">
<a href="index.html" class="navbar-link">首页</a>
<a href="prompt_input.html" class="navbar-link">创建提示词</a>
<a href="history.html" class="navbar-link active"><i class="fas fa-history"></i> 历史记录</a>
</div>
</nav>
<!-- 筛选栏 -->
<div class="filter-bar">
<div class="filter-group">
<label class="filter-label">内容类型</label>
<select class="filter-select" id="content-type">
<option value="all">全部内容</option>
<option value="prompt">提示词</option>
<option value="image">生成图片</option>
<option value="script">分镜头脚本</option>
<option value="video">视频</option>
</select>
</div>
<div class="filter-group">
<label class="filter-label">日期范围</label>
<input type="date" class="filter-input" id="date-from">
</div>
<div class="filter-group">
<label class="filter-label"></label>
<input type="date" class="filter-input" id="date-to">
</div>
<div class="filter-group">
<label class="filter-label">关键词</label>
<input type="text" class="filter-input" id="keyword" placeholder="输入关键词搜索">
</div>
<button class="filter-button" id="search-button"><i class="fas fa-search"></i> 搜索</button>
</div>
<!-- 历史记录列表 -->
<div class="history-list" id="history-list">
<!-- 案例1 -->
<div class="history-item">
<div class="history-item-header">
<div class="history-item-title">老婆婆与小女孩</div>
<div class="history-item-date">2023-11-15</div>
</div>
<div class="history-item-content">
<img src="https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/JiMeng/OldWomenAndLittleGirl.jpg" alt="视频预览" class="history-item-preview">
<div>
<span class="history-item-type">视频</span>
<span class="history-item-type">故事</span>
</div>
<p class="history-item-description">讲述老婆婆与小女孩之间温馨互动的感人故事,展现人性的美好与善良。</p>
<div class="history-item-actions">
<a href="#" class="btn btn-primary"><i class="fas fa-play"></i> 查看</a>
<a href="#" class="btn btn-secondary"><i class="fas fa-redo"></i> 复用</a>
<button class="btn btn-danger"><i class="fas fa-trash-alt"></i> 删除</button>
</div>
</div>
</div>
<!-- 案例2 -->
<div class="history-item">
<div class="history-item-header">
<div class="history-item-title">雨伞与快递车</div>
<div class="history-item-date">2023-11-10</div>
</div>
<div class="history-item-content">
<img src="https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/JiMeng/d0d62a64-86b0-4511-9dff-f8bf7d6570d1.jpg" alt="视频预览" class="history-item-preview">
<div>
<span class="history-item-type">视频</span>
<span class="history-item-type">故事</span>
</div>
<p class="history-item-description">描绘雨天里快递员与顾客之间的暖心互动,展现平凡职业中的坚守与理解。</p>
<div class="history-item-actions">
<a href="#" class="btn btn-primary"><i class="fas fa-play"></i> 查看</a>
<a href="#" class="btn btn-secondary"><i class="fas fa-redo"></i> 复用</a>
<button class="btn btn-danger"><i class="fas fa-trash-alt"></i> 删除</button>
</div>
</div>
</div>
<!-- 案例3 -->
<div class="history-item">
<div class="history-item-header">
<div class="history-item-title">女孩与小狗</div>
<div class="history-item-date">2023-11-05</div>
</div>
<div class="history-item-content">
<img src="https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/JiMeng/5c72b5b1-736b-446d-82b0-d0c57713fe53.jpg" alt="视频预览" class="history-item-preview">
<div>
<span class="history-item-type">视频</span>
<span class="history-item-type">故事</span>
</div>
<p class="history-item-description">讲述孤独女孩与流浪小狗相识相知的故事,展现陪伴与爱的力量。</p>
<div class="history-item-actions">
<a href="#" class="btn btn-primary"><i class="fas fa-play"></i> 查看</a>
<a href="#" class="btn btn-secondary"><i class="fas fa-redo"></i> 复用</a>
<button class="btn btn-danger"><i class="fas fa-trash-alt"></i> 删除</button>
</div>
</div>
</div>
</div>
<!-- 分页 -->
<div class="pagination">
<button class="pagination-button" disabled><i class="fas fa-chevron-left"></i></button>
<button class="pagination-button active">1</button>
<button class="pagination-button" disabled><i class="fas fa-chevron-right"></i></button>
</div>
<footer>
<p>© 2023 教学视频AI生成智能体 | 让教育内容创作更简单</p>
</footer>
</div>
<script>
// 模拟数据加载
document.addEventListener('DOMContentLoaded', function() {
// 这里可以添加实际的数据加载逻辑
console.log('历史记录页面加载完成');
// 搜索按钮点击事件
document.getElementById('search-button').addEventListener('click', function() {
const contentType = document.getElementById('content-type').value;
const dateFrom = document.getElementById('date-from').value;
const dateTo = document.getElementById('date-to').value;
const keyword = document.getElementById('keyword').value;
// 这里可以添加搜索逻辑
console.log('搜索条件:', { contentType, dateFrom, dateTo, keyword });
});
});
</script>
</body>
</html>