Velorah — シネマティックヒーローランディングセクション は何をしますか?
MITライセンスの
pulkitxm/claude-directoryギャラリーからベンダリングされたヒーローセクション。
架空のクリエイティブブランド「Velorah」のためのシネマティックなシングルページヒーローセクションです。全画面ループ背景動画、カスタム.liquid-glassグラスモーフィズム効果によるリキッドガラス風ナビゲーションバーとCTAボタン、そして深いネイビーテーマのInstrument Serifディスプレイタイポグラフィを特徴としています。CSSキーフレームによるフェード&ライズ(フェードインしながら上昇)のエントランスアニメーションが遅延付きで適用され、ページ読み込み時に洗練された表示効果を生み出すため、クリエイティブエージェンシー、ポートフォリオサイト、エディトリアルランディングページに最適なテンプレートです。
ワークフロー
example.htmlをユーザーのワークスペースにクローンし、作業ファイルとします。- プレースホルダーコンテンツをユーザーの実際のブランド名、見出し、ボディコピー、数字、画像に置き換えます。アセットを交換する際は、既存の画像サイズに合わせてください。
- デザインシステムを維持します。 以下のビルド仕様に記載されているパレット、タイプスケール、スペーシングリズム、モーションはアイデンティティです。フォントを代替したり、パレットの色を変更したり、装飾要素を削除したりしないでください。
- セクションを複製して拡張します。他のテンプレートからレイアウトをインポートしないでください。セクションが不足している場合は、このテンプレート独自の表現でゼロからデザインしてください。
- モーションをアクセシブルに保ちます。 ビルド仕様で要求されているように、すべてのアニメーションは
prefers-reduced-motionの背後に配置する必要があります。
出力契約
<artifact>タグで囲んで出力します。
<artifact identifier="velorah-hero-landing" type="text/html" title="Velorah — シネマティックヒーローランディングセクション">
<!doctype html>
<html>...</html>
</artifact>
ビルド仕様
このデザインを生成した元のプロンプトです。そのまま記載します。
Velorah — シネマティックヒーローセクション
概要
全画面ループ背景動画、グラスモーフィック(「リキッドガラス」)なナビゲーションバーとコールトゥアクションボタン、そしてシネマティックなディスプレイタイポグラフィを備えたシングルページヒーローセクションを構築します。レイアウトはミニマリストで垂直方向に中央揃えです。動画がすべての視覚的な奥行きを提供し、装飾的なブロブ、放射状グラデーション、オーバーレイはありません。
テクノロジースタック
- フレームワーク: React 18(
react/react-dom^18.3.1)+ TypeScript(^5.7.3) - ビルドツール: Vite(
^5.4.14)経由@vitejs/plugin-react(^4.3.4) - スタイリング: Tailwind CSS(
^3.4.17)+tailwindcss-animate(^1.0.7)、autoprefixer(^10.4.20)、postcss(^8.5.1) - UIコンポーネント: shadcn/ui(
defaultスタイル、neutralベースカラー、CSS変数有効)、class-variance-authority(^0.7.1)、clsx(^2.1.1)、tailwind-merge(^2.6.0)で構築 - フォント: Instrument Serif(ディスプレイ)とInterウェイト400/500(ボディ)、Google Fontsから
- 注目すべきテクニック: 全画面自動再生背景動画、カスタム
.liquid-glassグラスモーフィズム効果(バックドロップブラー+グラデーションボーダーマスク)、CSSキーフレームによる遅延付きフェード&ライズエントランスアニメーション
グローバル設定
HTML(index.html)
-
<html lang="en">、<meta charset="UTF-8" />、ビューポートメタwidth=device-width, initial-scale=1.0。 -
<meta name="theme-color" content="#002b42" /> -
メタ説明:
Velorah — tools for deep thinkers, bold creators, and quiet rebels. Digital spaces for sharp focus and inspired work. -
https://fonts.googleapis.comとhttps://fonts.gstatic.comへのプリコネクト(後者はcrossorigin付き)。 -
スタイルシートリンク経由でGoogle Fontsを読み込み:
<link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500&display=swap" rel="stylesheet" /> -
<title>Velorah — Where dreams rise through the silence.</title> -
bodyに
<div id="root"></div>と<script type="module" src="/src/main.tsx"></script>を含めます。
フォント
- CSS変数:
--font-display: 'Instrument Serif', serif;と--font-body: 'Inter', sans-serif;。 - bodyは
font-family: var(--font-body);を使用します。 - 見出しはインラインスタイル
fontFamily: "'Instrument Serif', serif"を使用します(displayFont定数として一度定義して再利用)。 - Tailwind
fontFamily拡張でdisplay: "var(--font-display)"とbody: "var(--font-body)"をマッピングします。
エントリーポイント(src/main.tsx)
import { StrictMode } from "react"
import { createRoot } from "react-dom/client"
import App from "./App"
import "./index.css"
createRoot(document.getElementById("root")!).render(
<StrictMode>
<App />
</StrictMode>
)
Vite(vite.config.ts)
@vitejs/plugin-reactと@エイリアス(./srcを指す)を使用します。
import path from "node:path"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(import.meta.dirname, "./src"),
},
},
})
PostCSS(postcss.config.js)
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
カラーパレット
ダークテーマは、CSS変数(:root内)にHSLチャンネル値として定義され、Tailwind設定ではhsl(var(--token))経由で消費されます。
--background: 201 100% 13%(ダークネイビーブルー)--foreground: 0 0% 100%(白)--muted-foreground: 240 4% 66%(ミュートグレー)--primary: 0 0% 100%、--primary-foreground: 0 0% 4%--secondary: 0 0% 10%、--secondary-foreground: 0 0% 100%--muted: 0 0% 10%--accent: 0 0% 10%、--accent-foreground: 0 0% 100%--border: 0 0% 18%、--input: 0 0% 18%--ring: 0 0% 100%--radius: 0.5rem
ベースレイヤールール:
*に@apply border-border;を適用。bodyに@apply bg-background text-foreground antialiased;とfont-family: var(--font-body);を適用。::selectionはbackground: hsl(var(--foreground) / 0.92);とcolor: hsl(var(--background));を使用。
Tailwind設定(tailwind.config.ts)
darkMode: ["class"]、content: ["./index.html", "./src/**/*.{ts,tsx}"]、plugins: [animate](tailwindcss-animateから)。theme.extend.colorsは各トークンをhsl(var(--token))にマッピングし、primary、secondary、muted、accentはそれぞれDEFAULTとforegroundを公開します。theme.extend.borderRadius:lg: "var(--radius)"、md: "calc(var(--radius) - 2px)"、sm: "calc(var(--radius) - 4px)"。
レイアウト(src/App.tsx)
ルートコンテナ: relative flex min-h-screen flex-col overflow-hidden bg-background。
ビデオ背景
ルートコンテナ内の最初に配置される全画面<video>要素:
- クラス:
absolute inset-0 z-0 h-full w-full object-cover。 - 属性:
autoPlay、loop、muted、playsInline、さらにaria-hidden="true"とtabIndex={-1}(アクセシビリティ用)。 - ソース(
VIDEO_SRC定数)、ローカルアセットとして提供:/assets/hf_20260314_131748_f2ca2a28-fed7-44c8-b9a9-bd9acdd5ec31.mp4。
注: このアセットは
public/assets/の下にローカルでベンダリングされています。元々はCloudFront URL(https://d8j0ntlcm91z4.cloudfront.net/user_38xzzbokvigwjottwixh07lwa1p/hf_20260314_131748_f2ca2a28-fed7-44c8-b9a9-bd9acdd5ec31.mp4)から取得したものです。再ビルドでは、ソースで使用されているローカルの/assets/...パスを参照する必要があります。ここではホスト/スキームは小文字化されています。パスセグメントはソースファイル名からそのまま保持されています。
ナビゲーションバー(<header>)
- コンテナ:
relative z-10 mx-auto flex w-full max-w-7xl flex-row items-center justify-between px-8 py-6。 - ロゴ:
<a href="/">にVelorah®、®は<sup className="text-xs">®</sup>で表現。クラスtext-3xl tracking-tight text-foreground、displayFont(Instrument Serif)でスタイル、aria-label="Velorah home"。 - ナビリンク:
<nav className="hidden items-center gap-9 md:flex" aria-label="Primary">(モバイルでは非表示、mdで表示)。- 最初のリンク「Home」:
<a href="/">にtext-sm text-foreground transition-colorsクラスとaria-current="page"(アクティブ状態)。 - 残りのリンクは
NAV_LINKS = ["Studio", "About", "Journal", "Reach Us"]配列から。各々<a>としてレンダリングされ、href={#${label.toLowerCase().replace(/\s+/g, "-")}}、クラスtext-sm text-muted-foreground transition-colors hover:text-foreground。
- 最初のリンク「Home」:
- CTAボタン: shadcn
Button、variant="glass"、size="pill"、ラベルBegin Journey、追加クラスpx-6 py-2.5 text-sm text-foreground hover:scale-[1.03]。
ヒーロー(<main>)
- コンテナ:
relative z-10 flex flex-1 flex-col items-center justify-center px-6 pb-40 pt-32 text-center py-[90px]。 - 見出し(
<h1>):- クラス:
animate-fade-rise max-w-7xl text-5xl font-normal leading-[0.95] tracking-[-2.46px] sm:text-7xl sm:leading-[0.95] md:text-8xl md:leading-[0.95]、displayFont(Instrument Serif)でスタイル。 - コピー:
Where dreams rise through the silence.— ここでdreamsとthrough the silence.はそれぞれ<em className="not-italic text-muted-foreground">で囲まれ、色のコントラストを付けます(直立、ミュートグレーでレンダリング)。
- クラス:
- サブテキスト(
<p>):- クラス:
animate-fade-rise-delay mt-8 max-w-2xl text-base leading-relaxed text-muted-foreground sm:text-lg。 - コピー:
We're designing tools for deep thinkers, bold creators, and quiet rebels. Amid the chaos, we build digital spaces for sharp focus and inspired work.(「We're」のアポストロフィには’エンティティを使用)。
- クラス:
- CTAボタン: shadcn
Button、variant="glass"、size="pill"、ラベルBegin Journey、追加クラスanimate-fade-rise-delay-2 mt-12 cursor-pointer px-14 py-5 text-base text-foreground hover:scale-[1.03]。
App定数
const VIDEO_SRC =
"/assets/hf_20260314_131748_f2ca2a28-fed7-44c8-b9a9-bd9acdd5ec31.mp4"
const NAV_LINKS = ["Studio", "About", "Journal", "Reach Us"]
const displayFont = { fontFamily: "'Instrument Serif', serif" }
ボタンコンポーネント(src/components/ui/button.tsx)
class-variance-authorityで構築されたshadcn/uiのButtonです。cnヘルパーを介してrefを転送し、クラスをマージします。
- ベースクラス:
inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50。 - バリアント:
default:bg-primary text-primary-foreground transition-colors hover:bg-primary/90secondary:bg-secondary text-secondary-foreground transition-colors hover:bg-secondary/80ghost:transition-colors hover:bg-accent hover:text-accent-foregroundglass:liquid-glass text-foreground transition-transform duration-300 ease-out will-change-transform
- サイズ:
default:h-10 rounded-md px-4 py-2sm:h-9 rounded-md px-3lg:h-11 rounded-md px-8pill:rounded-full
- デフォルトバリアント:
variant: "default"、size: "default"。
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
const buttonVariants = cva(
"inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",
{
variants: {
variant: {
default:
"bg-primary text-primary-foreground transition-colors hover:bg-primary/90",
secondary:
"bg-secondary text-secondary-foreground transition-colors hover:bg-secondary/80",
ghost:
"transition-colors hover:bg-accent hover:text-accent-foreground",
glass:
"liquid-glass text-foreground transition-transform duration-300 ease-out will-change-transform",
},
size: {
default: "h-10 rounded-md px-4 py-2",
sm: "h-9 rounded-md px-3",
lg: "h-11 rounded-md px-8",
pill: "rounded-full",
},
},
defaultVariants: {
variant: "default",
size: "default",
},
}
)
cnヘルパー(src/lib/utils.ts)
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
リキッドガラス効果
カスタム.liquid-glassコンポーネントクラス(@layer componentsで定義)は、グラスモーフィズムルックを提供します: ほぼ透明な白色フィルとルミノシティブレンド、4pxのバックドロップブラー、インセットハイライトシャドウ、そしてマスクされた::before疑似要素を介してレンダリングされるグラデーション「ボーダー」。
.liquid-glass {
background: rgba(255, 255, 255, 0.01);
background-blend-mode: luminosity;
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
border: none;
box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
position: relative;
overflow: hidden;
}
.liquid-glass::before {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
padding: 1.4px;
background: linear-gradient(180deg,
rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
pointer-events: none;
}
アニメーション
キーフレームベースのフェード&ライズエントランスアニメーション(@layer utilitiesで定義)。それぞれ0.8s ease-outで実行され、bothフィルモードと遅延時間が設定されています。アニメーションはprefers-reduced-motion: reduceの下で無効になります。
@keyframes fade-rise {
from { opacity: 0; transform: translateY(24px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-rise { animation: fade-rise 0.8s ease-out both; }
.animate-fade-rise-delay { animation: fade-rise 0.8s ease-out 0.2s both; }
.animate-fade-rise-delay-2 { animation: fade-rise 0.8s ease-out 0.4s both; }
@media (prefers-reduced-motion: reduce) {
.animate-fade-rise,
.animate-fade-rise-delay,
.animate-fade-rise-delay-2 {
animation: none;
}
}
適用: