Kubric™ 英雄登陸頁 — 暗色電影風英雄區塊與動畫 SVG 標誌
此英雄區塊取自 MIT 許可的
pulkitxm/claude-directory畫廊。
一個為虛擬工作室 Kubric™ 設計的單頁、僅限桌面的深色英雄登陸頁面,基於 TanStack Start v1 + React 19 + Vite 7 + Tailwind v4 構建,採用基於文件的路由。功能包括一個循環背景影片,底部帶有漸進式 8 層 backdrop-filter 模糊效果;一個動畫 SVG 標誌,具有弧線 stroke-dashoffset 揭示效果;一個玻璃導航藥丸;一個逐字揭示的標題;一個垂直的右側章節導航;以及一個白色的「關於我們」卡片。所有元素在背景影片準備好後的首次載入時會進行動畫呈現。
工作流程
- 將
example.html複製 到使用者的工作目錄作為工作檔案。 - 替換佔位內容 為使用者的真實品牌名稱、標題、正文、數字和圖片。在交換資源時,請比對現有圖片的尺寸。
- 保留設計系統。 下方建置規格中的配色、字級、間距節奏和動態效果是獨特的識別標誌 — 請勿替換字型、重新配色彩或移除裝飾性元素。
- 透過複製區段來擴展,切勿從其他模板導入版面。如果缺少某個區段,請使用此模板自身的視覺語言從頭設計。
- 保持動畫的無障礙性。 根據建置規格要求,每個動畫都必須遵循
prefers-reduced-motion。
輸出合約
在 <artifact> 標籤內輸出:
<artifact identifier="kubric-hero-landing" type="text/html" title="Kubric™ 英雄登陸頁 — 暗色電影風英雄區塊與動畫 SVG 標誌">
<!doctype html>
<html>...</html>
</artifact>
建置規格
以下為產生此設計的原始提示,逐字呈現。
建置提示 — KUBRIC™ 英雄登陸頁 (TANSTACK START + REACT 19 + VITE 7 + TAILWIND V4)
目標
創建一個名為「KUBRIC™」的單頁深色英雄登陸頁面。它是一個全視口的英雄區塊(最小寬度 1024 像素,僅限桌面),包含循環背景影片、底部漸進式模糊疊加層、動畫 SVG 標誌、具有 4 個連結的玻璃導航藥丸(其中一個帶有圓形數字徽章「3」)、一個白色的「預約通話」按鈕、一個由 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 工具類)。
- 透過路由頭部的 標籤載入 Google 字型「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" → "功能"
│ │ ├── a.nav-pill__link href="#team" → "團隊" + span.nav-pill__badge "3"
│ │ ├── a.nav-pill__link href="#roadmap" → "路線圖"
│ │ └── a.nav-pill__link href="#contact" → "聯絡我們"
│ └── button.btn.btn--header
│ ├── "預約通話"
│ └── svg.btn__arrow viewBox="0 0 8 8" (path d="M1 7L7 1M7 1H2M7 1V6")
├── h1.hero__heading
│ ├── span.hero__line > span.hero__line-inner → "讓您的業務"
│ ├── span.hero__line > span.hero__line-inner → "脫穎而出 — 這是一門"
│ └── span.hero__line > span.hero__line-inner > em → "科學"
├── nav.side-nav aria-label="Sections"
│ ├── a.side-nav__link.side-nav__link--active href="#home"
│ │ ├── span.side-nav__link-text "首頁"
│ │ └── span.side-nav__line
│ ├── a.side-nav__link href="#services" → span.side-nav__link-text "我們的服務"
│ ├── a.side-nav__link href="#about" → span.side-nav__link-text "關於我們"
│ ├── a.side-nav__link href="#reviews" → span.side-nav__link-text "客戶評價"
│ └── a.side-nav__link href="#contact" → span.side-nav__link-text "聯絡我們"
├── div.hero__blur-bar
└── div.hero__bottom (CSS 網格,1fr auto / 3 行)
├── div.hero__label (第 1 行) → "01 — 我們的目標"
├── p.hero__desc (第 2 行) → 3 行:
│ "我們讓全球最投入的投資者和"
│ "家族辦公室能夠獲得專業管理的"
│ "投資策略。"
├── div.hero__actions (第 3 行)
│ ├── button.btn.btn--footer
│ │ ├── "討論專案"
│ │ └── svg.btn__arrow (與表頭相同的 8×8 箭頭路徑)
│ └── button.scroll-down#scrollDown
│ ├── span.scroll-down__text "向下滾動"
│ └── 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="粉紅色鬱金香特寫"
└── div.about-card__content
├── div
│ ├── h3.about-card__title "關於我們"
│ └── p.about-card__text "我們以使用者為中心的設計為驅動,提升生產力並增加收入。"
└── svg.about-card__arrow viewBox="0 0 77 13" (path d="M1 6.5H75M75 6.5L70 1.5M75 6.5L70 11.5")
圖示 / SVG 來源(逐字貼上 — 座標和路徑長度是精確的)
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>
ARROW 圖示(用於兩個按鈕)VIEWBOX="0 0 8 8":
<path d="M1 7L7 1M7 1H2M7 1V6" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"/>
向下滾動的 CHEVRON 圖示 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; }
.hero__gradient-top,.hero__gradient-bottom { display: none; }
/ ===== PROGRESSIVE BLUR ===== /
.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 ===== /
.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) .logo__arc-1a, body:not(.is-ready) .logo__arc-1b,
body:not(.is-ready) .logo__arc-2a, body:not(.is-ready) .logo__arc-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; } }
.logo__arc-1a,.logo__arc-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; }
.logo__arc-2a,.logo__arc-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(16px,2.3vw,33px);
background: rgba(255,255,255,0.08); backdrop-filter: blur(12px);
border-radius: 50px;
}
/ ===== SIDE NAV ===== /
.side-nav { position: absolute; right: var(--page-pad); top: 50%; transform: translateY(-50%); z-index:10; }
/ ===== ABOUT CARD ===== /
.about-card { display:flex; align-items: center; background: #fff; border-radius: var(--card-radius); color: var(--dark-text); text-decoration: none; }
/ ===== SCROLL DOWN ===== /
.scroll-down { display:flex; align-items:center; gap: 8px; background: transparent; color: var(--text); border: none; cursor: pointer; }
/ ===== ANIMATIONS ===== /
body:not(.is-ready) * { animation-play-state: paused !important; }
媒體查詢
無。僅限桌面。