电影级着陆页面 — 烘焙设施
生成一个单页的滚动电影级B2B着陆站点,适用于高端烘焙解决方案公司**“烘焙设施”**。一个完整的、已渲染的参考实现在此技能同级目录的 example.html 中提供 — 从它开始。复制 example.html,然后调整文案/数据,如果要求则移植到React栈;不要重写CSS或发明新的视觉语言。种子文件已经编码了下面描述的精确标记、字体、布局、部分和动画。
此文档为权威构建指南。请严格遵循 — 命名颜色、字体、视频URL、断点和动画参数均已锁定。
技术栈
- 默认输出:单一的
example.html种子文件(纯HTML/CSS/JS)。它内联包含所有内容;唯一的远程引用是3个CloudFront英雄视频和picsum.photos画廊静态图片(稳定的CDN — 保留它们)。 - 如果用户明确要求项目形式,请忠实移植到 React 18 + Vite + TypeScript + Tailwind + GSAP (ScrollTrigger + SplitText) + Lottie 技术栈。不使用Framer Motion — 所有动画均为GSAP。移植时保持设计完全相同。将原生端口映射回其框架来源:
IntersectionObserver切换.in→ GSAPScrollTrigger并设置once: true。- 被动
scroll监听器写入内联clip-path/transform/ 单词透明度 → GSAPuseScroll/ScrollTrigger scrub。 - 逐字符
setTimeout揭示 → GSAPSplitText字符交错(30ms)。
字体 (Google Fonts)
导入:https://fonts.googleapis.com/css2?family=Luxurious+Script&family=Manrope:wght@500&family=Open+Sans:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap
font-body:'Open Sans' — 正文、导航、按钮。font-accent:'Instrument Serif' — 英雄区域h1、章节标题、关于正文(大写)。font-manrope:'Manrope' (500) — 标签、卡片文本。font-luxurious:'Luxurious Script' — “for Professionals”副标题 + “About us”标题。
色彩系统 (CSS变量) — 已锁定
--background: 0 0% 9%; --foreground: 0 0% 100%;
--primary: 0 0% 100%; --primary-foreground: 0 0% 9%;
--secondary: 0 0% 97%; --muted: 0 0% 20%;
--muted-foreground: 0 0% 75%; --accent: 0 0% 15%;
--border: 0 0% 20%; --radius: 2px;
--hero-cta-bg: 0 0% 97.3%; --hero-cta-text: 0 0% 9%;
金色强调色 #CB9D06 — 每个悬停状态(导航链接、按钮、页脚链接、悬浮按钮)。基础边框圆角 2px。容器内边距 5%。不能使用紫色/靛蓝色。金色是唯一的彩色强调色;其他所有颜色均为黑/白/灰色。
第1部分 — 英雄区域(滚动驱动的视频滑块)
- 包装器
height: calc(100vh + 300vh);内部position: sticky; top: 0; height: 100vh; overflow: visible。 - 3个堆叠的
<video>幻灯片(autoplay loop muted playsinline,object-fit: cover),z-index 1/2/3。锁定的URL:https://plugin-assets.open-design.ai/plugins/cinematic-landing-page/hf_20260515_113235_88e0d62e-8103-40c1-948e-f0a4f886ffd1-e00afb.mp4https://plugin-assets.open-design.ai/plugins/cinematic-landing-page/hf_20260515_114315_ee3663e6-bd79-41b4-9e5b-0fae62827eb9-b97001.mp4https://plugin-assets.open-design.ai/plugins/cinematic-landing-page/hf_20260515_114559_dca18b14-90f5-47c4-8a84-3cbae9bd8a0c-62cb47.mp4
- 过渡:
SCROLL_PER_SLIDE_VH = 150。为每个幻灯片在其滚动窗口内计算localProgress,使用立方缓入缓出p<0.5 ? 4p³ : 1-((-2p+2)³)/2,然后clip-path: ellipse(${5+progress*150}% ${8+progress*150}% at 50% 50%)。 - H1 “THE SMART BAKERY SOLUTION”:桌面端
font-accent,font-size: 9.7vw,line-height: 1,white-space: nowrap,letter-spacing: -0.04em,bottom: -26px。移动端40px,line-height 1.1,换行,居中,bottom: 48px,px-4。动画:GSAP SplitText 逐字符{opacity:0,y:40}→{opacity:1,y:0},0.8秒,30ms交错,power3.out,加载时自动启动。 - 副标题 “for Professionals” (Luxurious Script):桌面端
3vw,移动端12vw,absolute inset-x-0 top-0,padding-top: calc(80px + 60px)。相同的SplitText参数;在h1完成后大约600ms触发。
第1部分 导航栏(固定;透明 → 滚动时变黑)
fixed top-0 left-0 right-0 z-20 flex items-center px-4 md:px-10。scrollY > 50→bg-black/90 backdrop-blur-[80px] shadow-md py-2;否则透明py-4。- 左侧:区域下拉菜单(地球图标 + “Hong Kong / Macau”;选项:Mainland China / Hong Kong-Macau / Taiwan)。
- 中间:四叶草徽标SVG (
viewBox 0 0 305 304,白色,提示中的4条路径),正常时h-[32px] md:h-[48px],滚动时h-[24px] md:h-[32px],两侧有下拉菜单。- 左侧菜单:About Us(Our History / Food Service Experts / Creating unforgettable culinary experiences),Partnering With Us(Sourcing from trusted suppliers / Empowering Customer Operations / Our Experts)。
- 右侧菜单:Our Products(Viennese Pastry / Bread / Dessert / Savory / Speciality Pastry / Culinary Aid / Ingredient),Let's Connect!(Contact / LinkedIn / WhatsApp / Newsletter / Brochure / Join Us)。
- 右侧:语言切换 EN / 繁,激活状态 =
bg-[#CB9D06] text-white。 - 下拉菜单:
bg-white shadow-lg py-2,项目px-4 py-2.5 text-[13px],悬停bg-[#CB9D06] text-white。 - 移动端:汉堡菜单 → 全屏覆盖层
bg-black/95 backdrop-blur-md,手风琴菜单。
浮动导航(右侧,仅桌面端)
fixed right-4 md:right-6 top-1/2 -translate-y-1/2 z-50 hidden md:flex flex-col gap-4。3个药丸按钮(48px,rounded-full,bg-black,悬停时展开):下载图标 + “Download Brochure”;LinkedIn SVG(提示中的路径)+ “LinkedIn”;MessageCircle + “Chat With Us”。悬停 bg-[#CB9D06],标签通过最大宽度300ms滑入。
第2部分 — 产品画廊(瀑布流)
bg-white py-8 md:py-16 flex justify-center;内部w-[90%] md:w-[65%]。- 网格:桌面端 ≥1000px = 4列(第1行:4个等宽;第2行:3个卡片,中间卡片占2列)。移动端 = 2列。宽高比 3:4,行间距 40px,项目内边距 4px。
- 7个项目:Viennese Pastry,Bread,Dessert,Savory,Sweet Treats,Culinary Aid,Ingredient(Culinary Aid 是跨2列的中间卡片)。背景
https://picsum.photos/seed/bakery-<种子>/600/800。 - 进入动画:ScrollTrigger `start