Files
dsProject/dsLightRag/static/JiMeng/history.html

235 lines
14 KiB
HTML
Raw Normal View History

2025-08-21 07:53:15 +08:00
<!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://picsum.photos/350/200?random=1" alt="视频预览" class="history-item-preview">
<div>
<span class="history-item-type">视频</span>
<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://picsum.photos/350/200?random=2" 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-eye"></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://picsum.photos/350/200?random=3" alt="脚本预览" class="history-item-preview">
<div>
<span class="history-item-type">脚本</span>
<span class="history-item-type">提示词</span>
</div>
<p class="history-item-description">专业分镜头脚本详细讲解化学元素周期表的结构、规律和应用包含5个主要镜头和转场效果。</p>
<div class="history-item-actions">
<a href="#" class="btn btn-primary"><i class="fas fa-file-alt"></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">2</button>
<button class="pagination-button">3</button>
<button class="pagination-button">...</button>
<button class="pagination-button">10</button>
<button class="pagination-button"><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 });
alert('搜索功能将在后端集成后实现');
});
// 为删除按钮添加确认提示
document.querySelectorAll('.btn-danger').forEach(button => {
button.addEventListener('click', function() {
if (confirm('确定要删除这条记录吗?')) {
// 这里可以添加实际的删除逻辑
alert('删除功能将在后端集成后实现');
}
});
});
// 为查看和复用按钮添加提示
document.querySelectorAll('.btn-primary, .btn-secondary').forEach(button => {
button.addEventListener('click', function() {
alert('此功能将在后端集成后实现');
});
});
});
</script>
</body>
</html>