NHM 古生物学 — 自然史博物館 モノクローム ランディングページ
MITライセンスの
pulkitxm/claude-directoryギャラリーからベンダリングされたランディングページ。
架空の自然史博物館古生物学コレクション向けのモノクローム、エディトリアルランディングページ。3つのセクションで構成される連続スクロールを備えています:遅延表示の背景ビデオとアニメーション化された幾何学模様の「NHM」SVGロゴタイプ(ポリゴン単位のスライドアップ表示)を備えた全画面ヒーロー、スクロールに応じて表示される見出しとアクションピルを備えた「Explore Our World」セクション、そして自動サイクルする化石画像とカスタムSVG feTurbulence/feDisplacementMap サンドディゾルブトランジション効果を備えたダークモードの「Ancient Collection」チャプターブラウザ。React 19、Vite 6、Tailwind CSS 4(CSSファースト設定)、Motion(Framer Motion)で構築。厳格な白黒/グレーのパレットで、カラーアクセントは一切ありません。
ワークフロー
example.htmlを ユーザーのワークスペースに作業ファイルとしてクローンします。- プレースホルダーコンテンツを ユーザーの実際のブランド名、見出し、本文、数字、画像に置き換えます。アセットを交換する際は、既存の画像寸法に合わせてください。
- デザインシステムを維持します。 以下のビルド仕様のパレット、タイプスケール、スペーシングリズム、モーションはアイデンティティです。フォントを代替したり、パレットの色を変更したり、装飾要素を取り除いたりしないでください。
- セクションを複製して拡張 し、別のテンプレートからレイアウトをインポートすることは絶対にしないでください。セクションが不足している場合は、このテンプレート独自のボキャブラリーでゼロからデザインしてください。
- モーションをアクセシブルに保ちます。 ビルド仕様で要求されているように、すべてのアニメーションは
prefers-reduced-motionの背後に留めておく必要があります。
出力契約
<artifact> タグで囲んで出力します:
<artifact identifier="nhm-paleontology-landing" type="text/html" title="NHM 古生物学 — 自然史博物館 モノクローム ランディングページ">
<!doctype html>
<html>...</html>
</artifact>
ビルド仕様
このデザインを生成した元のプロンプトをそのまま記載します。
NHM — 自然史博物館 古生物学 ランディング
概要
自然史博物館の古生物学コレクション向けに、シングルページ、モノクロームのランディングページを構築します。ページは3つのセクションで構成される連続スクロールです。遅延表示の背景ビデオと幾何学模様の「NHM」ロゴタイプを備えた全画面ヒーローセクション、「Explore Our World」イントロセクション、そしてSVGフィルターによるサンド/ディゾルブ画像トランジションを特徴とするダークモードの「Ancient Collection」チャプターブラウザです。ページ全体は単一の App.tsx コンポーネントと、同じファイル内の SandTransitionImage ヘルパーおよび LeafIcon ヘルパーで構成されます。
技術スタック
- フレームワーク: React 19(
react、react-dom^19.0.1)、StrictMode使用 - ビルドツール: Vite 6(
vite^6.2.3、@vitejs/plugin-react^5.0.4) - 言語: TypeScript(
typescript~5.8.2、@types/react^19.0.10、@types/react-dom^19.0.4) - スタイリング: Tailwind CSS 4(
tailwindcss^4.1.14、@tailwindcss/vite^4.1.14)—@themeによるCSSファースト設定 - アニメーション: Motion / Framer Motion(
motion^12.23.24)、motion/reactからインポート - アイコン: Lucide(
lucide-react^0.546.0) - フォント(Google Fonts): Inter(サンセリフ、ウェイト300/400/500/600)および JetBrains Mono(等幅、ウェイト400/500)
- 注目すべき技術: 遅延表示の背景ビデオ、自動サイクルするチャプターカルーセル、
requestAnimationFrameで駆動するSVGfeTurbulence/feDisplacementMapサンドディゾルブフィルター、ポリゴン単位でアニメーションする幾何学模様のロゴタイプ、whileInViewによるスクロール表示。
グローバル設定
index.html
lang="en"、<meta charset="UTF-8" />、ビューポートメタwidth=device-width, initial-scale=1.0。- 説明メタ:
NHM — Natural History Museum. Exploring the story of life on earth through science, discovery and wonder. - タイトル:
NHM — Natural History Museum - ルート:
<div id="root"></div>および<script type="module" src="/src/main.tsx"></script>。
src/main.tsx
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import "./index.css";
import App from "./App";
createRoot(document.getElementById("root")!).render(
<StrictMode>
<App />
</StrictMode>,
);
src/index.css
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');
@import "tailwindcss";
@theme {
--font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}
@layer base {
body {
background-color: #fcfcfc;
color: #111;
overflow-x: hidden;
font-family: var(--font-sans);
-webkit-font-smoothing: antialiased;
}
::selection {
background-color: #000;
color: #fff;
}
}
@layer utilities {
.text-mega {
font-size: 21vw;
line-height: 0.75;
letter-spacing: -0.04em;
}
}
グローバルスタイリングの概要: 背景 #fcfcfc、テキスト #111、選択範囲 #000 背景 / #fff テキスト、overflow-x: hidden、デフォルトフォント font-sans(Inter)、アンチエイリアス。.text-mega ユーティリティ(font-size: 21vw、line-height: 0.75、letter-spacing: -0.04em)は定義されていますが、すべてのレイアウトで必須ではありません。
データ、状態、定数
インポート
import { useEffect, useRef, useState } from "react";
import { AnimatePresence, motion, usePresence } from "motion/react";
import type { Variants } from "motion/react";
import {
ArrowRight,
ArrowUpRight,
Bone,
BookOpen,
Dna,
Gem,
Leaf,
Plus,
} from "lucide-react";
アセットURL(ローカル、/assets/ 下にベンダリング)
注:アセットはリモートCDNではなく、
/assets/...からローカルに提供されます。元のブリーフはCloudinary URLを参照していましたが、プロジェクトではこれらの正確な(小文字、大文字小文字を区別する)ファイル名でローカルにベンダリングしています。
const VIDEO_URL =
"/assets/magnific_use-img-2-as-the-exact-ba_Piu3X0W42C_wnrc8f.mp4";
const PTERODACTYL_URL =
"/assets/ChatGPT_Image_May_23_2026_12_24_44_PM_1_lv1dne.png";
チャプターデータ
const chaptersData = [
{ name: "恐竜の時代", image: "/assets/01_udnber.png" },
{ name: "古代生命の化石", image: "/assets/02_pmvxxl.png" },
{ name: "中生代の爬虫類", image: "/assets/03_hcp3jc.png" },
{ name: "海棲化石ギャラリー", image: "/assets/04_get63z.png" },
{ name: "先史時代の巨人", image: "/assets/05_kz1tyu.png" },
];
その他の定数
const NAV_LINKS = ["来館", "展示", "発見", "学ぶ", "概要"];
const ACTION_PILLS = [
{ icon: Bone, label: "恐竜" },
{ icon: Dna, label: "古代の生命" },
{ icon: Gem, label: "鉱物" },
{ icon: Leaf, label: "化石" },
{ icon: BookOpen, label: "もっと詳しく" },
];
const EASE: [number, number, number, number] = [0.16, 1, 0.3, 1];
コンポーネントの状態(App 内)
const [showVideo, setShowVideo] = useState(false);
const [activeChapter, setActiveChapter] = useState(2); // 「中生代の爬虫類」で開始
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
showVideoは、2800ms のsetTimeout後にtrueに切り替わります(アンマウント時にクリア)。activeChapterは、3500ms ごとにsetIntervalで自動サイクルし、(prev + 1) % 5でラップします(アンマウント時にクリア)。
アニメーションバリアント
const fadeUp: Variants = {
initial: { opacity: 0, y: 20 },
animate: { opacity: 1, y: 0 },
};
const fadeUpTransition = { duration: 0.8, ease: "easeOut" as const };
const letterBlock: Variants = {
initial: { y: 120, opacity: 0 },
animate: {
y: 0,
opacity: 1,
transition: { duration: 1.2, ease: EASE },
},
};
const logoVariants: Variants = {
initial: { scale: 1.03 },
animate: {
scale: 1,
transition: {
duration: 1.2,
ease: EASE,
staggerChildren: 0.06,
delayChildren: 0.1,
},
},
};
const staggerHeader: Variants = {
animate: { transition: { staggerChildren: 0.1, delayChildren: 0.1 } },
};
const staggerLeft: Variants = {
animate: { transition: { staggerChildren: 0.15, delayChildren: 0.6 } },
};
const staggerRight: Variants = {
animate: { transition: { staggerChildren: 0.15, delayChildren: 0.9 } },
};
const staggerPills: Variants = {
animate: { transition: { staggerChildren: 0.1, delayChildren: 0.3 } },
};
レイアウト
ルート要素:<main className="w-full"> に3つの <section> ブロックを含む。
セクション 1 — ヒーロー(全画面高さ)
コンテナ:relative flex min-h-screen w-full flex-col overflow-hidden
1D. 背景ビデオ
最初にレンダリング(すべての背後に配置)、AnimatePresence 内で showVideo によってゲート制御。
- ラッパー
motion.div:initial={{ opacity: 0 }}、animate={{ opacity: 1 }}、transition={{ duration: 1.4, ease: "easeOut" }}、クラスpointer-events-none absolute top-0 left-0 z-0 h-full w-full。 <video>:autoPlay loop muted playsInline、src={VIDEO_URL}、クラスh-full w-full object-cover。
1A. ヘッダー — NHM ロゴタイプ
motion.header に initial="initial" animate="animate" variants={staggerHeader}、クラス relative z-20 px-6 pt-6 md:px-16。
motion.h1はvariants={logoVariants}、クラスw-fullを使用。<span className="sr-only">NHM — Natural History Museum</span>とインラインSVGを含む。- SVG:
viewBox="0 0 840 100"、クラスw-full overflow-hidden fill-[#111]、aria-hidden="true"。 - 文字は
LOGO_LETTERSからデータ駆動。各文字は<g transform={letter.translate}>であり、各ポリゴンはmotion.polygonでvariants={letterBlock}(y: 120からスライドアップ)を持つ。
const LOGO_LETTERS: { translate: string; polygons: string[] }[] = [
{
// N
translate: "translate(0,0)",
polygons: [
"0,0 14,0 14,100 0,100",
"200,0 214,0 214,100 200,100",
"0,0 33,0 214,100 181,100",
],
},
{
// H
translate: "translate(280,0)",
polygons: [
"0,0 14,0 14,100 0,100",
"200,0 214,0 214,100 200,100",
"14,43 200,43 200,57 14,57",
],
},
{
// M
translate: "translate(560,0)",
polygons: [
"0,0 14,0 14,100 0,100",
"266,0 280,0 280,100 266,100",
"0,0 26,0 153,100 127,100",
"254,0 280,0 153,100 127,100",
],
},
];
1B. サブナビゲーションバー
motion.div に variants={fadeUp} transition={fadeUpTransition}、クラス mt-8 flex items-start justify-between gap-3 font-mono text-[10px] tracking-[0.2em] uppercase md:text-[11px]。
- 左列(
w-[15%]):3つの<p>行 —Natura/History/Museum。 - 矢印セパレーター(
hidden w-[5%] justify-center md:flex):LucideArrowRight、size={14}、strokeWidth={1}、クラスtext-gray-400。 - 中央列(
flex-1 leading-relaxed font-mono text-gray-800 md:flex-none md:w-[30%]):コピー「Exploring the story of life on earth through science, discovery and wonder.」をデスクトップでは3行(hidden md:block)、モバイルでは4行(md:hidden)に分割:- デスクトップ:
Exploring the story of life/on earth through science,/discovery and wonder. - モバイル:
Exploring the story/of life on earth/through science,/discovery and wonder.
- デスクトップ:
- 矢印セパレーター(同上、
hidden w-[5%] justify-center md:flex)。 - 右列 / ナビゲーション(
hidden w-[15%] md:block):<ul className="space-y-1 text-gray-800">でNAV_LINKS— 来館、展示、発見、学ぶ、概要 — をマッピング。各項目は<a href="#">でクラスtransition-colors hover:text-black hover:underline。 - ハンバーガーボタン(右端、
md:hidden):<button type="button">でaria-labelがOpen menu/Close menuを切り替え、aria-expanded={isMobileMenuOpen}、onClickでisMobileMenuOpenを切り替え、クラスgroup z-60 flex flex-col items-end gap-[6px] py-2 pl-4 md:hidden。- 2つの
<span>バー。各ベースクラスh-[1.5px] bg-black transition-all duration-300。 - 開いている時:最初のバー
w-8 translate-y-[3.75px] rotate-45;2番目のバーw-8 -translate-y-[3.75px] -rotate-45(Xを形成)。 - 閉じている時:最初のバー
w-8 group-hover:w-6;2番目のバーw-8 group-hover:w-10。
- 2つの
1C. モバイルメニューオーバーレイ
AnimatePresence で isMobileMenuOpen が true のときに motion.div をラップ。
initial={{ y: -20, opacity: 0 }}、animate={{ y: 0, opacity: 1 }}、exit={{ y: -20, opacity: 0 }}、transition={{ duration: 0.4, ease: EASE }}。- クラス:
absolute top-full right-0 left-0 z-50 border-b border-gray-200 bg-[#fcfcfc] shadow-xl md:hidden。 <nav className="px-6 py-10">に<ul className="space-y-6 font-mono text-sm tracking-[0.2em] uppercase">で同じNAV_LINKSをマッピング。各リンクのonClickはメニューを閉じる(setIsMobileMenuOpen(false))、クラスtransition-colors hover:text-black hover:underline。
ヒーロー本文ラッパー
<div className="relative z-10 flex w-full flex-1 items-start justify-between"> に左右のサイドバーを配置。
1E. 左サイドバーコンテンツ
motion.div に initial="initial" animate="animate" variants={staggerLeft}、クラス mt-20 w-[320px] px-10 sm:mt-28 md:mt-32 md:px-16。
- セクションインジケーター(
motion.div variants={fadeUp}、クラスflex items-center gap-4 font-mono text-xs):<span>01</span>+<span className="h-[1.5px] w-16 bg-black/20" />。 - 見出し(
motion.h2 variants={fadeUp}、クラスmt-6 text-[3.5rem] leading-[1] font-normal tracking-tight md:text-[5rem]):TIMELESS<br />WONDERS。 - 説明文(
motion.p variants={fadeUp}、クラスmt-6 w-[240px] text-[13px] leading-[1.6] text-gray-700 md:text-[14px]):Step into the natural world and/discover the stories written/millions of years ago.(各フレーズの間に改行)。 - CTAボタン(
motion.div variants={fadeUp}、クラスmt-10):<button type="button">でクラスgroup relative overflow-hidden rounded-md border border-[#1a1a1a] bg-[#1a1a1a] px-6 py-3.5 shadow-sm transition-all duration-300 hover:-translate-y-[0.5px] hover:shadow-[3px_3px_0px_rgba(17,17,17,0.5)] active:translate-y-0 active:shadow-sm。- スライディング背景パネル(
<span aria-hidden="true">):absolute inset-0 -translate-x-[101%] bg-[#fcfcfc] transition-transform duration-700 ease-[cubic-bezier(0.16,1,0.3,1)]。ホバー時にgroup-hover:translate-x-0。 - ラベル(
<span className="relative z-10 flex items-center gap-2 font-mono text-[11px] tracking-[0.15em] text-[#fcfcfc] transition-colors duration-300 group-hover:text-[#1a1a1a]">):テキスト「コレクションを探検」と LucideArrowUpRight、size={14}、strokeWidth={1.5}。
- スライディング背景パネル(
1F. 右サイドバー — Pterodactyl 画像
motion.div に initial="initial" animate="animate" variants={staggerRight}、クラス hidden h-full items-end self-end md:flex。
motion.figure variants={fadeUp}、クラスrelative h-[90%] w-full max-w-[360px]。<img src={PTERODACTYL_URL} alt="" aria-hidden="true" className="h-full w-full object-cover object-bottom" />で透かし画像を表示。
セクション 2 — 「私たちの世界を探検」イントロ
<section id="explore" className="relative z-10 w-full bg-[#fcfcfc] px-6 py-24 md:px-16 md:py-36 lg:px-24">
グリッドレイアウト
<div className="mx-auto grid w-full max-w-7xl grid-cols-1 gap-12 md:grid-cols-12">
左列(md:col-span-5)
motion.h2にvariants={staggerHeader}、クラスoverflow-hidden text-left:<motion.span variants={fadeUp} className="block font-mono text-[11px] tracking-[0.2em] text-gray-400 uppercase">/ 02</motion.span>と<motion.span variants={fadeUp} className="block text-[2.5rem] leading-[1.1] font-normal tracking-tight md:text-[3rem]">自然の世界へ</motion.span>。
右列(md:col-span-6 md:col-start-7)
motion.divにvariants={staggerPills}、クラスflex flex-wrap gap-3。- 各
<motion.button variants={fadeUp}>はクラスgroup inline-flex items-center gap-2 rounded-full border border-gray-300 bg-[#fcfcfc] px-5 py-2.5 font-mono text-[11px] tracking-[0.1em] text-gray-700 uppercase transition-all duration-300 hover:border-[#1a1a1a] hover:bg-[#1a1a1a] hover:text-[#fcfcfc]。内部に Lucideアイコン(size={14}、strokeWidth={1.5})とラベルテキスト。
- 各
セクション 3 — 「古代コレクション」チャプターブラウザ
<section className="relative z-10 flex w-full flex-col bg-[#1a1a1a] text-[#fcfcfc]">
3A. 固定コンテナ
固定レイアウト用の <div className="relative mx-auto flex min-h-screen w-full max-w-7xl flex-col justify-between overflow-hidden px-6 py-12 md:px-16 md:py-20 lg:px-24">。
トップエリア
- セクションインジケーター:
<div className="flex items-center gap-4 font-mono text-xs"><span className="text-gray-400">/ 03</span><span className="h-[1.5px] w-16 bg-white/20" /></div>。 - チャプタータイトル:
<motion.h3 key={activeChapter} initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.5, ease: EASE }} className="mt-6 text-[3rem] leading-[1.1] font-normal tracking-tight md:text-[4.5rem]">{chaptersData[activeChapter].name}</motion.h3>。
下部エリア — チャプターサムネイル
<div className="mt-20 flex items-end justify-between">
- ナビゲーションドット:
<div className="flex gap-4">にはchaptersDataをマッピング。各ドットは<button>で、onClick={() => setActiveChapter(index)}、クラスgroup flex flex-col items-start gap-2。- アクティブ時:
<span className="h-8 w-[1.5px] bg-[#fcfcfc] transition-all duration-300" />。 - 非アクティブ時:
<span className="h-4 w-[1.5px] bg-white/20 transition-all duration-300 group-hover:h-8 group-hover:bg-white/50" />。
- アクティブ時:
- 矢印ナビゲーション:
<div className="flex gap-3">:<button onClick={prevChapter}>— LucideArrowLeft、クラスrounded-full border border-white/20 p-2.5 transition-colors hover:border-white。<button onClick={nextChapter}>— LucideArrowRight、クラスrounded-full border border-white/20 p-2.5 transition-colors hover:border-white。
3B. 背景画像ラッパー(すべての背後)
<div className="absolute top-0 left-0 z-0 h-full w-full"> には各チャプターの <AnimatePresence mode="wait">。
各 <motion.div key={activeChapter}> は currentImage(チャプター画像)を表示。
initial={{ opacity: 0 }}animate={{ opacity: 1 }}exit={{ opacity: 0 }}transition={{ duration: 0.8, ease: EASE }}- 子要素として
<img src={...} alt="" aria-hidden="true" className="h-full w-full object-cover opacity-30" />。
3C. SandTransitionImage コンポーネント
このコンポーネントは、SVG feTurbulence / feDisplacementMap フィルターを使用して、砂が吹き飛ぶようなディゾルブトランジションを作成します。
function SandTransitionImage({
src,
isActive,
}: {
src: string;
isActive: boolean;
}) {
const svgRef = useRef<SVGSVGElement>(null);
const frameRef = useRef<number>(0);
const progressRef = useRef(0);
return (
<div className="relative h-full w-full overflow-hidden">
<svg
ref={svgRef}
className="absolute inset-0 h-full w-full"
viewBox="0 0 1000 800"
preserveAspectRatio="xMidYMid slice"
>
<defs>
<filter id="sandDissolve" x="0" y="0" width="100%" height="100%">
<feTurbulence
type="fractalNoise"
baseFrequency="0.6"
numOctaves="4"
seed="2"
result="noise"
/>
<feColorMatrix
type="matrix"
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"
in="SourceGraphic"
result="opacitySource"
/>
<feDisplacementMap
in="opacitySource"
in2="noise"
scale="0"
xChannelSelector="R"
yChannelSelector="G"
result="displaced"
/>
</filter>
<filter id="sandDissolveSvg" x="0" y="0" width="100%" height="100%">
<feTurbulence
type="fractalNoise"
baseFrequency="0.6"
numOctaves="4"
seed="2"
result="noise"
/>
<feDisplacementMap
in="SourceGraphic"
in2="noise"
scale="0"
xChannelSelector="R"
yChannelSelector="G"
/>
</filter>
</defs>
<image
href={src}
x="0"
y="0"
width="100%"
height="100%"
preserveAspectRatio="xMidYMid slice"
filter="url(#sandDissolve)"
/>
</svg>
</div>
);
}
トランジションの仕組み: feDisplacementMap の scale 属性は、requestAnimationFrame ループを使用して徐々に増加します。トランジションがトリガーされると(チャプターインデックスが変更される)、scale は0から最大値(例:150)まで経時的に増加し、砂が吹き飛ぶような効果を生み出します。完了すると、新しい画像が表示され、scale はリセットされます。
実装は簡略化されています。 実際の実装では、scale をアニメーション化するための適切な useEffect フックと requestAnimationFrame ロジックが必要であり、完了していないサイクルのクリーンアップも行います。
パフォーマンスに関する注意事項
- Vite と React 19 の
StrictModeにより、高速な開発ビルドが保証されます - すべてのアニメーションは GPU で合成可能なプロパティ(
opacity、transform)を使用 - ビデオは
muted+playsInlineにより、iOS でも自動再生が保証されます - SVG フィルター計算は canvas ではなく GPU アクセラレーションを利用
アクセシビリティ
- すべてのインタラクティブ要素に
focus-visibleスタイルが必要です(実装者はTailwindのfocus-visible:ring-2などを使用してください) - 装飾画像は
alt=""+aria-hidden="true"を使用 motionのwhileInViewはデフォルトでprefers-reduced-motionを尊重- カラーパレットは白/黒/グレーのみで、WCAG AA のコントラスト比を簡単に満たせます