Astra — シネマティック宇宙旅行ランディングページ
MITライセンスの
pulkitxm/claude-directoryギャラリーからベンダーされたランディングページ
宇宙旅行ブランド「astra」の単一ページランディングサイト。2つのフルハイトセクション(ヒーローと機能紹介)は、カスタムのrAF駆動JavaScriptルーチン(CSSトランジション不使用)でクロスフェードするループ動画背景の上に重なっています。すべてのクローム(ナビゲーション、チップ、カード、CTA)は「リキッドガラス」デザインシステムを共有し、テキストはすべて全画面動画の上に白で表示され、暗いオーバーレイはなく、コントラストはすべてガラスクロームから生まれます。
ワークフロー
example.htmlをクローンし、ユーザーのワークスペースに作業ファイルとして配置します。- プレースホルダーコンテンツを置き換え、ユーザーの実際のブランド名、ヘッドライン、本文、数字、画像に変更します。アセットを交換する際は、既存の画像寸法に合わせてください。
- デザインシステムを維持します。 以下のビルド仕様にあるパレット、タイプスケール、スペーシングのリズム、モーションがアイデンティティです。フォントを代替したり、パレットを変更したり、装飾要素を削除したりしないでください。
- セクションを複製して拡張し、別のテンプレートからレイアウトをインポートしないでください。セクションがない場合は、このテンプレートの独自の表現でゼロからデザインしてください。
- モーションをアクセシブルに保ちます。 すべてのアニメーションはビルド仕様の要件に従い、
prefers-reduced-motionの背後に配置する必要があります。
出力契約
<artifact>タグで囲んで出力します:
<artifact identifier="space-voyage-landing" type="text/html" title="Astra — シネマティック宇宙旅行ランディングページ">
<!doctype html>
<html>...</html>
</artifact>
ビルド仕様
このデザインを生成したアップストリームプロンプトを、逐語的に記載します。
Astra — シネマティック宇宙旅行ランディングページ
概要
2つのフルハイトセクション(ヒーローと機能紹介)を持つシングルページ宇宙旅行ランディングサイトを構築します。両セクションは、カスタムのrAF駆動JavaScriptルーチン(CSSトランジションなし)でクロスフェードするループ動画背景の上に配置されます。このページはすべてのクローム(ナビ、チップ、カード、CTA)に「リキッドガラス」デザインシステムを使用し、Motion(Framer Motion)をエントランスアニメーションに使用します。これには単語単位のブラーインヘッドラインも含まれます。すべてのテキストは全画面動画の上に白で表示され、暗いオーバーレイはありません。コントラストはすべてリキッドガラスクロームから生まれます。
技術スタック
- ランタイム/フレームワーク: React 18.3.1(UMD開発ビルド、CDNから読み込み — バンドラーなし)。
- JSXコンパイル: ブラウザ内でBabel Standalone 7.29.0を使用。すべてのコンポーネントは
<script type="text/babel">ファイルで、window.X = Xとして自身をエクスポートします。 - アニメーション: Framer Motion 11.11.17(UMDビルド、
window.Motionとして公開)。 - スタイリング: CDN
<script>(https://cdn.tailwindcss.com)経由のTailwind CSSと、インラインのtailwind.config、およびリキッドガラスユーティリティ用の手書き<style>ブロック。 - フォント: Google Fonts — 見出しにInstrument Serif(
ital@0;1)、本文にBarlow(wght@300;400;500;600)。 - マウントポイント:
ReactDOM.createRootを介して#rootにマウントされたReactアプリ。 - 注目すべきテクニック: カスタムrAFクロスフェードループ動画、IntersectionObserverでトリガーされるブラーインテキスト、マスクされた
::before疑似要素を介したリキッドガラスグラデーションボーダー。
グローバル設定
index.html
<html lang="en">、charset UTF-8、レスポンシブビューポートmeta。<title>:astra — Venture Past Our Sky。- ファビコン: インラインSVGデータURI — 黒い
rounded矩形(rx='16')の中央にイタリックのGeorgiaセリフ小文字白a。 - 本文:
<body class="bg-black antialiased">には<div id="root"></div>の後にスクリプトタグのみを含める。 <style>ブロックでhtml, body { background: #000; }を設定。
CDNスクリプト(固定版、CDNのみ)
<head>内でこの順序で読み込みます:
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/[email protected]/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>
<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>
<script src="https://unpkg.com/@babel/[email protected]/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>
<script src="https://unpkg.com/[email protected]/dist/framer-motion.js"></script>
<script>window.Motion = window.FramerMotion;</script>
フォント
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Barlow:wght@300;400;500;600&display=swap" rel="stylesheet" />
Tailwind設定
コンポーネントの前にインラインで、テーマを拡張します:
tailwind.config = {
theme: {
extend: {
fontFamily: {
heading: ['"Instrument Serif"', 'serif'],
body: ['Barlow', 'sans-serif'],
},
borderRadius: {
DEFAULT: '9999px',
},
},
},
};
font-heading→'Instrument Serif', serif(常にイタリックで使用)。font-body→'Barlow', sans-serif。- デフォルトの
border-radiusオーバーライドDEFAULT: '9999px'により、roundedだけでピル形状になります。
Framer Motion開発警告抑制
Framer Motionのリストキーに関する開発警告は無害です。console.errorラッパーでフィルタリングします:
(function () {
var origError = console.error;
console.error = function () {
var first = arguments[0];
if (typeof first === 'string' && (first.indexOf('unique "key" prop') !== -1 || first.indexOf('Each child in a list') !== -1)) return;
origError.apply(console, arguments);
};
})();
コンポーネントスクリプトの読み込み順序
<body>の最後で、各Babelコンポーネントファイルをこの順序で読み込みます:
<script type="text/babel" src="js/icons.js"></script>
<script type="text/babel" src="js/FadingVideo.js"></script>
<script type="text/babel" src="js/BlurText.js"></script>
<script type="text/babel" src="js/Navbar.js"></script>
<script type="text/babel" src="js/Hero.js"></script>
<script type="text/babel" src="js/Capabilities.js"></script>
<script type="text/babel" src="js/App.js"></script>
リキッドガラスユーティリティ
<style>ブロック内の2つのバリアント — .liquid-glass(控えめ、ナビ/チップ/カード用)と.liquid-glass-strong(より強いぼかし、プライマリーCTA用)。それぞれマスクされた::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;
}
.liquid-glass-strong {
background: rgba(255,255,255,0.01);
background-blend-mode: luminosity;
backdrop-filter: blur(50px);
-webkit-backdrop-filter: blur(50px);
border: none;
box-shadow: 4px 4px 4px rgba(0,0,0,0.05), inset 0 1px 1px rgba(255,255,255,0.15);
position: relative;
overflow: hidden;
}
.liquid-glass-strong::before {
content: "";
position: absolute; inset: 0;
border-radius: inherit;
padding: 1.4px;
background: linear-gradient(180deg,
rgba(255,255,255,0.5) 0%,
rgba(255,255,255,0.2) 20%,
rgba(255,255,255,0) 40%,
rgba(255,255,255,0) 60%,
rgba(255,255,255,0.2) 80%,
rgba(255,255,255,0.5) 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;
}
- 強いバリアントは、
backdrop-filter: blur(50px)、box-shadow(4px 4px 4px rgba(0,0,0,0.05), inset 0 1px 1px rgba(255,255,255,0.15))、および::beforeグラデーションストップ(0.5 / 0.2 / 0 / 0 / 0.2 / 0.5)を除き、控えめなものと同一です。
アイコン — js/icons.js
インラインのLucideスタイルSVGアイコン(currentColorストローク)とMaterial Iconグリフ。それぞれwindowに割り当てられます。全体をIIFEでラップします。
ArrowUpRight({ className })—24×24、viewBox="0 0 24 24"、fill="none"、stroke="currentColor"、strokeWidth="2"、丸キャップ/結合、aria-hidden。2つのパス:M7 17L17 7とM7 7h10v10。PlayIcon({ className })—24×24、viewBox="0 0 24 24"、fill="currentColor"、stroke="none"、aria-hidden。塗りつぶされた多角形points="6 4 20 12 6 20 6 4"。ClockIcon— 白い28×28のアウトラインSVGアイコン(時計)、統計カード1に使用。GlobeIcon— 白い28×28のアウトラインSVGアイコン(地球)、統計カード2に使用。- Material Icons SVG — 白いMaterialアイコンSVG(
fill currentColor、h-6 w-6 text-white)、機能カード内で使用。
FadingVideo — js/FadingVideo.js
カスタムJSクロスフェードループ動画。CSSトランジションなし: すべてのフェードはrAF駆動で、ループはendedイベントを介して手動で実装されます(ネイティブのloop属性はOFF)。
- 定数:
FADE_MS = 500、FADE_OUT_LEAD = 0.55(終了前にフェードアウトを開始する秒数)。 FadingVideo({ src, className, style })は<video ref muted autoPlay playsInline preload="auto" />をstyle={{ opacity: 0, ...style }}(opacity: 0で開始)でレンダリングします。React.useRefによるRef:videoRef、rafRef(現在のrAF id)、fadingOutRef(ブール値)。- すべての配線は
React.useEffect(..., [src])内にあります。
fadeTo(target, duration = FADE_MS):
rafRef.current !== nullの場合、開始前にcancelAnimationFrame(rafRef.current)を呼び出します(新しいフェードが前のものを中断するように)。parseFloat(video.style.opacity || '0')で開始値を読み取り、各新しいフェードが前回の終了地点から再開できるようにします。- 開始時間に
performance.now()を使用。各requestAnimationFrameティックでt = Math.min((now - start) / duration, 1)を計算し、video.style.opacity = String(from + (target - from) * t)を設定し、t >= 1になるまでフレームを要求し続け、その後rafRef.current = nullを設定します。
イベントハンドラー:
loadeddata:opacity = '0'を設定し、video.play().catch(() => {})を実行、次にfadeTo(1)。timeupdate:remaining = video.duration - video.currentTime。!fadingOutRef.current && remaining <= FADE_OUT_LEAD && remaining > 0の場合、fadingOutRef.current = trueとfadeTo(0)を設定。ended:opacity = '0'を設定し、setTimeout(..., 100)の後、currentTime = 0をリセット、play()、fadingOutRef.current = falseをクリア、fadeTo(1)。- リスナーがアタッチされた時点で
video.readyState >= 2の場合は、すぐにonLoadedData()を呼び出します。
アンマウント時のクリーンアップ: rAFをキャンセル(cancelAnimationFrame(rafRef.current))し、3つのリスナーすべてを削除します。
BlurText — js/BlurText.js
単語ごとのブラーインヘッドライン。可視性10%でトリガーされます。const { motion } = window.Motionを取得。定数STEP_DURATION = 0.35。
BlurText({ text, className, delay = 100 })。{ threshold: 0.1 }のIntersectionObserverが、最初の交差でinView = trueに設定し、その後observer.unobserve(el)を実行。クリーンアップ時に切断。- テキストをスペースで分割:
const words = text.split(' ')。 <p ref className>をdisplay: flex; flexWrap: wrap; justifyContent: center; rowGap: 0.1emでスタイリングしてレンダリング。- 各単語は
motion.spanで、key={${word}-${i}}:initial={{ filter: 'blur(10px)', opacity: 0, y: 50 }}。- ビュー内の場合、キーフレームをアニメーション:
それ以外の場合は{ filter: ['blur(10px)', 'blur(5px)', 'blur(0px)'], opacity: [0, 0.5, 1], y: [50, -5, 0], }{ filter: 'blur(10px)', opacity: 0, y: 50 }のまま。 transition={{ duration: STEP_DURATION * 2, times: [0, 0.5, 1], ease: 'easeOut', delay: (i * delay) / 1000 }}。style={{ display: 'inline-block', marginRight: '0.28em' }}—marginRightは改行しないスペースの代わりに使用されます。-4pxの文字間隔がnbspを消費するためです。
Navbar — js/Navbar.js
浮遊するリキッドガラスクローム。const { ArrowUpRight } = windowを取得。NAV_LINKS = ['Home', 'Voyages', 'Worlds', 'Innovation', 'Plan Launch']。
<nav>クラス:fixed top-4 left-0 right-0 z-50 px-8 lg:px-16 flex items-center justify-between。- ロゴ(左):
<a href="#" aria-label="astra home">にliquid-glass rounded-full w-12 h-12 flex items-center justify-center shrink-0を付与。内部:<span class="font-heading italic text-white text-2xl leading-none -translate-y-px">a</span>(イタリックセリフ小文字「a」)。 - 中央ピル(デスクトップのみ):
<div class="hidden md:flex items-center liquid-glass rounded-full px-1.5 py-1.5">に以下を含む:- 5つのナビリンク、各
<a href="#" key={link}>にpx-3 py-2 text-sm font-medium text-white/90 font-body whitespace-nowrap hover:text-white。 - 白いピルボタン:
<a href="#" class="flex items-center gap-1.5 bg-white text-black rounded-full px-4 py-2 text-sm font-medium font-body whitespace-nowrap">にテキストClaim a Spotと続く<ArrowUpRight className="h-4 w-4" />。
- 5つのナビリンク、各
- 右: ロゴとバランスを取るための不可視の48×48スペーサー —
<div class="w-12 h-12 invisible shrink-0" aria-hidden="true" />。
セクション1 — ヒーロー(js/Hero.js)
全ビューポートセクション: クロスフェード動画、ナビゲーションバー、ブラーインヘッドライン、CTA、統計カード、パートナー行。const { motion } = window.Motionとconst { FadingVideo, BlurText, Navbar, ArrowUpRight, PlayIcon, ClockIcon, GlobeIcon } = windowを取得。
HERO_VIDEO = 'assets/hf_20260418_080021_d598092b-c4c2-4e53-8e46-94cf9064cd50.mp4'。
エントランスアニメーションヘルパー: すべてのヒーローコンテンツは、Motionを使用してアニメーションします:
const HIDDEN = { filter: 'blur(10px', opacity: 0, y: 50 };
const VISIBLE = { filter: 'blur(0px)', opacity: 1, y: 0 };
レイアウト(上から下)
- FadingVideo背景 —
<div class="absolute inset-0 overflow-hidden">内:<FadingVideo src={HERO_VIDEO} className="w-full h-full object-cover" />。 - Navbar —
<div class="relative z-10">内:<Navbar />。 - 中央コンテンツ —
<main class="relative z-10 flex flex-col items-center justify-center min-h-screen px-4 text-center">:BlurTextヘッドライン:"Venture Past Our Sky"、className="text-7xl md:text-8xl lg:text-9xl font-heading italic leading-[0.85] text-white mt-24"、delay={80}。- サブテキスト:
<p class="mt-6 max-w-xl text-lg text-white/70 font-body leading-relaxed">—"Astra is your gateway to the cosmos, where each launch rewrites the edge of the possible."。motion.pとして、HIDDENからVISIBLEへtransition={{ duration: 1, delay: 1.4 }}で。
- CTAボタン —
<div class="mt-10 flex flex-col sm:flex-row items-center gap-4">:- プライマリーCTA:
<motion.a href="#" class="liquid-glass-strong text-white rounded-full px-8 py-4 text-lg font-medium font-body inline-flex items-center gap-2">にテキストCommence Countdownと<ArrowUpRight className="h-5 w-5" />。HIDDENからVISIBLEへtransition={{ duration: 0.8, delay: 1.8 }}。 - セカンダリーCTA:
<motion.a href="#" class="flex items-center gap-3 text-white/70 hover:text-white font-body text-lg">に<span class="w-12 h-12 rounded-full bg-white/10 flex items-center justify-center"><PlayIcon className="h-5 w-5" /></span>とテキストWitness Launch。HIDDENからVISIBLEへtransition={{ duration: 0.8, delay: 2.2 }}。
- プライマリーCTA:
- 統計カード —
<div class="mt-16 grid grid-cols-2 gap-4 max-w-md mx-auto">:- カード1:
<div class="liquid-glass rounded-2xl p-5 text-left">に<ClockIcon />、<p class="text-2xl font-heading italic text-white mt-2">129</p>、<p class="text-sm text-white/50 font-body">Completed Missions</p>。motion.divとして、HIDDENからVISIBLEへtransition={{ duration: 0.8, delay: 2.6 }}。 - カード2:
<div class="liquid-glass rounded-2xl p-5 text-left">に<GlobeIcon />、<p class="text-2xl font-heading italic text-white mt-2">18</p>、<p class="text-sm text-white/50 font-body">Discovered Worlds</p>。motion.divとして、HIDDENからVISIBLEへtransition={{ duration: 0.8, delay: 3.0 }}。
- カード1:
- パートナー行 —
<div class="absolute bottom-8 left-0 right-0 flex justify-center gap-8 opacity-40">:- 4つの白い
<span>パートナーロゴ(テキスト:NOVA,ORBIT,STELLAR,COSMA)。各motion.span、HIDDENからVISIBLEへtransition={{ duration: 1, delay: 3.4 + i * 0.15 }}。
- 4つの白い
セクション2 — 機能(js/Capabilities.js)
2番目の全ビューポートセクション。const { motion } = window.Motionとconst { FadingVideo, BlurText } = windowを取得。
CAPABILITIES_VIDEO = 'assets/hf_20260418_080021_d598092b-c4c2-4e53-8e46-94cf9064cd50.mp4'(ヒーローの動画と同一)。
レイアウト(上から下):
- FadingVideo背景 —
<div class="absolute inset-0 overflow-hidden">内:<FadingVideo src={CAPABILITIES_VIDEO} className="w-full h-full object-cover" />。 - オーバーレイコンテンツ —
<div class="relative z-10 min-h-screen flex flex-col items-center justify-center px-4 py-24">:- 見出し:
<h2 class="text-6xl md:text-7xl lg:text-8xl font-heading italic text-white leading-[0.9] text-center max-w-3xl">、BlurTextテキスト"Engineered to Transcend"、delay={60}。 - 説明文:
<p class="mt-8 text-lg text-white/70 font-body leading-relaxed text-center max-w-xl">—"From sub-orbital joyrides to interstellar expeditions, every capability is designed with the next frontier in mind."。motion.pとして、HIDDENからVISIBLEへtransition={{ duration: 1, delay: 1.0 }}。
- 見出し:
- 機能グリッド —
<div class="mt-16 grid grid-cols-1 md:grid-cols-3 gap-4 max-w-5xl mx-auto w-full">:- カード1:
<div class="liquid-glass rounded-2xl p-6 text-left">:- アイコン:
<div class="w-10 h-10 rounded-full bg-white/10 flex items-center justify-center mb-4">内にMaterial Icons SVG(例: ロケット)。 - タイトル:
<h3 class="text-xl font-heading italic text-white">Deep Space Propulsion</h3>。 - 説明:
<p class="mt-2 text-sm text-white/50 font-body leading-relaxed">Ion drives and gravity assists that push the boundaries of velocity.</p>。motion.divとして、HIDDENからVISIBLEへtransition={{ duration: 0.8, delay: 1.4 }}。
- アイコン:
- カード2: カード1と同一の構造。タイトル:
Life Support Systems、説明:Closed-loop ecosystems that sustain human life for extended periods.、delay: 1.8。 - カード3: カード1と同一の構造。タイトル:
Quantum Navigation、説明:Real-time positioning beyond GPS using quantum interferometry.、delay: 2.2。
- カード1:
- 統計行 —
<div class="mt-16 grid grid-cols-3 gap-4 max-w-2xl mx-auto w-full">:- 統計1:
<div class="text-center">に<p class="text-4xl md:text-5xl font-heading italic text-white">47</p>、<p class="text-sm text-white/50 font-body mt-1">Launches This Year</p>。motion.divとして、HIDDENからVISIBLEへtransition={{ duration: 0.8, delay: 2.6 }}。 - 統計2: 統計1と同一の構造。数字:
32k+、ラベル:Active Crew Members、delay: 3.0。 - 統計3: 統計1と同一の構造。数字:
2.1B、ラベル:Light-Years Charted、delay: 3.4。
- 統計1:
App — js/App.js
トップレベルのReactコンポーネント。ヒーローと機能のセクションを並べてレンダリングし、各セクションの動画がループし続けるようにします。
App()は<div className="relative">内に<Hero />と<Capabilities />をレンダリングします。- エクスポート:
window.App = App。
ルートマウント
HTMLの最後に:
<script type="text/babel">
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(React.createElement(App));
</script>