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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="zh-CN">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>成长助手 - 自我提升与事项记录</title>
|
| 7 |
+
<meta name="description" content="专注于个人成长和事项管理的智能助手,帮助您建立好习惯,记录重要事项,实现自我提升">
|
| 8 |
+
<style>
|
| 9 |
+
* {
|
| 10 |
+
margin: 0;
|
| 11 |
+
padding: 0;
|
| 12 |
+
box-sizing: border-box;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
body {
|
| 16 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
| 17 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 18 |
+
min-height: 100vh;
|
| 19 |
+
color: #333;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.container {
|
| 23 |
+
max-width: 1200px;
|
| 24 |
+
margin: 0 auto;
|
| 25 |
+
padding: 0 20px;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
/* 顶部导航栏 */
|
| 29 |
+
.navbar {
|
| 30 |
+
background: rgba(255, 255, 255, 0.1);
|
| 31 |
+
backdrop-filter: blur(10px);
|
| 32 |
+
padding: 1rem 0;
|
| 33 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
.nav-content {
|
| 37 |
+
display: flex;
|
| 38 |
+
justify-content: space-between;
|
| 39 |
+
align-items: center;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
.logo {
|
| 43 |
+
font-size: 1.5rem;
|
| 44 |
+
font-weight: bold;
|
| 45 |
+
color: white;
|
| 46 |
+
text-decoration: none;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.nav-links {
|
| 50 |
+
display: flex;
|
| 51 |
+
gap: 2rem;
|
| 52 |
+
list-style: none;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
.nav-links a {
|
| 56 |
+
color: white;
|
| 57 |
+
text-decoration: none;
|
| 58 |
+
transition: opacity 0.3s;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
.nav-links a:hover {
|
| 62 |
+
opacity: 0.8;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
/* 主标题区域 */
|
| 66 |
+
.hero {
|
| 67 |
+
text-align: center;
|
| 68 |
+
padding: 4rem 0;
|
| 69 |
+
color: white;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
.hero h1 {
|
| 73 |
+
font-size: 3rem;
|
| 74 |
+
margin-bottom: 1rem;
|
| 75 |
+
background: linear-gradient(45deg, #fff, #f0f0f0);
|
| 76 |
+
-webkit-background-clip: text;
|
| 77 |
+
-webkit-text-fill-color: transparent;
|
| 78 |
+
background-clip: text;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
.hero p {
|
| 82 |
+
font-size: 1.2rem;
|
| 83 |
+
opacity: 0.9;
|
| 84 |
+
margin-bottom: 2rem;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
/* 功能卡片网格 */
|
| 88 |
+
.features-grid {
|
| 89 |
+
display: grid;
|
| 90 |
+
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
| 91 |
+
gap: 2rem;
|
| 92 |
+
margin: 3rem 0;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
.feature-card {
|
| 96 |
+
background: white;
|
| 97 |
+
border-radius: 20px;
|
| 98 |
+
padding: 2rem;
|
| 99 |
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
| 100 |
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 101 |
+
cursor: pointer;
|
| 102 |
+
position: relative;
|
| 103 |
+
overflow: hidden;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
.feature-card::before {
|
| 107 |
+
content: '';
|
| 108 |
+
position: absolute;
|
| 109 |
+
top: 0;
|
| 110 |
+
left: 0;
|
| 111 |
+
right: 0;
|
| 112 |
+
height: 4px;
|
| 113 |
+
background: linear-gradient(90deg, #667eea, #764ba2);
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
.feature-card:hover {
|
| 117 |
+
transform: translateY(-5px);
|
| 118 |
+
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
.feature-icon {
|
| 122 |
+
width: 60px;
|
| 123 |
+
height: 60px;
|
| 124 |
+
background: linear-gradient(135deg, #667eea, #764ba2);
|
| 125 |
+
border-radius: 15px;
|
| 126 |
+
display: flex;
|
| 127 |
+
align-items: center;
|
| 128 |
+
justify-content: center;
|
| 129 |
+
margin-bottom: 1.5rem;
|
| 130 |
+
color: white;
|
| 131 |
+
font-size: 1.5rem;
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
.feature-card h3 {
|
| 135 |
+
font-size: 1.3rem;
|
| 136 |
+
margin-bottom: 1rem;
|
| 137 |
+
color: #333;
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
.feature-card p {
|
| 141 |
+
color: #666;
|
| 142 |
+
line-height: 1.6;
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
/* 今日概览 */
|
| 146 |
+
.today-overview {
|
| 147 |
+
background: white;
|
| 148 |
+
border-radius: 20px;
|
| 149 |
+
padding: 2rem;
|
| 150 |
+
margin: 3rem 0;
|
| 151 |
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
.overview-header {
|
| 155 |
+
display: flex;
|
| 156 |
+
justify-content: space-between;
|
| 157 |
+
align-items: center;
|
| 158 |
+
margin-bottom: 2rem;
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
.overview-header h2 {
|
| 162 |
+
font-size: 1.5rem;
|
| 163 |
+
color: #333;
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
.date-display {
|
| 167 |
+
color: #666;
|
| 168 |
+
font-size: 0.9rem;
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
.stats-grid {
|
| 172 |
+
display: grid;
|
| 173 |
+
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
|
| 174 |
+
gap: 1.5rem;
|
| 175 |
+
}
|
| 176 |
+
|
| 177 |
+
.stat-item {
|
| 178 |
+
text-align: center;
|
| 179 |
+
padding: 1rem;
|
| 180 |
+
background: #f8f9fa;
|
| 181 |
+
border-radius: 15px;
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
.stat-number {
|
| 185 |
+
font-size: 2rem;
|
| 186 |
+
font-weight: bold;
|
| 187 |
+
color: #667eea;
|
| 188 |
+
margin-bottom: 0.5rem;
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
.stat-label {
|
| 192 |
+
color: #666;
|
| 193 |
+
font-size: 0.9rem;
|
| 194 |
+
}
|
| 195 |
+
|
| 196 |
+
/* 快速记录 */
|
| 197 |
+
.quick-add {
|
| 198 |
+
background: white;
|
| 199 |
+
border-radius: 20px;
|
| 200 |
+
padding: 2rem;
|
| 201 |
+
margin: 3rem 0;
|
| 202 |
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
.quick-add h3 {
|
| 206 |
+
margin-bottom: 1.5rem;
|
| 207 |
+
color: #333;
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
.add-form {
|
| 211 |
+
display: flex;
|
| 212 |
+
gap: 1rem;
|
| 213 |
+
align-items: center;
|
| 214 |
+
}
|
| 215 |
+
|
| 216 |
+
.add-input {
|
| 217 |
+
flex: 1;
|
| 218 |
+
padding: 1rem;
|
| 219 |
+
border: 2px solid #e9ecef;
|
| 220 |
+
border-radius: 12px;
|
| 221 |
+
font-size: 1rem;
|
| 222 |
+
transition: border-color 0.3s;
|
| 223 |
+
}
|
| 224 |
+
|
| 225 |
+
.add-input:focus {
|
| 226 |
+
outline: none;
|
| 227 |
+
border-color: #667eea;
|
| 228 |
+
}
|
| 229 |
+
|
| 230 |
+
.add-btn {
|
| 231 |
+
padding: 1rem 2rem;
|
| 232 |
+
background: linear-gradient(135deg, #667eea, #764ba2);
|
| 233 |
+
color: white;
|
| 234 |
+
border: none;
|
| 235 |
+
border-radius: 12px;
|
| 236 |
+
cursor: pointer;
|
| 237 |
+
font-size: 1rem;
|
| 238 |
+
transition: transform 0.2s;
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
.add-btn:hover {
|
| 242 |
+
transform: translateY(-2px);
|
| 243 |
+
}
|
| 244 |
+
|
| 245 |
+
/* 最近事项 */
|
| 246 |
+
.recent-items {
|
| 247 |
+
background: white;
|
| 248 |
+
border-radius: 20px;
|
| 249 |
+
padding: 2rem;
|
| 250 |
+
margin: 3rem 0;
|
| 251 |
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
.recent-items h3 {
|
| 255 |
+
margin-bottom: 1.5rem;
|
| 256 |
+
color: #333;
|
| 257 |
+
}
|
| 258 |
+
|
| 259 |
+
.item-list {
|
| 260 |
+
display: flex;
|
| 261 |
+
flex-direction: column;
|
| 262 |
+
gap: 1rem;
|
| 263 |
+
}
|
| 264 |
+
|
| 265 |
+
.item {
|
| 266 |
+
display: flex;
|
| 267 |
+
align-items: center;
|
| 268 |
+
padding: 1rem;
|
| 269 |
+
background: #f8f9fa;
|
| 270 |
+
border-radius: 12px;
|
| 271 |
+
transition: background 0.3s;
|
| 272 |
+
}
|
| 273 |
+
|
| 274 |
+
.item:hover {
|
| 275 |
+
background: #e9ecef;
|
| 276 |
+
}
|
| 277 |
+
|
| 278 |
+
.item-checkbox {
|
| 279 |
+
width: 20px;
|
| 280 |
+
height: 20px;
|
| 281 |
+
margin-right: 1rem;
|
| 282 |
+
accent-color: #667eea;
|
| 283 |
+
}
|
| 284 |
+
|
| 285 |
+
.item-content {
|
| 286 |
+
flex: 1;
|
| 287 |
+
}
|
| 288 |
+
|
| 289 |
+
.item-title {
|
| 290 |
+
font-weight: 500;
|
| 291 |
+
margin-bottom: 0.25rem;
|
| 292 |
+
}
|
| 293 |
+
|
| 294 |
+
.item-time {
|
| 295 |
+
font-size: 0.85rem;
|
| 296 |
+
color: #666;
|
| 297 |
+
}
|
| 298 |
+
|
| 299 |
+
.item-category {
|
| 300 |
+
padding: 0.25rem 0.75rem;
|
| 301 |
+
background: #667eea;
|
| 302 |
+
color: white;
|
| 303 |
+
border-radius: 20px;
|
| 304 |
+
font-size: 0.8rem;
|
| 305 |
+
}
|
| 306 |
+
|
| 307 |
+
/* 页脚 */
|
| 308 |
+
.footer {
|
| 309 |
+
background: rgba(0, 0, 0, 0.2);
|
| 310 |
+
color: white;
|
| 311 |
+
text-align: center;
|
| 312 |
+
padding: 2rem 0;
|
| 313 |
+
margin-top: 4rem;
|
| 314 |
+
}
|
| 315 |
+
|
| 316 |
+
.footer p {
|
| 317 |
+
margin-bottom: 1rem;
|
| 318 |
+
}
|
| 319 |
+
|
| 320 |
+
.footer a {
|
| 321 |
+
color: #fff;
|
| 322 |
+
text-decoration: none;
|
| 323 |
+
padding: 0.5rem 1rem;
|
| 324 |
+
background: rgba(255, 255, 255, 0.1);
|
| 325 |
+
border-radius: 20px;
|
| 326 |
+
transition: background 0.3s;
|
| 327 |
+
}
|
| 328 |
+
|
| 329 |
+
.footer a:hover {
|
| 330 |
+
background: rgba(255, 255, 255, 0.2);
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
/* 响应式设计 */
|
| 334 |
+
@media (max-width: 768px) {
|
| 335 |
+
.hero h1 {
|
| 336 |
+
font-size: 2rem;
|
| 337 |
+
}
|
| 338 |
+
|
| 339 |
+
.nav-links {
|
| 340 |
+
display: none;
|
| 341 |
+
}
|
| 342 |
+
|
| 343 |
+
.add-form {
|
| 344 |
+
flex-direction: column;
|
| 345 |
+
}
|
| 346 |
+
|
| 347 |
+
.add-btn {
|
| 348 |
+
width: 100%;
|
| 349 |
+
}
|
| 350 |
+
|
| 351 |
+
.stats-grid {
|
| 352 |
+
grid-template-columns: repeat(2, 1fr);
|
| 353 |
+
}
|
| 354 |
+
}
|
| 355 |
+
|
| 356 |
+
/* 动画 */
|
| 357 |
+
@keyframes fadeInUp {
|
| 358 |
+
from {
|
| 359 |
+
opacity: 0;
|
| 360 |
+
transform: translateY(30px);
|
| 361 |
+
}
|
| 362 |
+
to {
|
| 363 |
+
opacity: 1;
|
| 364 |
+
transform: translateY(0);
|
| 365 |
+
}
|
| 366 |
+
}
|
| 367 |
+
|
| 368 |
+
.feature-card,
|
| 369 |
+
.today-overview,
|
| 370 |
+
.quick-add,
|
| 371 |
+
.recent-items {
|
| 372 |
+
animation: fadeInUp 0.6s ease-out;
|
| 373 |
+
}
|
| 374 |
+
</style>
|
| 375 |
+
</head>
|
| 376 |
+
<body>
|
| 377 |
+
<!-- 顶部导航栏 -->
|
| 378 |
+
<nav class="navbar">
|
| 379 |
+
<div class="container">
|
| 380 |
+
<div class="nav-content">
|
| 381 |
+
<a href="#" class="logo">🌱 成长助手</a>
|
| 382 |
+
<ul class="nav-links">
|
| 383 |
+
<li><a href="#goals">目标</a></li>
|
| 384 |
+
<li><a href="#habits">习惯</a></li>
|
| 385 |
+
<li><a href="#journal">日记</a></li>
|
| 386 |
+
<li><a href="#progress">进度</a></li>
|
| 387 |
+
</ul>
|
| 388 |
+
</div>
|
| 389 |
+
</div>
|
| 390 |
+
</nav>
|
| 391 |
+
|
| 392 |
+
<!-- 主标题区域 -->
|
| 393 |
+
<section class="hero">
|
| 394 |
+
<div class="container">
|
| 395 |
+
<h1>记录成长,遇见更好的自己</h1>
|
| 396 |
+
<p>专注个人成长的智能助手,帮助您建立习惯、追踪目标、记录点滴进步</p>
|
| 397 |
+
</div>
|
| 398 |
+
</section>
|
| 399 |
+
|
| 400 |
+
<!-- 主内容区域 -->
|
| 401 |
+
<main class="container">
|
| 402 |
+
<!-- 今日概览 -->
|
| 403 |
+
<section class="today-overview">
|
| 404 |
+
<div class="overview-header">
|
| 405 |
+
<h2>今日概览</h2>
|
| 406 |
+
<div class="date-display" id="currentDate"></div>
|
| 407 |
+
</div>
|
| 408 |
+
<div class="stats-grid">
|
| 409 |
+
<div class="stat-item">
|
| 410 |
+
<div class="stat-number" id="completedGoals">3</div>
|
| 411 |
+
<div class="stat-label">已完成目标</div>
|
| 412 |
+
</div>
|
| 413 |
+
<div class="stat-item">
|
| 414 |
+
<div class="stat-number" id="activeHabits">5</div>
|
| 415 |
+
<div class="stat-label">活跃习惯</div>
|
| 416 |
+
</div>
|
| 417 |
+
<div class="stat-item">
|
| 418 |
+
<div class="stat-number" id="writtenEntries">2</div>
|
| 419 |
+
<div class="stat-label">今日记录</div>
|
| 420 |
+
</div>
|
| 421 |
+
<div class="stat-item">
|
| 422 |
+
<div class="stat-number" id="streakDays">12</div>
|
| 423 |
+
<div class="stat-label">连续天数</div>
|
| 424 |
+
</div>
|
| 425 |
+
</div>
|
| 426 |
+
</section>
|
| 427 |
+
|
| 428 |
+
<!-- 功能卡片 -->
|
| 429 |
+
<section class="features-grid">
|
| 430 |
+
<div class="feature-card" onclick="navigateTo('goals')">
|
| 431 |
+
<div class="feature-icon">🎯</div>
|
| 432 |
+
<h3>目标管理</h3>
|
| 433 |
+
<p>设定清晰的短期和长期目标,追踪完成进度,让每一步都更有方向感。</p>
|
| 434 |
+
</div>
|
| 435 |
+
|
| 436 |
+
<div class="feature-card" onclick="navigateTo('habits')">
|
| 437 |
+
<div class="feature-icon">📅</div>
|
| 438 |
+
<h3>习惯追踪</h3>
|
| 439 |
+
<p>建立积极的生活习惯,通过数据可视化展示您的坚持和进步。</p>
|
| 440 |
+
</div>
|
| 441 |
+
|
| 442 |
+
<div class="feature-card" onclick="navigateTo('journal')">
|
| 443 |
+
<div class="feature-icon">📝</div>
|
| 444 |
+
<h3>成长日记</h3>
|
| 445 |
+
<p>记录每日的思考、感悟和收获,见证自己的心智成长历程。</p>
|
| 446 |
+
</div>
|
| 447 |
+
|
| 448 |
+
<div class="feature-card" onclick="navigateTo('tasks')">
|
| 449 |
+
<div class="feature-icon">✅</div>
|
| 450 |
+
<h3>事项清单</h3>
|
| 451 |
+
<p>快速记录和管理待办事项,重要信息不错过,提升执行效率。</p>
|
| 452 |
+
</div>
|
| 453 |
+
|
| 454 |
+
<div class="feature-card" onclick="navigateTo('analytics')">
|
| 455 |
+
<div class="feature-icon">📊</div>
|
| 456 |
+
<h3>数据分析</h3>
|
| 457 |
+
<p>通过图表和统计了解自己的成长模式,发现优势和待改进之处。</p>
|
| 458 |
+
</div>
|
| 459 |
+
|
| 460 |
+
<div class="feature-card" onclick="navigateTo('insights')">
|
| 461 |
+
<div class="feature-icon">💡</div>
|
| 462 |
+
<h3>智能洞察</h3>
|
| 463 |
+
<p>基于您的行为数据,提供个性化的成长建议和行动方案。</p>
|
| 464 |
+
</div>
|
| 465 |
+
</section>
|
| 466 |
+
|
| 467 |
+
<!-- 快速记录事项 -->
|
| 468 |
+
<section class="quick-add">
|
| 469 |
+
<h3>快速记录新事项</h3>
|
| 470 |
+
<form class="add-form" onsubmit="addNewItem(event)">
|
| 471 |
+
<input
|
| 472 |
+
type="text"
|
| 473 |
+
class="add-input"
|
| 474 |
+
placeholder="输入今天要完成的事项..."
|
| 475 |
+
id="newItemInput"
|
| 476 |
+
required
|
| 477 |
+
>
|
| 478 |
+
<select class="add-input" style="max-width: 150px;" id="itemCategory">
|
| 479 |
+
<option value="work">工作</option>
|
| 480 |
+
<option value="study">学习</option>
|
| 481 |
+
<option value="health">健康</option>
|
| 482 |
+
<option value="personal">个人</option>
|
| 483 |
+
</select>
|
| 484 |
+
<button type="submit" class="add-btn">添加</button>
|
| 485 |
+
</form>
|
| 486 |
+
</section>
|
| 487 |
+
|
| 488 |
+
<!-- 最近事项 -->
|
| 489 |
+
<section class="recent-items">
|
| 490 |
+
<h3>今日重要事项</h3>
|
| 491 |
+
<div class="item-list" id="itemList">
|
| 492 |
+
<div class="item">
|
| 493 |
+
<input type="checkbox" class="item-checkbox" onchange="toggleItem(this)">
|
| 494 |
+
<div class="item-content">
|
| 495 |
+
<div class="item-title">完成项目规划文档</div>
|
| 496 |
+
<div class="item-time">09:30</div>
|
| 497 |
+
</div>
|
| 498 |
+
<span class="item-category">工作</span>
|
| 499 |
+
</div>
|
| 500 |
+
|
| 501 |
+
<div class="item">
|
| 502 |
+
<input type="checkbox" class="item-checkbox" onchange="toggleItem(this)" checked>
|
| 503 |
+
<div class="item-content">
|
| 504 |
+
<div class="item-title">30分钟晨间冥想</div>
|
| 505 |
+
<div class="item-time">08:00</div>
|
| 506 |
+
</div>
|
| 507 |
+
<span class="item-category">健康</span>
|
| 508 |
+
</div>
|
| 509 |
+
|
| 510 |
+
<div class="item">
|
| 511 |
+
<input type="checkbox" class="item-checkbox" onchange="toggleItem(this)">
|
| 512 |
+
<div class="item-content">
|
| 513 |
+
<div class="item-title">阅读《深度工作》第3章</div>
|
| 514 |
+
<div class="item-time">20:00</div>
|
| 515 |
+
</div>
|
| 516 |
+
<span class="item-category">学习</span>
|
| 517 |
+
</div>
|
| 518 |
+
|
| 519 |
+
<div class="item">
|
| 520 |
+
<input type="checkbox" class="item-checkbox" onchange="toggleItem(this)" checked>
|
| 521 |
+
<div class="item-content">
|
| 522 |
+
<div class="item-title">制定下周工作计划</div>
|
| 523 |
+
<div class="item-time">17:00</div>
|
| 524 |
+
</div>
|
| 525 |
+
<span class="item-category">工作</span>
|
| 526 |
+
</div>
|
| 527 |
+
</div>
|
| 528 |
+
</section>
|
| 529 |
+
</main>
|
| 530 |
+
|
| 531 |
+
<!-- 页脚 -->
|
| 532 |
+
<footer class="footer">
|
| 533 |
+
<div class="container">
|
| 534 |
+
<p>致力于帮助每个人实现自我成长和持续进步</p>
|
| 535 |
+
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank">Built with anycoder</a>
|
| 536 |
+
</div>
|
| 537 |
+
</footer>
|
| 538 |
+
|
| 539 |
+
<script>
|
| 540 |
+
// 显示当前日期
|
| 541 |
+
function updateDate() {
|
| 542 |
+
const now = new Date();
|
| 543 |
+
const options = {
|
| 544 |
+
year: 'numeric',
|
| 545 |
+
month: 'long',
|
| 546 |
+
day: 'numeric',
|
| 547 |
+
weekday: 'long'
|
| 548 |
+
};
|
| 549 |
+
document.getElementById('currentDate').textContent = now.toLocaleDateString('zh-CN', options);
|
| 550 |
+
}
|
| 551 |
+
|
| 552 |
+
// 导航功能
|
| 553 |
+
function navigateTo(section) {
|
| 554 |
+
alert(`正在跳转到${section}页面...`);
|
| 555 |
+
// 这里可以添加实际的页面跳转逻辑
|
| 556 |
+
}
|
| 557 |
+
|
| 558 |
+
// 添加新事项
|
| 559 |
+
function addNewItem(event) {
|
| 560 |
+
event.preventDefault();
|
| 561 |
+
const input = document.getElementById('newItemInput');
|
| 562 |
+
const category = document.getElementById('itemCategory');
|
| 563 |
+
const itemList = document.getElementById('itemList');
|
| 564 |
+
|
| 565 |
+
const newItem = document.createElement('div');
|
| 566 |
+
newItem.className = 'item';
|
| 567 |
+
|
| 568 |
+
const now = new Date();
|
| 569 |
+
const timeString = now.toLocaleTimeString('zh-CN', {
|
| 570 |
+
hour: '2-digit',
|
| 571 |
+
minute: '2-digit'
|
| 572 |
+
});
|
| 573 |
+
|
| 574 |
+
newItem.innerHTML = `
|
| 575 |
+
<input type="checkbox" class="item-checkbox" onchange="toggleItem(this)">
|
| 576 |
+
<div class="item-content">
|
| 577 |
+
<div class="item-title">${input.value}</div>
|
| 578 |
+
<div class="item-time">${timeString}</div>
|
| 579 |
+
</div>
|
| 580 |
+
<span class="item-category">${category.value}</span>
|
| 581 |
+
`;
|
| 582 |
+
|
| 583 |
+
itemList.insertBefore(newItem, itemList.firstChild);
|
| 584 |
+
|
| 585 |
+
// 更新统计数字
|
| 586 |
+
const currentCount = parseInt(document.querySelector('.stat-item .stat-number').textContent);
|
| 587 |
+
document.querySelector('.stat-item .stat-number').textContent = currentCount + 1;
|
| 588 |
+
|
| 589 |
+
// 清空输入框
|
| 590 |
+
input.value = '';
|
| 591 |
+
|
| 592 |
+
// 显示成功提示
|
| 593 |
+
showToast('事项添加成功!');
|
| 594 |
+
}
|
| 595 |
+
|
| 596 |
+
// 切换事项状态
|
| 597 |
+
function toggleItem(checkbox) {
|
| 598 |
+
const item = checkbox.closest('.item');
|
| 599 |
+
if (checkbox.checked) {
|
| 600 |
+
item.style.opacity = '0.6';
|
| 601 |
+
item.style.textDecoration = 'line-through';
|
| 602 |
+
showToast('事项已完成!');
|
| 603 |
+
} else {
|
| 604 |
+
item.style.opacity = '1';
|
| 605 |
+
item.style.textDecoration = 'none';
|
| 606 |
+
}
|
| 607 |
+
}
|
| 608 |
+
|
| 609 |
+
// 显示提示信息
|
| 610 |
+
function showToast(message) {
|
| 611 |
+
const toast = document.createElement('div');
|
| 612 |
+
toast.style.cssText = `
|
| 613 |
+
position: fixed;
|
| 614 |
+
top: 20px;
|
| 615 |
+
right: 20px;
|
| 616 |
+
background: #667eea;
|
| 617 |
+
color: white;
|
| 618 |
+
padding: 1rem 2rem;
|
| 619 |
+
border-radius: 8px;
|
| 620 |
+
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
| 621 |
+
z-index: 1000;
|
| 622 |
+
animation: slideIn 0.3s ease-out;
|
| 623 |
+
`;
|
| 624 |
+
toast.textContent = message;
|
| 625 |
+
|
| 626 |
+
document.body.appendChild(toast);
|
| 627 |
+
|
| 628 |
+
setTimeout(() => {
|
| 629 |
+
toast.style.animation = 'slideOut 0.3s ease-out';
|
| 630 |
+
setTimeout(() => toast.remove(), 300);
|
| 631 |
+
}, 2000);
|
| 632 |
+
}
|
| 633 |
+
|
| 634 |
+
// 添加动画样式
|
| 635 |
+
const style = document.createElement('style');
|
| 636 |
+
style.textContent = `
|
| 637 |
+
@keyframes slideIn {
|
| 638 |
+
from { transform: translateX(100%); opacity: 0; }
|
| 639 |
+
to { transform: translateX(0); opacity: 1; }
|
| 640 |
+
}
|
| 641 |
+
@keyframes slideOut {
|
| 642 |
+
from { transform: translateX(0); opacity: 1; }
|
| 643 |
+
to { transform: translateX(100%); opacity: 0; }
|
| 644 |
+
}
|
| 645 |
+
`;
|
| 646 |
+
document.head.appendChild(style);
|
| 647 |
+
|
| 648 |
+
// 页面加载完成后初始化
|
| 649 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 650 |
+
updateDate();
|
| 651 |
+
|
| 652 |
+
// 添加卡片点击动画
|
| 653 |
+
const cards = document.querySelectorAll('.feature-card');
|
| 654 |
+
cards.forEach((card, index) => {
|
| 655 |
+
card.style.animationDelay = `${index * 0.1}s`;
|
| 656 |
+
});
|
| 657 |
+
});
|
| 658 |
+
|
| 659 |
+
// 模拟数据更新
|
| 660 |
+
setInterval(() => {
|
| 661 |
+
const numbers = document.querySelectorAll('.stat-number');
|
| 662 |
+
numbers.forEach(num => {
|
| 663 |
+
const currentNum = parseInt(num.textContent);
|
| 664 |
+
if (Math.random() > 0.95) {
|
| 665 |
+
num.textContent = currentNum + (Math.random() > 0.5 ? 1 : -1);
|
| 666 |
+
}
|
| 667 |
+
});
|
| 668 |
+
}, 10000);
|
| 669 |
+
</script>
|
| 670 |
+
</body>
|
| 671 |
+
</html>
|