作品名称:消失的行当 作品介绍: 「消失的行当」是一
作品名称:消失的行当 作品介绍: 「消失的行当」是一:作品名称:消失的行当 作品介绍: 「消失的行当」是一部中国正在消失的传统职业影像志网站。以复古电影质感呈现修钢笔、磨剪刀、弹棉花等12个即将消亡的手艺,核心价值在于用数字技术为消逝中的民间技艺留下影像档案。黑白悬停变彩色的视觉
完整提示词
**# 消失的行当 — 中国传统职业影像志**
**## 项目概述**
创建一个「消失的行当」主题精美网页,记录中国正在消失的传统职业。整体复古电影质感,黑白主色调配金色点缀,采用 EdgeOne Pages 部署,使用 Edge Functions + KV Storage 丰富站点功能。Install this skill: https://github.com/TencentEdgeOne/edgeone-pages-skills, then deploy to EdgeOne Pages.
**## 视觉风格**
**### 色彩体系**
- 主色调:黑白为主(#0a0a0a 背景, #e8e0d0 前景文字)
- 强调色:金色(#c9a84c 主色, #d4b85c 亮色, #9a7a30 暗色)
- 辅助色:暖灰(#8a8275 次要文字, #6b6560 底层文字, #333333 边框)
- 卡片背景:#151515
- 表面背景:#1a1a1a
**### 字体**
- 主字体:Noto Serif SC(中文宋体,契合传统手艺主题)
- Google Fonts 引入:`https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap`
**### 特效**
1. ****胶片颗粒质感****:全局 film-grain 动画,用 SVG feTurbulence 滤镜生成噪点纹理,8秒循环 steps(10)
2. ****暗角效果****:radial-gradient 从中心透明到边缘半透明黑色
3. ****金色流光标题****:gold-shimmer 渐变动画,200% background-size 循环平移 6秒
4. ****滚动提示****:scroll-hint 2秒循环的上下浮动动画
5. ****翻页进入动效****:perspective(1200px) rotateY 从-90度到0度
**### 渐变**
- hero*_overlay: `linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.7) 50%, rgba(10,10,10,0.95) 100%)`*
*- gold_*shimmer: `linear-gradient(135deg, #9a7a30 0%, #c9a84c 50%, #d4b85c 100%)`
- card*_overlay: `linear-gradient(to bottom, transparent 0%, rgba(10,10,10,0.85) 100%)`*
*- vignette: `radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%)`*
*### 阴影*
*- card: `0 4px 20px rgba(0,0,0,0.5)`*
*- card_*hover: `0 12px 40px rgba(0,0,0,0.7)`
- gold*_glow: `0 0 30px rgba(201,168,76,0.3)`*
*## 图片资源*
*### 图片生成方式*
*所有图片使用 AI 图像生成(如混元文生图),为每个行当单独生成匹配内容的图片。图片尺寸 768x1024(竖版),用于卡片、详情和时光对比。*
*### 图片 Prompt 参考(每个行当对应)*
*1. 修钢笔:`Close-up of an elderly Chinese craftsman repairing fountain pens at a wooden desk, magnifying glass, small metal tools, warm lamplight, vintage documentary photography style, black and white with subtle warm tones, film grain, shallow depth of field, portrait orientation`*
*2. 磨剪刀:`An old Chinese knife sharpener sitting on a long wooden bench, grinding scissors on a whetstone, sparks flying, water pot nearby, traditional Chinese alleyway, vintage documentary photography, black and white with warm highlights, film grain texture`*
*3. 弹棉花:`A Chinese cotton fluffer using a traditional bow to fluff cotton for making quilts, white cotton fibers floating in air, warm indoor light, vintage documentary style, black and white with warm golden highlights, film grain`*
*4. 捏面人:`A Chinese dough figurine artist shaping colorful dough into animal characters, small hands working intricately, surrounded by children watching, traditional Chinese market, vintage documentary photography, warm tones, film grain`*
*5. 配钥匙:`A Chinese key maker operating a manual key cutting machine at a small street stall, rows of blank keys hanging, old neighborhood, vintage documentary photography style, black and white with metallic silver highlights, film grain`*
*6. 修鞋:`An old Chinese cobbler sitting on a small stool mending leather shoes with needle and thread, shoe hammer and tools scattered around, traditional Chinese street corner, vintage documentary photography, warm earthy tones, film grain`*
*7. 爆米花:`A Chinese street vendor with a black iron popcorn machine, children gathered around covering ears expecting the bang, steam rising, traditional Chinese alley, vintage documentary photography, warm golden light, film grain texture`*
*8. 皮影:`A Chinese shadow puppetry master performing behind a lit white screen, intricate leather shadow puppets raised by sticks, warm amber light, traditional theater setting, vintage documentary photography, rich warm tones, film grain`*
*9. 剃头匠:`An old Chinese barber using a straight razor to shave a man's face, steaming towel on the side, small mirror and tools, traditional Chinese street barbershop, vintage documentary photography, silver steel and white steam highlights, film grain`*
*10. 补锅:`A Chinese pot mender hammering a metal patch onto a cast iron wok, small charcoal furnace glowing red, traditional Chinese courtyard, vintage documentary photography, deep black and iron tones with glowing red fire, film grain`*
*11. 刻章:`A Chinese seal engraver carving characters into a stone seal with a small knife, stone dust on the workbench, red seal paste nearby, traditional shop interior, vintage documentary photography, stone gray and red seal ink highlights, film grain`*
*12. 糖画:`A Chinese sugar painting artist pouring golden syrup onto a marble slab creating a dragon shape, children watching eagerly, warm golden caramel light, traditional Chinese festival, vintage documentary photography, golden amber highlights, film grain`*
*### 首屏背景图*
*`A cinematic wide shot of an old Chinese traditional crafts street at dusk, multiple artisans working at their stalls - a barber, a cobbler, a key maker, warm lantern light glowing, cobblestone alley, atmospheric fog, vintage documentary photography style, predominantly dark with warm golden light pools, heavy film grain, dark vignette, 16:9 cinematic composition` (1280x720)*
*### 封面图*
*`A cinematic vintage poster cover image for a Chinese documentary project called 'Vanishing Trades'. The scene shows a dimly lit traditional Chinese workshop with an elderly craftsman's weathered hands working on a traditional craft, surrounded by old tools and warm lantern light. The background fades into darkness with subtle film grain texture. A golden decorative Chinese calligraphy title area at the top. The color palette is predominantly black and white with selective golden warm highlights on the craftsman's hands, tools, and a single lantern. Dark vignette around the edges. The mood is nostalgic, reverent, and documentary-style. Traditional Chinese aesthetic with film photography quality.` (1280x720)*
*### 图片存储结构*
frontend/public/images/ ├── hero/ │ └── background.jpg # 首屏背景 (1280x720) ├── cards/ # 12个行当卡片图 (768x1024) │ ├── xiugangbi.jpg │ ├── modaodao.jpg │ └── ... (共12个) ├── detail/ # 12个行当详情大图 (768x1024) │ ├── xiugangbi.jpg │ └── ... (共12个) ├── timeline/ # 12个行当时光对比图 (768x1024) │ ├── xiugangbi-old.jpg │ ├── xiugangbi-now.jpg │ └── ... (共24个) └── cover.png # 封面图 (1280x720)
### 图片引用方式
Install this skill: https://github.com/TencentEdgeOne/edgeone-pages-skills, then deploy to EdgeOne Pages.
代码中使用本地路径引用,如:
- 卡片:`/images/cards/${trade.id}.jpg`
- 详情:`/images/detail/${trade.id}.jpg`
- 时光对比:`/images/timeline/${trade.id}-old.jpg` 和 `-now.jpg`
- 首屏:`/images/hero/background.jpg`
## 音效系统
### 实现方式
使用 Web Audio API 合成音效,无需外部音频文件。每个行当有独立的音效生成函数。
### 音效清单(12种)
1. **修钢笔**:金属轻敲 + 细微刮擦声(高频 sine 波 + highpass 滤波噪音)
2. **磨剪刀**:磨石摩擦声(bandpass 滤波噪音,频率递增模拟磨刀节奏)
3. **弹棉花**:弓弦振动声(sawtooth 波从180Hz滑到60Hz + lowpass 滤波)
4. **捏面人**:面团揉捏声(lowpass 滤波噪音,短促脉冲)
5. **配钥匙**:机器转动 + 切割火星声(方波低频马达 + 高频锯齿波火花)
6. **修鞋**:锤钉声 + 皮革吱嘎声(sine 波频率速降模拟锤击 + bandpass 噪音)
7. **爆米花**:转动声 + 砰爆炸声(渐进 sine 波 + 白噪音突然爆发 + lowpass 衰减)
8. **皮影**:锣鼓声(sine 波锣声从600Hz衰减 + 低频鼓点节奏)
9. **剃头匠**:剃刀刮擦声 + 金属轻鸣(highpass 噪音刮擦 + 高频 sine 波余音)
10. **补锅**:铁锤敲击声 + 铁砧回响(triangle 波频率速降 + 长尾 sine 波共振)
11. **刻章**:石刻声(bandpass 高频噪音短促脉冲 + 偶尔 stone tap)
12. **糖画**:糖浆浇注声 + 滋滋声(lowpass 噪音渐入渐出 + 低频 sine 波冒泡声)
### 音效代码结构分类与标签
AI 图片