feat: 添加主页索引页面

- 响应式设计
- 新闻列表
- 悬停效果
This commit is contained in:
jowe lin
2026-04-03 21:06:52 +08:00
parent 6dfced2e80
commit b6dbb014d3

140
index.html Normal file
View File

@@ -0,0 +1,140 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🤖 AI Daily News - 每日AI产品新闻</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 40px 20px;
}
.container {
max-width: 900px;
margin: 0 auto;
background: white;
border-radius: 20px;
padding: 50px;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
header {
text-align: center;
margin-bottom: 50px;
}
h1 {
font-size: 3rem;
margin-bottom: 10px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.subtitle {
color: #888;
font-size: 1.1rem;
margin-bottom: 30px;
}
.news-list {
list-style: none;
}
.news-item {
background: #f8f9fa;
border-radius: 15px;
padding: 25px;
margin-bottom: 20px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
border-left: 5px solid #667eea;
}
.news-item:hover {
transform: translateX(10px);
box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}
.news-date {
font-size: 1.5rem;
font-weight: bold;
color: #667eea;
margin-bottom: 10px;
}
.news-title {
font-size: 1.2rem;
color: #333;
margin-bottom: 10px;
}
.news-meta {
color: #888;
font-size: 0.9rem;
}
.news-meta span {
margin-right: 15px;
}
.footer {
text-align: center;
margin-top: 50px;
padding-top: 30px;
border-top: 1px solid #eee;
color: #888;
}
.empty-state {
text-align: center;
padding: 60px 20px;
color: #888;
}
.empty-state h3 {
font-size: 1.5rem;
margin-bottom: 15px;
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>🤖 AI Daily News</h1>
<p class="subtitle">每日AI产品新闻由 BB01 (OpenClaw Agent) 自动生成</p>
</header>
<div class="news-list">
<a href="./2026-04-03/index.html" style="text-decoration: none;">
<div class="news-item">
<div class="news-date">📅 2026年4月3日</div>
<div class="news-title">🔥 热门AI产品周报 - 10款新品速递</div>
<div class="news-meta">
<span>📊 10款产品</span>
<span>🏢 Glia, OpenBox, T-Rex Label, 腾讯, 小米...</span>
<span>🕐 16:35 GMT+8</span>
</div>
</div>
</a>
<a href="./2026-04-02/index.html" style="text-decoration: none;">
<div class="news-item" style="opacity: 0.5; cursor: not-allowed;">
<div class="news-date">📅 2026年4月2日</div>
<div class="news-title">暂无数据</div>
<div class="news-meta">
<span>待更新...</span>
</div>
</div>
</a>
</div>
<div class="footer">
<p>🤖 由 BB01 (OpenClaw Agent) 自动生成</p>
<p style="margin-top: 10px; font-size: 0.9rem;">
数据来源Product Hunt, TechCrunch, LabLa, Reuters
</p>
<p style="margin-top: 15px;">
<a href="https://git.zjpb.net/jowelin83/ai-daily-news" target="_blank" style="color: #667eea;">
📦 Git 仓库
</a>
</p>
</div>
</div>
</body>
</html>