Kubric™ ヒーローランディング — ダークシネマティックヒーローとアニメーションSVGロゴ
ヒーローセクションは、MITライセンスの
pulkitxm/claude-directoryギャラリーからベンダリングしました。
架空のスタジオ Kubric™ のためのデスクトップ専用、シングルページのダークヒーローランディングページ。TanStack Start v1 + React 19 + Vite 7 + Tailwind v4 をベースに、ファイルベースルーティングを使用しています。ループする背景動画、下部のプログレッシブ8レイヤー backdrop-filter ブラー、アニメーションするSVGロゴ(アークの stroke-dashoffset 表示)、ガラスモーフィックなナビゲーションピル、1文字ずつ表示されるヘッドライン、垂直な右側セクションナビ、白い「About us」カードを備えています。すべての要素は、背景動画の準備が整った後に初回ロード時にアニメーション表示されます。
ワークフロー
- ユーザーのワークスペースに
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™」と呼ばれるシングルページのダークヒーローランディングを作成します。これは、ループする背景動画、下部のプログレッシブブラーオーバーレイ、アニメーションするSVGロゴ、4つのリンク(1つは円形の数値バッジ「3」を持つ)と白い「Book a Call」ボタンを含むガラスモーフィックなナビゲーションピル、イタリックアクセントを持つ3行のヘッドライン(1文字ずつ表示)、アクティブな下線付きの垂直な右側セクションナビ、ラベル「01 — OUR GOAL」、説明パラグラフ、プライマリ「DISCUSS THE PROJECT」ボタン、アニメーションする「SCROLL DOWN」ピル、画像と矢印を持つ白い水平な「ABOUT US」カードを含む、フルビューポートのヒーロー(最小1024px幅、デスクトップのみ)です。すべての要素は、背景動画の準備が整った後に初回ロード時にアニメーション表示されます。
スタック / ファイル
- TanStack Start v1 ファイルベースルーティング。ルートは
src/routes/。ルートはsrc/routes/__root.tsx。ホームはsrc/routes/index.tsx。 - Tailwind v4 は
src/styles.cssで@import "tailwindcss"経由(tailwind.config.jsは不要)。 - すべてのKubricスタイルは
src/styles.cssに追記されたプレーンなCSS(Tailwindユーティリティではない)。 - Google Font「Inter Tight」(ウェイト 300/400/500/700/800、イタリック 400/700)は、ルートの
<link>で読み込む。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-pill__link href="#team" → "Team" + span.nav-pill__badge "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.hero__line > span.hero__line-inner → "Making your business"
│ ├── span.hero__line > span.hero__line-inner → "outstanding — is a"
│ └── span.hero__line > span.hero__line-inner > em → "Science"
├── nav.side-nav aria-label="Sections"
│ ├── a.side-nav__link.side-nav__link--active href="#home"
│ │ ├── span.side-nav__link-text "Home"
│ │ └── span.side-nav__line
│ ├── a.side-nav__link href="#services" → span.side-nav__link-text "Our Services"
│ ├── a.side-nav__link href="#about" → span.side-nav__link-text "About Us"
│ ├── a.side-nav__link href="#reviews" → span.side-nav__link-text "Reviews"
│ └── a.side-nav__link href="#contact" → span.side-nav__link-text "Contact Us"
├── div.hero__blur-bar
└── div.hero__bottom (CSS grid, 1fr auto / 3 rows)
├── div.hero__label (row 1) → "01 — Our goal"
├── p.hero__desc (row 2) → 3 lines:
│ "We enable the world's most engaged investors and"
│ "family offices to access professionally managed"
│ "investment strategies."
├── div.hero__actions (row 3)
│ ├── button.btn.btn--footer
│ │ ├── "Discuss the project"
│ │ └── svg.btn__arrow (ヘッダーと同じ 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="ピンクのチューリップ接写"
└── div.about-card__content
├── div
│ ├── h3.about-card__title "About us"
│ └── p.about-card__text "We'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 は正確)
ロゴ 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"/>
About Card の長い矢印 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,35px);
background: hsla(0,0%,100%,0.15); backdrop-filter: blur(40px); border-radius:100px;
border:1px solid hsla(0,0%,100%,0.08);
}
.nav-pill__link { font-size: clamp(13px,1.04vw,15px); font-weight:400; color:#fff; white-space:nowrap; display:inline-flex; align-items:center; gap:4px; }
.nav-pill__badge {
display:inline-flex; align-items:center; justify-content:center;
width:18px; height:18px; border-radius:50%; background:#fff; color:#222;
font-size:10px; font-weight:700; line-height:1;
}
.btn--header {
font-size: clamp(12px,0.97vw,14px); font-weight:500; color:#222;
background:#fff; padding: clamp(10px,0.83vw,12px) clamp(18px,1.66vw,24px);
border-radius:100px; display:inline-flex; align-items:center; gap:6px;
transition: box-shadow 0.15s, transform 0.15s;
}
.btn--header:hover { box-shadow: 0 8px 24px rgba(255,255,255,0.25); transform: scale(1.02); }
.btn__arrow { width:12px; height:12px; display:block; }
/* ===== HEADING ===== */
.hero__heading {
position: absolute; bottom:40%; left:var(--page-pad); z-index:5;
max-width: 500px;
}
.hero__line { display:block; overflow:hidden; }
.hero__line-inner { display:inline-block; white-space:nowrap;
font-size: clamp(28px,4.16vw,60px); font-weight:300; line-height:1.1; color:#fff;
transform: translateY(100%); opacity:0;
animation: slideUpChar 0.8s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
}
.hero__line-inner em { font-style:italic; font-weight:400; }
@keyframes slideUpChar {
0% { transform: translateY(100%); opacity:0; }
100% { transform: translateY(0); opacity:1; }
}
/* ===== SIDE NAV ===== */
.side-nav { position:absolute; right:var(--page-pad); top:50%; transform:translateY(-50%); z-index:5; display:flex; flex-direction:column; gap:20px; }
.side-nav__link { display:flex; align-items:center; gap:12px; font-size:11px; font-weight:300; color:rgba(255,255,255,0.6); letter-spacing:0.05em; writing-mode:vertical-rl; text-orientation:mixed; height:40px; }
.side-nav__link--active { color:#fff; }
.side-nav__line { width:1px; height:0; background:#fff; transition:height 0.4s ease; }
.side-nav__link--active .side-nav__line { height:100%; }
/* ===== BOTTOM ===== */
.hero__bottom {
position:absolute; left:var(--page-pad); right:var(--page-pad); bottom:0; z-index:10;
display:grid; grid-template-columns:1fr auto; grid-template-rows:auto 1fr auto;
gap:4px 24px; padding:0 0 40px;
}
.hero__label { grid-column:1/2; grid-row:1/2; font-size:11px; font-weight:400; letter-spacing:0.1em; color:rgba(255,255,255,0.8); margin-bottom:8px; }
.hero__desc { grid-column:1/2; grid-row:2/3; font-size:13px; font-weight:300; line-height:1.6; color:rgba(255,255,255,0.7); max-width:400px; margin:0 0 20px; }
.hero__actions { grid-column:1/2; grid-row:3/4; display:flex; align-items:center; gap:20px; }
.btn--footer {
display:inline-flex; align-items:center; gap:10px;
font-size:13px; font-weight:500; color:#fff;
background:transparent; border:1px solid rgba(255,255,255,0.3);
padding: 12px 24px; border-radius:100px;
transition: background 0.2s, border-color 0.2s;
}
.btn--footer:hover { background:rgba(255,255,255,0.1); border-color:#fff; }
.scroll-down { display:flex; align-items:center; gap:10px; color:rgba(255,255,255,0.7); }
.scroll-down__text { font-size:12px; font-weight:400; letter-spacing:0.05em; white-space:nowrap; }
.scroll-down__circle {
display:flex; align-items:center; justify-content:center;
width:44px; height:44px; border-radius:50%;
background:rgba(255,255,255,0.1); backdrop-filter:blur(10px);
border:1px solid rgba(255,255,255,0.15);
animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-down__circle svg { width:8px; height:10px; display:block; }
@keyframes scrollPulse {
0%,100% { transform:scale(1); }
50% { transform:scale(1.08); }
}
/* ===== ABOUT CARD ===== */
.about-card {
grid-column:2/3; grid-row:1/4; align-self:end;
display:flex; align-items:center; gap:20px;
background:#fff; border-radius:var(--card-radius); padding:20px 24px;
max-width:360px; cursor:pointer;
transition: box-shadow 0.2s, transform 0.2s;
}
.about-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.about-card__image { flex-shrink:0; width:80px; height:80px; overflow:hidden; border-radius:2px; }
.about-card__image img { width:100%; height:100%; object-fit:cover; }
.about-card__content { display:flex; flex-direction:column; gap:6px; flex:1; }
.about-card__title { font-size:11px; font-weight:700; letter-spacing:0.05em; color:var(--dark-text); margin:0; text-transform:uppercase; }
.about-card__text { font-size:11px; font-weight:400; line-height:1.45; color:rgba(34,40,43,0.65); margin:0; }
.about-card__arrow { flex-shrink:0; width:60px; height:auto; stroke:var(--dark-text); stroke-width:1; transition: transform 0.2s; }
.about-card:hover .about-card__arrow { transform: translateX(4px); }
/* ===== MOTION PREFERENCE ===== */
@media (prefers-reduced-motion: reduce) {
*,*::before,*::after { animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}
/* ===== REVEAL SEQUENCE (applied via JS) ===== */
body.is-ready .hero__heading .hero__line-inner { animation: slideUpChar 0.8s ease forwards; }
body.is-ready .hero__heading .hero__line:nth-child(1) .hero__line-inner { animation-delay: 0.3s; }
body.is-ready .hero__heading .hero__line:nth-child(2) .hero__line-inner { animation-delay: 0.5s; }
body.is-ready .hero__heading .hero__line:nth-child(3) .hero__line-inner { animation-delay: 0.7s; }
body.is-ready .hero__label, body.is-ready .hero__desc, body.is-ready .hero__actions { opacity:0; animation: fadeUp 0.6s ease forwards; }
body.is-ready .hero__label { animation-delay: 0.9s; }
body.is-ready .hero__desc { animation-delay: 1.1s; }
body.is-ready .hero__actions { animation-delay: 1.3s; }
body.is-ready .about-card { opacity:0; animation: fadeUp 0.6s ease 1.5s forwards; }
@keyframes fadeUp {
from { opacity:0; transform: translateY(12px); }
to { opacity:1; transform: translateY(0); }
}
JavaScript(src/routes/index.tsx にインラインスクリプトとして追加、または /public から読み込み)
ページ読み込み完了時に document.body に is-ready クラスを追加し、背景動画がトリガーされるのを待ちます。動画の canplaythrough イベントを使用するか、単純にタイマーを使用します。
window.addEventListener('load', () => {
const video = document.querySelector('.hero__video');
if (video) {
video.addEventListener('canplaythrough', () => {
document.body.classList.add('is-ready');
}, { once: true });
// フォールバック:動画がまったく再生されない場合に備えて
setTimeout(() => {
document.body.classList.add('is-ready');
}, 3000);
} else {
document.body.classList.add('is-ready');
}
});
メモ
- すべてのテキストはプレースホルダーです。ユーザーのブランドに合わせて書き換えてください。
- 作業ファイルは
example.htmlで、最終的にはユーザーが入手可能な任意の名前にします。 - about-card の画像は
https://qclay.design/lovable/kubric/card-image.png(ピンクのチューリップ)ですが、ユーザーの実際のアセットで置き換えてください。 - 動画の読み込みを高速化するために CDN が推奨されます。
- このテンプレートは、
pulkitxm/claude-directoryギャラリーからベンダリングした MIT ライセンスのヒーローセクションです。