Skip to content

Commit b14403e

Browse files
kevinten10claude
andcommitted
feat: 添加 AI 演示视频到首页,Apple 风格视频展示区
在架构区和特性区之间新增演示视频 section,Apple HIG 风格 — 圆角容器、 悬浮阴影、自动播放。仅提交最终剪辑视频(6.9MB),排除原始片段和音频。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f8e62bc commit b14403e

4 files changed

Lines changed: 61 additions & 1 deletion

File tree

.gitignore

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,21 @@
22
/public
33
resources/
44
node_modules/
5-
.superpowers/
5+
.superpowers/
6+
7+
# Raw video clips and audio (keep only final cut)
8+
static/videos/01-*.mp4
9+
static/videos/02-*.mp4
10+
static/videos/03-*.mp4
11+
static/videos/music_*.mp3
12+
static/videos/tts_*.mp3
13+
14+
# Screenshots and temp images
15+
*.png
16+
!static/**/*.png
17+
!content/**/*.png
18+
!assets/**/*.png
19+
!themes/**/*.png
20+
21+
# Playwright
22+
.playwright-mcp/

content/zh/_index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,22 @@ <h2 class="capa-section-title">统一 API,解耦基础设施。</h2>
4242
</div>
4343
</section>
4444

45+
<!-- ==================== DEMO VIDEO ==================== -->
46+
<section class="capa-video">
47+
<div class="capa-reveal" style="text-align: center;">
48+
<div class="capa-section-label">演示</div>
49+
<h2 class="capa-section-title">眼见为实。</h2>
50+
<p class="capa-section-desc">
51+
一分钟了解 Capa 的核心理念与跨云能力。
52+
</p>
53+
</div>
54+
<div class="capa-video__player capa-reveal capa-reveal-delay-1">
55+
<video autoplay muted loop playsinline preload="metadata">
56+
<source src="{{ "videos/capa-demo-final.mp4" | absURL }}" type="video/mp4">
57+
</video>
58+
</div>
59+
</section>
60+
4561
<!-- ==================== FEATURES ==================== -->
4662
<section class="capa-features">
4763
<div class="capa-features__grid">

layouts/partials/hooks/head-end.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,33 @@
338338
display: block;
339339
}
340340

341+
/* ---------- Video ---------- */
342+
.capa-video {
343+
padding: 100px 24px 60px;
344+
background: #fff;
345+
text-align: center;
346+
}
347+
348+
.capa-video__player {
349+
max-width: 800px;
350+
margin: 0 auto;
351+
border-radius: 20px;
352+
overflow: hidden;
353+
background: #000;
354+
box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 0.5px rgba(0,0,0,0.06);
355+
transition: transform 0.6s var(--apple-ease), box-shadow 0.6s var(--apple-ease);
356+
}
357+
.capa-video__player:hover {
358+
transform: scale(1.01);
359+
box-shadow: 0 28px 80px rgba(0,0,0,0.18), 0 0 0 0.5px rgba(0,0,0,0.08);
360+
}
361+
362+
.capa-video__player video {
363+
width: 100%;
364+
height: auto;
365+
display: block;
366+
}
367+
341368
/* ---------- Features ---------- */
342369
.capa-features {
343370
padding: 40px 24px 100px;

static/videos/capa-demo-final.mp4

6.87 MB
Binary file not shown.

0 commit comments

Comments
 (0)