Stellar.ai — AIプロダクティビティ ランディングヒーロー
MITライセンスの
pulkitxm/claude-directoryギャラリーからベンダリングされたヒーローセクション。
AIプロダクティビティSaaSのランディングページ向け、1画面中央揃えのヒーローセクション。ナビゲーションバー、黒からグレーへのグラデーション見出し、プライマリCTA、4つのワークフローステージ(分析、トレーニング、テスト、デプロイ)を自動循環するタブバー、ループバックグラウンドビデオとタブ駆動のオーバーレイカード、企業ロゴ行を備え、すべてがスタaggeredフェードインアップアニメーションで表示されます。React 18、Vite、Tailwind CSS 3、Inter書体のLucideアイコンで構築されています。
ワークフロー
example.htmlをクローンして、ユーザーのワークスペースに作業ファイルとして配置します。- プレースホルダーコンテンツを置き換え、ユーザーの実際のブランド名、見出し、本文、数字、画像に差し替えます。アセットを交換する際は、既存の画像サイズに合わせます。
- デザインシステムを維持します。 以下のビルド仕様にあるパレット、タイプスケール、間隔リズム、モーションはアイデンティティです。フォントを代替したり、パレットを再色付けしたり、装飾要素を取り除いたりしないでください。
- セクションを複製して拡張します。別のテンプレートからレイアウトをインポートしないでください。セクションが不足している場合は、このテンプレートの語彙でゼロからデザインします。
- モーションをアクセシブルに保ちます。 すべてのアニメーションは、ビルド仕様で要求されているように、
prefers-reduced-motionの背後に配置する必要があります。
出力契約
次の内容を<artifact>タグで囲んで出力します:
<artifact identifier="stellar-ai-landing-hero" type="text/html" title="Stellar.ai — AI Productivity Landing Hero">
<!doctype html>
<html>...</html>
</artifact>
ビルド仕様
このデザインを生成した元のプロンプトをそのまま記載します。
Stellar.ai — ランディングページ ヒーローセクション
概要
「Stellar.ai」AIプロダクティビティランディングページのヒーローセクションを構築します。1画面、中央揃え、白背景のレイアウトで、ナビゲーションバー、グラデーション見出し、CTA、自動循環タブバー、ループする背景ビデオと4つのタブ駆動オーバーレイカード、企業ロゴ行を備えています。すべての要素がスタaggeredフェードインアップ効果でアニメーション表示されます。
技術スタック
- フレームワーク: React 18 (
react^18.3.1、react-dom^18.3.1)、React.StrictModeでブートストラップ。 - ビルドツール: Vite (
vite^5.4.11) with@vitejs/plugin-react(^4.3.4)。 - スタイリング: Tailwind CSS (
tailwindcss^3.4.17) withpostcss(^8.4.49) andautoprefixer(^10.4.20)。デフォルト設定、テーマ拡張なし。 - アイコン: Lucide React (
lucide-react^0.468.0)。 - フォント: Inter(ウェイト400、500、600、700)をGoogle Fontsからインポート。
- テストツール: Playwright (
playwright^1.60.0)。 - 注目すべきテクニック: スタaggeredインライン
animationDelayを使用したカスタムCSSキーフレームアニメーション、setIntervalによる自動循環タブ状態、アクティブタブをキーにした条件付きオーバーレイコンポーネント。
グローバル設定
フォント
Google FontsからInter(ウェイト400、500、600、700)をindex.htmlでインポートします(preconnectヒント付き):
<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=Inter:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
src/index.cssでbodyフォントを設定します:
body {
font-family: 'Inter', sans-serif;
}
index.html
lang="en"、charset="UTF-8"、ビューポートwidth=device-width, initial-scale=1.0。<title>:Stellar.ai — Work Smarter. Move Faster.<meta name="description">:Intelligent automation syncs with the tools you love to streamline tasks, boost output, and save time.- ルートマウント:
<div id="root"></div>with<script type="module" src="/src/main.jsx"></script>。
エントリーポイント(src/main.jsx)
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.jsx'
import './index.css'
ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
<App />
</React.StrictMode>,
)
Tailwind設定(tailwind.config.js)
カスタムテーマ拡張のないデフォルト設定。コンテンツパス:
/** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{js,jsx}'],
theme: {
extend: {},
},
plugins: [],
}
PostCSS設定(postcss.config.js)
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
Vite設定(vite.config.js)
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
})
アニメーション
Tailwindレイヤー(@tailwind base; @tailwind components; @tailwind utilities;)の上にsrc/index.cssで定義。
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-fade-in-up {
animation: fadeInUp 0.6s ease-out forwards;
}
@keyframes fadeInOverlay {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.animate-fade-in-overlay {
animation: fadeInOverlay 0.4s ease-out forwards;
}
@keyframes fadeInDialog {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.animate-slide-up-overlay {
animation: fadeInDialog 0.5s ease-out forwards;
transform: translate(-50%, -50%);
}
fadeInUp→from { opacity: 0; transform: translateY(30px) }から{ opacity: 1; transform: translateY(0) }。クラス.animate-fade-in-upは0.6s ease-out forwardsで実行されます。fadeInOverlay→from { opacity: 0 }から{ opacity: 1 }。クラス.animate-fade-in-overlayは0.4s ease-out forwardsで実行されます。fadeInDialog→from { opacity: 0 }から{ opacity: 1 }。クラス.animate-slide-up-overlayは0.5s ease-out forwardsで実行され、transform: translate(-50%, -50%)を適用します(中央揃えのダイアログカード用)。- 主要なセクションはすべて、スタaggeredインライン
animationDelay(0.1sから始まり0.1sずつ増加)とともに.animate-fade-in-upを使用します。各要素はインラインopacity: 0で始まり、アニメーションによって可視状態になります。
レイアウト
- ルートラッパー:
bg-white min-h-screen text-black。 - ページは
<Navigation />ヘッダーと中央揃えの<main>で構成されます。 <main>クラス:px-6 pt-24 pb-32 max-w-7xl mx-auto text-center。
ナビゲーションバー
animate-fade-in-upとインラインstyle={{ opacity: 0, animationDelay: '0.1s' }}でラップされた<header>内に配置。<nav>はpx-6 py-4 flex items-center justify-between max-w-7xl mx-autoを使用します。
- 左(ロゴ): Lucide
Starアイコン(w-5 h-5 fill-black text-black)とブランドテキストStellar.aiを<span className="text-lg font-semibold">で含む<a href="#" className="flex items-center gap-2">。 - 中央(モバイルでは非表示):
hidden md:flex items-center gap-8。4つのリンク:Solutionswith aChevronDownicon (w-4 h-4)、リンククラスflex items-center gap-1 text-sm text-gray-700 hover:text-black transition-colors。For Teamswith aChevronDownicon (w-4 h-4), same link classes。About Us—text-sm text-gray-700 hover:text-black transition-colors。Learn Hub—text-sm text-gray-700 hover:text-black transition-colors。
- 右:
flex items-center gap-4。Loginリンク —text-sm text-gray-700 hover:text-black transition-colors。Get started freeボタン —bg-black text-white px-5 py-2.5 rounded-full text-sm font-medium hover:bg-gray-800 transition-colors。
ヒーロー
すべてのヒーロー要素は<main>内にあり、スタaggeredインライン遅延とともにanimate-fade-in-upを使用します。
レビューバッジ(遅延 0.2s)
- ラッパー:
inline-flex items-center gap-2 mb-8。 - 境界線付きの正方形:
w-6 h-6 border border-gray-300 rounded flex items-center justify-center、中に塗りつぶしのStarアイコン(w-3.5 h-3.5 fill-black text-black)。 - テキスト:
4.9 rating from 18.3K+ usersintext-sm font-medium text-black。
メイン見出し(遅延 0.3s)
<h1>クラス:text-6xl md:text-7xl lg:text-[80px] font-normal leading-[1.1] tracking-tight mb-5。- 最初の行:
Work Smarter. Move Faster. <br />- 2行目(グラデーションテキスト):
AI Powers You Up.を<span>でラップし、bg-gradient-to-r from-black via-gray-500 to-gray-400 bg-clip-text text-transparentを適用。
サブ見出し(遅延 0.4s)
<p>クラス:text-lg md:text-xl text-gray-600 mb-8 max-w-2xl mx-auto。- テキスト:
Intelligent automation syncs with the tools you love to streamline tasks, boost output, and save time.
CTAボタン(遅延 0.5s)
animate-fade-in-upとインラインstyle={{ opacity: 0, animationDelay: '0.5s' }}でラップされたdiv内に配置。- ボタンクラス:
bg-black text-white px-8 py-3 rounded-full text-base font-medium hover:bg-gray-800 transition-colors mb-12。 - テキスト:
Begin Free Trial。
タブバー(遅延 0.6s)
ラッパー:animate-fade-in-up flex justify-center mb-8 with inline style={{ opacity: 0, animationDelay: '0.6s' }}。
4つのタブ。TABS定数として定義:
const TABS = [
{ id: 'analyse', label: 'Analyse', icon: BarChart3 },
{ id: 'train', label: 'Train', icon: BookOpen },
{ id: 'testing', label: 'Testing', icon: Users },
{ id: 'deploy', label: 'Deploy', icon: Rocket },
]
- モバイル(
md:hidden): 2×2グリッド —md:hidden grid grid-cols-2 gap-1 bg-gray-100 rounded-lg p-1— 4つのボタンすべてをレンダリング。 - デスクトップ(
hidden md:flex): 行 —hidden md:flex items-center bg-gray-100 rounded-lg p-1— 最初のボタンを除く各ボタンの前に垂直方向の区切り線:<div className="w-px h-5 bg-gray-300 mx-1" />。 - 各タブボタン:
flex items-center justify-center gap-2 px-5 py-2 rounded-md text-sm font-medium transition-colors、Lucideアイコン(w-4 h-4)とラベル付き。- アクティブ:
bg-white text-black shadow-sm。 - 非アクティブ:
text-gray-600。
- アクティブ:
- タブは
setIntervalを介して4000ms(4秒)ごとに自動循環し、useEffect内で次のタブIDに進みます(ラップアラウンド)。状態:useState('analyse')。インターバルはアンマウント時にクリアされます。
useEffect(() => {
const interval = setInterval(() => {
setActiveTab((current) => {
const index = TABS.findIndex((tab) => tab.id === current)
return TABS[(index + 1) % TABS.length].id
})
}, 4000)
return () => clearInterval(interval)
}, [])
ビデオ + オーバーレイセクション(遅延 0.7s)
-
コンテナ:
animate-fade-in-up relative rounded-3xl overflow-hidden h-[400px] md:h-[500px]with inlinestyle={{ opacity: 0, animationDelay: '0.7s' }}。 -
ビデオ要素:
autoPlay、loop、muted、playsInline、クラスw-full h-full object-cover。ソースはVIDEO_SRC定数から取得:const VIDEO_SRC = '/assets/hf_20260319_165750_358b1e72-c921-48b7-aaac-f200994f32fb.mp4'注: 元の概要はリモートのCloudFront URL(
https://d8j0ntlcm91z4.cloudfront.net/user_38xzzbokvigwjottwixh07lwa1p/hf_20260319_165750_358b1e72-c921-48b7-aaac-f200994f32fb.mp4)を参照していました。アセットはその後ローカルにベンダリングされ、ソースは/assets/hf_20260319_165750_358b1e72-c921-48b7-aaac-f200994f32fb.mp4(public/assets/から提供)を指すようになりました。ローカルパスが正しい情報です。 -
アクティブオーバーレイ:
<ActiveOverlay key={activeTab} />— オーバーレイコンポーネントは、アクティブなタブIDをキーとするOVERLAYSマップから選択され、タブが変更されるたびに(keyを介して)再マウントされ、アニメーションが再トリガーされます。
const OVERLAYS = {
analyse: AnalyseOverlay,
train: TrainOverlay,
testing: TestingOverlay,
deploy: DeployOverlay,
}
共有オーバーレイシェル(OverlayCard)
各オーバーレイは、再利用可能なOverlayCardコンポーネントでラップされ、暗い背景と中央揃えのアニメーションダイアログカードをレンダリングします:
function OverlayCard({ children }) {
return (
<div className="absolute inset-0 animate-fade-in-overlay" style={{ opacity: 0 }}>
<div className="absolute inset-0 bg-black/30" />
<div
className="animate-slide-up-overlay absolute top-1/2 left-1/2 w-[calc(100%-3rem)] max-w-sm bg-white rounded-2xl shadow-2xl p-6 text-left"
style={{ opacity: 0 }}
>
{children}
</div>
</div>
)
}
- 外側のラッパー:
absolute inset-0 animate-fade-in-overlaywith inlineopacity: 0。 - 背景:
absolute inset-0 bg-black/30。 - 内側のカード:
animate-slide-up-overlay absolute top-1/2 left-1/2 w-[calc(100%-3rem)] max-w-sm bg-white rounded-2xl shadow-2xl p-6 text-leftwith inlineopacity: 0。
オーバーレイ A — 分析:「AIワークスペースをセットアップ」
紫色のプログレスバー(25%)を備えた4ステップのセットアップウィザード。
- ヘッダー行(
flex items-center justify-between mb-1):タイトル<h3 className="text-base font-semibold text-black">Set Up Your AI Workspace</h3>とステップカウンター<span className="text-xs font-medium text-gray-500">Step 1 of 4</span>。 - サブテキスト(
text-xs text-gray-500 mb-4):A few quick steps and Stellar.ai is ready to work. - プログレストラック:
h-1.5 w-full bg-gray-100 rounded-full mb-5 overflow-hiddenwith fillh-full w-1/4 bg-purple-600 rounded-full。 - ステップリスト(
<ul className="space-y-3">)、4つのアイテム:Connect your tools— 状態activeImport workspace data— 状態pendingConfigure AI assistant— 状態pendingInvite your team— 状態pending
- 各ステップ:番号付きバッジ
w-6 h-6 rounded-full flex items-center justify-center text-xs font-semiboldとラベル。- アクティブバッジ:
bg-purple-600 text-white; アクティブラベル:font-medium text-black。 - 保留中バッジ:
bg-gray-100 text-gray-400; 保留中ラベル:text-gray-500。
- アクティブバッジ:
オーバーレイ B — トレーニング:「AIモデルトレーニング」
オレンジ色のプログレスバー(67%)と4つのメトリックカードを備えたトレーニングパネル。
- ヘッダー行(
flex items-center justify-between mb-1):タイトル<h3 className="text-base font-semibold text-black">AI Model Training</h3>とステータスピルflex items-center gap-1.5 text-xs font-medium text-orange-600(パルスドット(w-1.5 h-1.5 rounded-full bg-orange-500 animate-pulse)とテキストRunningを含む)。 - サブテキスト(
text-xs text-gray-500 mb-4):Fine-tuning on 18k proprietary documents… ~4 min remaining。 - プログレストラック(オレンジ色):
h-1.5 w-full bg-gray-100 rounded-full mb-5 overflow-hiddenwith fillh-full w-2/3 bg-orange-500 rounded-full。 - メトリックグリッド(
grid grid-cols-2 gap-3)、4つのカード:Accuracy— 値94.2%、矢印↑5.3%(緑色、text-green-600)、クラスp-3 bg-gray-50 rounded-xl。値はtext-lg font-bold text-black、デルタはtext-xs。Precision— 値91.7%、矢印↑2.1%(緑色)。Loss— 値0.043、矢印↓0.012(緑色)。Epoch— 値24 / 30、矢印なし。
オーバーレイ C — テスト:「ユーザー受け入れテスト」
4つのテストスイートと緑色の進行状況を含むテストパネル。
- ヘッダー行(
flex items-center justify-between mb-1):タイトル<h3 className="text-base font-semibold text-black">User Acceptance Testing</h3>とステータスピルflex items-center gap-1.5 text-xs font-medium text-emerald-600(緑色のパルスドットとテキストRunning)。 - サブテキスト:
Running 4 test suites — 78 of 124 scenarios passed。 - プログレストラック(緑色):
h-1.5 w-full bg-gray-100 rounded-full mb-5 overflow-hiddenwith fillh-full w-[62%] bg-emerald-500 rounded-full。 - テストスイートリスト(
<ul className="space-y-2">):- 各スイートは、アイコン(Lucide
CheckCircle,XCircle,Clock)、スイート名、ステータスバッジ(Passed,Failed,In Progress)を含む行です。各アイテムはflex items-center gap-2 text-xs。
User authentication— 緑色のチェック (Passed)。Data ingestion— 緑色のチェック (Passed)。Model inference— 時計 (In Progress)。UI integration— 赤色の× (Failed)。
- ステータスバッジの色:
Passed=bg-emerald-100 text-emerald-700、In Progress=bg-gray-100 text-gray-500、Failed=bg-red-100 text-red-700。
- 各スイートは、アイコン(Lucide
オーバーレイ D — デプロイ:「展開分析」
3つのメトリックカードとデプロイステータスを持つ展開パネル。
- ヘッダー行(
flex items-center justify-between mb-1):タイトル<h3 className="text-base font-semibold text-black">Deployment Analytics</h3>とステータスバッジ<span className="text-xs font-medium bg-green-100 text-green-700 px-2 py-0.5 rounded-full">Live</span>。 - サブテキスト:
Stellar.ai is live and serving users in 14 regions.。 - メトリックグリッド:
grid grid-cols-3 gap-2、3つのカード:Uptime—99.97%(text-lg font-bold text-black)、<span className="text-xs text-gray-500">Last 30 days</span>。Latency—142ms(text-lg font-bold text-black)、<span className="text-xs text-gray-500">Avg response</span>。Users—18.3K(text-lg font-bold text-black)、<span className="text-xs text-gray-500">Active today</span>。
- 各カードは
bg-gray-50 rounded-xl p-3 text-center。
企業ロゴ行(遅延 0.8s)
- ラッパー:
animate-fade-in-up mt-10with inlinestyle={{ opacity: 0, animationDelay: '0.8s' }}。 - テキスト:
<p className="text-xs text-gray-400 font-medium uppercase tracking-widest mb-5">Trusted by industry leaders</p>。 - ロゴコンテナ:
flex justify-center items-center gap-12 flex-wrap。 - 7つのロゴ。各ロゴは
<div className="h-6 w-auto text-gray-300">で、特定のLucideアイコンを使用(ラベルをテキストとして表示することはできません。アイコングラフィックを代わりに使用します):Hexagon—PulseTelescope—VertexSun—NovaCircleDot—OrbitZap—FluxShieldCheck—AegisCloudSun—Skyline
テスト
ビジュアルリグレッション + 機能テスト(Playwright)
import { test, expect } from '@playwright/experimental-ct-react'
import App from './App'
test.use({ viewport: { width: 1280, height: 720 } })
test('ロゴとCTAボタンが表示される', async ({ mount }) => {
const component = await mount(<App />)
await expect(component.locator('text=Stellar.ai')).toBeVisible()
await expect(component.locator('text=Begin Free Trial')).toBeVisible()
})
test('タブバーが存在し、クリックでアクティブ状態が切り替わる', async ({ mount }) => {
const component = await mount(<App />)
const tab = component.locator('button:has-text("Train")')
await tab.click()
await expect(tab).toHaveClass(/bg-white/)
})
test('ビデオ要素が存在し、自動再生される', async ({ mount }) => {
const component = await mount(<App />)
const video = component.locator('video')
await expect(video).toBeVisible()
await expect(video).toHaveAttribute('autoPlay')
})
test('オーバーレイカードがアクティブタブに応じて変化する', async ({ mount }) => {
const component = await mount(<App />)
// デフォルトは Analyse オーバーレイ
await expect(component.locator('text=Set Up Your AI Workspace')).toBeVisible()
await component.locator('button:has-text("Deploy")').click()
await expect(component.locator('text=Deployment Analytics')).toBeVisible()
})
test('ヘッダーナビゲーションに4つのリンクが存在する', async ({ mount }) => {
const component = await mount(<App />)
const navLinks = ['Solutions', 'For Teams', 'About Us', 'Learn Hub']
for (const link of navLinks) {
await expect(component.locator(`text=${link}`)).toBeVisible()
}
})