Kubric™ Hero Landing — 暗色电影风格英雄页,带动画 SVG Logo
英雄节选自 MIT 许可的
pulkitxm/claude-directory画廊。
一个单页、仅桌面端的深色英雄落地页,为虚构工作室 Kubric™ 设计,基于 TanStack Start v1 + React 19 + Vite 7 + Tailwind v4 构建,采用文件路由。页面包含循环背景视频、底部分层渐进 backdrop-filter 模糊效果、动画 SVG Logo(带弧线 stroke-dashoffset 揭示)、玻璃导航药丸、逐字符标题揭示、右侧垂直节导航以及白色“关于我们”卡片。所有动画仅在背景视频准备就绪后首次加载时触发。
工作流程
- 将
example.html克隆到用户的工作区作为工作文件。 - 替换占位内容为用户真实的品牌名称、标题、正文、数字和图片。替换资源时保持现有图片尺寸。
- 保留设计系统。 下方构建规范中的调色板、字体比例、间距节奏和动效是标识——不要替换字体、重新着色调色板或移除装饰元素。
- 通过复制节来扩展,切勿从其他模板导入布局。如果缺少某个节,以该模板自身的语言从零开始设计。
- 保持可访问性。 根据构建规范,所有动画必须遵循
prefers-reduced-motion。
输出约定
在 <artifact> 标签内输出:
<artifact identifier="kubric-hero-landing" type="text/html" title="Kubric™ Hero Landing — Dark Cinematic Hero with Animated SVG Logo">
<!doctype html>
<html>...</html>
</artifact>
构建规范
生成此设计的上游提示原文。
构建提示 — KUBRIC™ HERO LANDING (TANSTACK START + REACT 19 + VITE 7 + TAILWIND V4)
目标
创建名为“KUBRIC™”的单页深色英雄落地页。它是一个全视口英雄页(最小宽度 1024 像素,仅桌面端),包含循环背景视频、底部渐进模糊叠加、动画 SVG Logo、带 4 个链接的玻璃导航药丸(其中一个带圆形数字徽章“3”)、白色“预约通话”按钮、逐字符揭示的三行斜体强调标题、带活动下划线的右侧垂直节导航、包含标签“01 — OUR GOAL”的底部行、描述段落、主要“讨论项目”按钮、动画“向下滚动”药丸以及带图片和箭头的白色水平“关于我们”卡片。所有动画在背景视频准备就绪后首次加载时触发。
技术栈/文件
- TANSTACK START V1 文件路由。路由在
src/routes/中。根路由在src/routes/__root.tsx。首页在src/routes/index.tsx。 - TAILWIND V4 通过
@import "tailwindcss"在src/styles.css中使用(无tailwind.config.js)。 - 所有 KUBRIC 样式为纯 CSS,追加在
src/styles.css中(非 Tailwind 工具类)。 - 通过
<link>在路由头部加载 Google Font “Inter Tight”(粗细 300/400/500/700/800,斜体 400/700)——切勿通过 CSS @import。 - 无后端、无数据库、无认证。页面不使用任何 shadcn 组件。
全局 CSS 变量(追加在 src/styles.css 的 SHADCN 块之后)
:root {
--bg: #1e1e1e;
--text: #ffffff;
--text-muted: rgba(255,255,255,0.749);
--dark-text: #22282b;
--page-pad: clamp(24px, 3.4vw, 50px);
--btn-radius: 10px;
--card-radius: 4px;
}
html { min-width: 1024px; }
body {
font-family: "Inter Tight", sans-serif;
background: var(--bg);
color: var(--text);
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
,::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
层级结构(首页的精确 JSX 树)
div.hero
├── div.hero__bg
│ └── video.hero__video (autoPlay muted loop playsInline preload="auto")
│ └── source src="https://qclay.design/lovable/kubric/body.mp4" type="video/mp4"
├── div.hero__overlay
├── div.hero__gradient-top (空,display:none 占位)
├── div.hero__gradient-bottom (空,display:none 占位)
├── div.hero__blur
│ ├── div.hero__blur-layer (× 8 — 每层有不同的模糊 + 遮罩)
│ └── ::after (渐变暗化叠加)
├── header.header
│ ├── a.logo href="#" aria-label="Kubric"
│ │ └── svg.logo__icon viewBox="0 0 122 30"
│ │ ├── circle.logo__circle cx=14.3 cy=14.9 r=7 stroke=#fff strokeWidth=3 fill=none
│ │ ├── path.logo__arc-1a (外弧顶部, 见下方 SVG)
│ │ ├── path.logo__arc-1b (外弧底部)
│ │ ├── path.logo__arc-2a (远弧顶部)
│ │ ├── path.logo__arc-2b (远弧底部)
│ │ └── g.logo__text-group
│ │ ├── text x=46 y=22 font="Inter Tight" size=22 weight=700 fill=#fff letterSpacing=-0.5 → "Kubric"
│ │ └── text.logo__tm x=113 y=10 → "™"
│ ├── nav.nav-pill aria-label="Primary"
│ │ ├── a.nav-pill__link href="#features" → "Features"
│ │ ├── a.nav-pilllink href="#team" → "Team" + span.nav-pillbadge "3"
│ │ ├── a.nav-pill__link href="#roadmap" → "Roadmap"
│ │ └── a.nav-pill__link href="#contact" → "Contact"
│ └── button.btn.btn--header
│ ├── "Book a call"
│ └── svg.btn__arrow viewBox="0 0 8 8" (path d="M1 7L7 1M7 1H2M7 1V6")
├── h1.hero__heading
│ ├── span.heroline > span.heroline-inner → "Making your business"
│ ├── span.heroline > span.heroline-inner → "outstanding — is a"
│ └── span.heroline > span.heroline-inner > em → "Science"
├── nav.side-nav aria-label="Sections"
│ ├── a.side-navlink.side-navlink--active href="#home"
│ │ ├── span.side-nav__link-text "Home"
│ │ └── span.side-nav__line
│ ├── a.side-navlink href="#services" → span.side-navlink-text "Our Services"
│ ├── a.side-navlink href="#about" → span.side-navlink-text "About Us"
│ ├── a.side-navlink href="#reviews" → span.side-navlink-text "Reviews"
│ └── a.side-navlink href="#contact" → span.side-navlink-text "Contact Us"
├── div.hero__blur-bar
└── div.hero__bottom (CSS grid, 1fr auto / 3 行)
├── div.hero__label (行 1) → "01 — Our goal"
├── p.hero__desc (行 2) → 3 行:
│ "We enable the world's most engaged investors and"
│ "family offices to access professionally managed"
│ "investment strategies."
├── div.hero__actions (行 3)
│ ├── button.btn.btn--footer
│ │ ├── "Discuss the project"
│ │ └── svg.btn__arrow (同 header 的 8×8 箭头路径)
│ └── button.scroll-down#scrollDown
│ ├── span.scroll-down__text "Scroll down"
│ └── span.scroll-down__circle
│ └── svg viewBox="0 0 7.222 8.667" (path d="M3.611 1V7.667M3.611 7.667L1 5M3.611 7.667L6.222 5")
└── a.about-card href="#about"
├── div.about-card__image > img src="https://qclay.design/lovable/kubric/card-image.png" alt="Pink tulip closeup"
└── div.about-card__content
├── div
│ ├── h3.about-card__title "About us"
│ └── p.about-card__text "Me're driven by user-centered design that drives productivity and increases revenue."
└── svg.about-card__arrow viewBox="0 0 77 13" (path d="M1 6.5H75M75 6.5L70 1.5M75 6.5L70 11.5")
图标 / SVG 资源(直接粘贴 — 坐标和 pathLength 必须精确)
LOGO SVG(位于 a.logo 内):
<svg class="logo__icon" viewBox="0 0 122 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle class="logo__circle" cx="14.3" cy="14.9" r="7" fill="none" stroke="#fff" stroke-width="3"/>
<path class="logo__arc-1a" pathLength="100" stroke="#fff" stroke-width="3" stroke-linecap="round" fill="none"
d="M28.4955 14.6513C28.4346 12.2923 27.7563 9.99047 26.5284 7.9753C25.3005 5.96012 23.5657 4.30202 21.4972 3.1663C19.4287 2.03059 17.0985 1.45693 14.7392 1.50252C12.3798 1.54811 10.0736 2.21137 8.05047 3.42615"/>
<path class="logo__arc-1b" pathLength="100" stroke="#fff" stroke-width="3" stroke-linecap="round" fill="none"
d="M28.4955 14.6513C28.5564 17.0104 27.998 19.3442 26.8757 21.4201C25.7535 23.496 24.1067 25.2414 22.0996 26.4824C20.0924 27.7234 17.795 28.4166 15.4365 28.4929C13.0779 28.5692 10.7405 28.026 8.65735 26.9173"/>
<path class="logo__arc-2a" pathLength="100" stroke="#fff" stroke-width="3" stroke-linecap="round" fill="none"
d="M37.4997 14.9144C37.4824 12.1783 36.634 9.51197 35.0671 7.26888C33.5001 5.02578 31.2885 3.31178 28.7254 2.35403"/>
<path class="logo__arc-2b" pathLength="100" stroke="#fff" stroke-width="3" stroke-linecap="round" fill="none"
d="M37.4997 14.9144C37.5171 17.6506 36.7026 20.3274 35.1642 22.5902C33.6258 24.853 31.4361 26.5949 28.8853 27.5851"/>
<g class="logo__text-group">
<text x="46" y="22" font-family="Inter Tight" font-size="22" font-weight="700" fill="#fff" letter-spacing="-0.5">Kubric</text>
<text class="logo__tm" x="113" y="10">™</text>
</g>
</svg>
箭头图标(两个按钮均使用)VIEWBOX="0 0 8 8":
<path d="M1 7L7 1M7 1H2M7 1V6" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"/>
向下滚动箭头图标 VIEWBOX="0 0 7.222 8.667":
<path d="M3.611 1V7.667M3.611 7.667L1 5M3.611 7.667L6.222 5" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"/>
关于卡片长箭头 VIEWBOX="0 0 77 13":
<path d="M1 6.5H75M75 6.5L70 1.5M75 6.5L70 11.5" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"/>
完整 CSS(直接追加到 src/styles.css — 精确的真相来源)
/ ============ HERO ============ /
.hero { position: relative; width: 100%; height: 100vh; min-height: 700px; overflow: hidden; background: var(--bg); }
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__video { position: absolute; top: 50%; left: 50%; width: 60%; height: 90%; object-fit: cover; transform: translate(-50%,-50%) scale(1.9); }
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: rgba(8,8,8,0.25); pointer-events: none; }
.herogradient-top,.herogradient-bottom { display: none; }
/ ===== 渐进模糊 ===== /
.hero__blur { position: absolute; left:0; right:0; bottom:0; height: 26%; z-index:3; pointer-events:none; }
.hero__blur-layer { position: absolute; inset: 0; }
.hero__blur-layer:nth-child(1){ backdrop-filter: blur(0.6px); mask-image: linear-gradient(to bottom, transparent 0%, black 12%); }
.hero__blur-layer:nth-child(2){ backdrop-filter: blur(1px); mask-image: linear-gradient(to bottom, transparent 12%, black 25%); }
.hero__blur-layer:nth-child(3){ backdrop-filter: blur(1.5px); mask-image: linear-gradient(to bottom, transparent 25%, black 37%); }
.hero__blur-layer:nth-child(4){ backdrop-filter: blur(2px); mask-image: linear-gradient(to bottom, transparent 37%, black 50%); }
.hero__blur-layer:nth-child(5){ backdrop-filter: blur(3px); mask-image: linear-gradient(to bottom, transparent 50%, black 62%); }
.hero__blur-layer:nth-child(6){ backdrop-filter: blur(4px); mask-image: linear-gradient(to bottom, transparent 62%, black 75%); }
.hero__blur-layer:nth-child(7){ backdrop-filter: blur(6px); mask-image: linear-gradient(to bottom, transparent 75%, black 87%); }
.hero__blur-layer:nth-child(8){ backdrop-filter: blur(8px); mask-image: linear-gradient(to bottom, transparent 87%, black 100%); }
.hero__blur::after { content:""; position:absolute; inset:0; pointer-events:none;
background: linear-gradient(to bottom, transparent 0%, rgba(20,20,20,0.35) 40%, rgba(20,20,20,0.65) 70%, rgba(20,20,20,0.85) 100%); }
.hero__blur-bar { position: absolute; left:0; right:0; bottom:0;
height: calc(60px + clamp(20px,3vh,36px) + 24px); z-index:4; pointer-events:none;
background: linear-gradient(0.8deg, rgba(255,255,255,0.06) -51%, transparent 109%), rgba(255,255,255,0.01);
mask-image: linear-gradient(to bottom, transparent 0%, black 30%); }
/ ===== 头部 ===== /
.header { position: absolute; top:0; left:0; right:0; z-index:10; display:flex; align-items:center; justify-content: space-between; padding: 20px var(--page-pad); }
/ ===== LOGO ===== /
.logo { display:flex; align-items:center; }
.logo__icon { display:block; width: clamp(80px,7.6vw,110px); height: clamp(22px,2.08vw,30px); overflow:visible; }
body:not(.is-ready) .logo__circle,
body:not(.is-ready) .logoarc-1a, body:not(.is-ready) .logoarc-1b,
body:not(.is-ready) .logoarc-2a, body:not(.is-ready) .logoarc-2b,
body:not(.is-ready) .logo__text-group { opacity:0; animation-play-state: paused !important; }
.logo__circle { transform-origin: 14.3px 14.9px; transform: scale(0); opacity:0;
animation: logoCircleGrow 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.1s forwards; }
@keyframes logoCircleGrow { to { transform: scale(1); opacity:1; } }
.logoarc-1a,.logoarc-1b { stroke-dasharray:100; stroke-dashoffset:100; opacity:0; transform: translateX(-14px);
animation: logoArcDraw1 0.65s cubic-bezier(0.16,1,0.3,1) 0.55s forwards; }
.logoarc-2a,.logoarc-2b { stroke-dasharray:100; stroke-dashoffset:100; opacity:0; transform: translateX(-14px);
animation: logoArcDraw2 0.5s cubic-bezier(0.16,1,0.3,1) 1.25s forwards; }
@keyframes logoArcDraw1 { to { stroke-dashoffset:0; opacity:1; transform: translateX(0);} }
@keyframes logoArcDraw2 { to { stroke-dashoffset:0; opacity:1; transform: translateX(0);} }
.logo__text-group { opacity:0; filter: blur(10px); transform: translateX(28px);
animation: logoTextReveal 1.9s cubic-bezier(0.16,1,0.3,1) 1.25s forwards; }
@keyframes logoTextReveal { to { opacity:1; filter: blur(0); transform: translateX(0);} }
.logo__tm { font-family:"Inter Tight",sans-serif; font-size:20px; fill:#fff; }
/ ===== NAV PILL ===== /
.nav-pill {
display:inline-flex; align-items:center; gap: clamp(16px,2.3vw,33px);
padding: clamp(8px,0.76vw,11px) clamp
…
[截断以用于翻译]