Neuralyn — ダークテーマ分析SaaSランディングページ
MITライセンス
pulkitxm/claude-directoryギャラリーからベンダリングされたランディングページ。
架空の分析ダッシュボードSaaS「Neuralyn」向けのダークテーマフルブリードランディングページ。全画面ヒーローセクションには、スクロール連動パララックスで動くダッシュボードがループする背景動画の上に合成され、スクロール駆動のテスティモニアルでは、スクロールに応じて各単語が順に光ります。デザインは、純黒背景、白色テキスト、1つのイタリックセリフアクセント単語、そしてリキッドガラスタグピルが特徴です。React 18 + Vite + TypeScript で構築、Tailwind CSS 3 と shadcn/ui スタイルプリミティブでスタイリング、Framer Motion (useScroll/useTransform) でスクロール連動パララックスと単語ごとの色変化アニメーションを実現。フォントは Fontsource でセルフホストされています。
ワークフロー
example.htmlをユーザーのワークスペースにクローンし、作業ファイルとします。- プレースホルダーコンテンツを ユーザーの実際のブランド名、見出し、本文、数値、画像に置き換えます。アセットを差し替える際は、既存の画像サイズに合わせてください。
- デザインシステムを維持します。 以下のビルド仕様に記載されたパレット、タイプスケール、スペーシングリズム、モーションはアイデンティティです。フォントを代替したり、パレットの色を変更したり、装飾要素を削除しないでください。
- セクションを複製して拡張し、他のテンプレートからレイアウトをインポートしないでください。セクションが不足している場合は、このテンプレートのデザイン言語でゼロから設計してください。
- モーションはアクセシブルに保ちます。 すべてのアニメーションは、ビルド仕様の要件に従い、
prefers-reduced-motionの背後に配置する必要があります。
出力契約
<artifact> タグで囲んで出力します。
<artifact identifier="neuralyn-dark-landing" type="text/html" title="Neuralyn — ダークテーマ分析SaaSランディングページ">
<!doctype html>
<html>...</html>
</artifact>
ビルド仕様
このデザインを生成した上流プロンプトを、そのまま記載します。
Neuralyn — ダークテーマ分析ランディングページ
概要
分析ダッシュボードSaaS Neuralyn 向けのダークテーマフルブリードランディングページを構築します。ページは2つのセクションで構成されます。ループする背景動画の上にパララックスするダッシュボードを合成した全画面ヒーローと、スクロールに応じて各単語が順に光るスクロール駆動テスティモニアルです。デザインは、純黒背景、白色テキスト、1つのイタリックセリフアクセント単語、そして「リキッドガラス」タグピルが特徴です。
技術スタック
- フレームワーク: React 18 (
react^18.3.1,react-dom^18.3.1) + Vite (vite^5.4.10,@vitejs/plugin-react^4.3.3) - 言語: TypeScript (
typescript^5.6.3) - スタイリング: Tailwind CSS (
tailwindcss^3.4.14) + PostCSS (postcss^8.4.49) + Autoprefixer (autoprefixer^10.4.20) - アニメーション: Framer Motion (
framer-motion^11.11.17) —useScroll,useTransform,motionコンポーネント - アイコン: Lucide (
lucide-react^0.460.0) —ChevronDown - UIプリミティブ (shadcn/ui スタイル):
@radix-ui/react-slot^1.1.0,class-variance-authority^0.7.0,clsx^2.1.1,tailwind-merge^2.5.4 - フォント (Fontsource でセルフホスト):
- Inter (
@fontsource/inter^5.1.0) — ウェイト 400, 500, 600, 700 — 本文/UI - Instrument Serif (
@fontsource/instrument-serif^5.1.0) — 400 および 400-italic — イタリックアクセント単語用
- Inter (
- 注目すべきテクニック: フルブリード
w-screenとmarginLeft: calc(-50vw + 50%)、画像のmix-blend-mode: luminosity合成、スクロール連動パララックスと単語ごとの色変化、マスクされた疑似要素によるCSSリキッドガラスボーダー。
グローバル設定
パスエイリアス
@ は ./src に解決されます (vite.config.ts で path.resolve(__dirname, "./src")、tsconfig.json で "@/*": ["./src/*"])。
エントリポイント (src/main.tsx)
フォントCSS、グローバルCSSをインポートし、アプリをマウントします。
import React from "react";
import ReactDOM from "react-dom/client";
import "@fontsource/inter/400.css";
import "@fontsource/inter/500.css";
import "@fontsource/inter/600.css";
import "@fontsource/inter/700.css";
import "@fontsource/instrument-serif/400.css";
import "@fontsource/instrument-serif/400-italic.css";
import "./index.css";
import App from "./App";
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<App />
</React.StrictMode>,
);
アプリシェル (src/App.tsx)
import Hero from "@/components/Hero";
import Testimonial from "@/components/Testimonial";
export default function App() {
return (
<main>
<Hero />
<Testimonial />
</main>
);
}
HTMLドキュメント (index.html)
<html lang="ja">,<meta name="theme-color" content="#000000" />- ファビコン:
<link rel="icon" type="image/png" href="/src/assets/logo.png" /> - メタ説明: "Neuralynはチームがメトリクス、目標、進捗を正確に追跡するのを支援します。"
- タイトル:
Neuralyn — あなたのインサイト。一つの明確な概要。 - フラッシュ防止のインラインスタイル:
html { background: #000; }
Tailwind設定 (tailwind.config.ts)
content: ["./index.html", "./src/**/*.{ts,tsx}"]fontFamily.sans:["Inter", "system-ui", "-apple-system", "sans-serif"]fontFamily.serif:["'Instrument Serif'", "Georgia", "serif"]- カラーはCSS変数に
hsl(var(--...))でマッピング:background,foreground,border,input,ring、およびcard,primary,secondary,muted,accent,destructiveのDEFAULT/foregroundペア。
ユーティリティヘルパー (src/lib/utils.ts)
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
カラーパレット
すべての色はHSL CSS変数で、src/index.css の :root (デフォルトでダークモード) で定義されています。
| 変数 | 値 | 備考 |
|---|---|---|
--background | 0 0% 0% | 純黒 |
--foreground | 0 0% 100% | 純白 |
--card | 0 0% 5% | |
--card-foreground | 0 0% 100% | |
--primary | 0 0% 100% | |
--primary-foreground | 0 0% 0% | |
--secondary | 0 0% 10% | |
--secondary-foreground | 0 0% 100% | |
--muted | 0 0% 10% | |
--muted-foreground | 0 0% 65% | |
--accent | 0 0% 10% | |
--accent-foreground | 0 0% 100% | |
--destructive | 0 84% 60% | |
--destructive-foreground | 0 0% 100% | |
--border | 0 0% 20% | |
--input | 0 0% 20% | |
--ring | 0 0% 65% | |
--hero-subtitle | 210 17% 95% | ヒーローサブタイトル色 |
ベースレイヤー (src/index.css)
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
* {
@apply border-border;
}
html {
scroll-behavior: smooth;
}
body {
@apply bg-background font-sans text-foreground antialiased;
}
}
リキッドガラスCSS
src/index.css に追加します。マスクされたグラデーションボーダーを持つ、曇りガラスのピルを提供します。
.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;
}
セクション1 — ヒーロー (src/components/Hero.tsx)
セクション全体は relative h-screen overflow-hidden (全画面高) で、data-testid="hero" を持ちます。sectionRef (useRef<HTMLElement>) がスクロール連動パララックスを駆動します。
スクロール設定
const { scrollYProgress } = useScroll({
target: sectionRef,
offset: ["start start", "end start"],
});
const contentY = useTransform(scrollYProgress, [0, 1], [0, -200]);
const contentOpacity = useTransform(scrollYProgress, [0, 0.5], [1, 0]);
const dashboardY = useTransform(scrollYProgress, [0, 1], [0, -250]);
- ヒーローテキストコンテンツグループ:
y: [0, -200]、opacity: [1, 0](スクロールの最初の50%で不透明度がフェードアウト)。 - ダッシュボード画像:
y: [0, -250]。
ナビゲーションバー
<header> は relative z-40 flex items-center justify-between px-8 py-4 md:px-28。
- 左のグループ —
flex items-center gap-12 md:gap-20:- ロゴリンク (
<a href="/">,flex items-center gap-2.5):<img src={logo} alt="Neuralyn ロゴ" className="h-8 w-8" />- ブランドテキスト:
<span className="text-xl font-bold tracking-tight">Neuralyn</span>
- ナビ (
hidden items-center gap-1 md:flex,aria-label="メイン") — リンクはconst NAV_LINKS = ["ホーム", "サービス", "レビュー", "お問い合わせ"];からレンダリング。リンクはモバイルでは非表示。各リンク:<a href="#">にflex items-center gap-1 rounded-md px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground。サービスリンクには、ラベルの後に<ChevronDown className="h-4 w-4" aria-hidden="true" />が追加でレンダリングされます。
- ロゴリンク (
- 右 — サインインボタン (shadcn
Buttonコンポーネント):rounded-lg bg-foreground text-sm font-semibold text-background transition-opacity hover:bg-foreground hover:opacity-90。ラベル:サインイン。
ヒーローコンテンツ
motion.div (data-testid="hero-content") は { y: contentY, opacity: contentOpacity } でスタイル設定され、クラスは relative z-20 mt-16 flex flex-col items-center px-4 text-center md:mt-20。以下を順に含みます。
- タグピル —
motion.div、クラスliquid-glass mb-6 flex items-center gap-2 rounded-lg px-3 py-2:- 内側の「新着」バッジ:
<span className="rounded-md bg-white px-2 py-0.5 text-sm font-medium text-black">新着</span> - ラベル:
<span className="text-sm font-medium text-muted-foreground">Corewave v3.2 が登場</span>
- 内側の「新着」バッジ:
- タイトル —
motion.h1、mb-3 text-5xl font-medium leading-tight tracking-[-2px] md:text-7xl md:leading-[1.15]:- 1行目:
あなたのインサイト。 <br />- 2行目:
一つの明確な次にInstrument Serifイタリックのアクセント単語:<span className="font-serif font-normal italic">概要。</span>
- 1行目:
- サブタイトル —
motion.p(data-testid="hero-subtitle")、mb-8 text-lg font-normal leading-6 opacity-90、インラインstyle={{ color: "hsl(var(--hero-subtitle))" }}:Neuralynはチームがメトリクス、目標、<br />進捗を正確に追跡するのを支援します。
- CTAボタン —
motion.button、rounded-full bg-foreground px-8 py-3.5 text-base font-medium text-background、whileHover={{ scale: 1.03 }}、whileTap={{ scale: 0.98 }}。ラベル:無料で始める。
ダッシュボード + 動画エリア
motion.div (data-testid="dashboard-area")、relative z-10 mt-12 w-screen md:mt-16、インライン style={{ marginLeft: "calc(-50vw + 50%)", aspectRatio: "16 / 9" }} で画面幅いっぱいに広がります。
-
背景動画 —
<video>、absolute inset-0 h-full w-full object-cover、属性autoPlay muted loop playsInline。srcはVIDEO_URL:const VIDEO_URL = "/assets/hf_20260307_083826_e938b29f-a43a-41ec-a153-3d4730578ab8.mp4";注: 元のプロンプトはリモートソース
https://d8j0ntlcm91z4.cloudfront.net/user_38xzzbokvigwjottwixh07lwa1p/hf_20260307_083826_e938b29f-a43a-41ec-a153-3d4730578ab8.mp4を参照していました。このアセットはローカルのpublic/assets/hf_20260307_083826_e938b29f-a43a-41ec-a153-3d4730578ab8.mp4にベンダリングされ、上記のローカルパスで参照されています。(元のURLはプロンプト内で大文字で提供されましたが、スキームとホストは規則に従ってここでは小文字化され、パスはそのまま保持されています。) -
ダッシュボード画像 —
<div className="absolute inset-0 flex items-center justify-center">でラップされ、画像はmotion.img(data-testid="dashboard-image") でsrc={heroDashboard}、alt="Neuralyn 分析ダッシュボード"、クラスw-[90%] max-w-5xl rounded-2xl、インラインstyle={{ y: dashboardY, mixBlendMode: "luminosity" }}。
下部のグラデーションフェード
<div> (data-testid="hero-fade") は pointer-events-none absolute bottom-0 left-0 right-0 z-30 h-40 bg-gradient-to-t from-background to-transparent。
ヒーロー登場アニメーション
各要素は initial={{ opacity: 0, y }} → animate={{ opacity: 1, y: 0 }} を使用し、時間差で表示されます。
| 要素 | y | duration | delay |
|---|---|---|---|
| タグピル | 10 | 0.5s | 0 |
| タイトル | 20 | 0.6s | 0.1 |
| サブタイトル | 20 | 0.6s | 0.2 |
| CTA | 20 | 0.6s | 0.3 |
| ダッシュボードエリア | 40 | 0.8s | 0.4 |
ヒーローインポート
import { useRef } from "react";
import { motion, useScroll, useTransform } from "framer-motion";
import { ChevronDown } from "lucide-react";
import { Button } from "@/components/ui/button";
import logo from "@/assets/logo.png";
import heroDashboard from "@/assets/hero-dashboard.png";
セクション2 — テスティモニアル (src/components/Testimonial.tsx)
セクションは flex min-h-screen items-center justify-center px-8 py-24 md:px-28 md:py-32、data-testid="testimonial" を持ちます。内部のコンテナ <div ref={containerRef}> は mx-auto flex w-full max-w-3xl flex-col items-start gap-10 (最大幅 3xl、左揃え、要素間 gap-10)。
引用テキスト
const QUOTE =
"Neuralyn revolutionized how we handle financial insights using smart analytics. We are now driving better outcomes quicker than we ever imagined! Neuralyn revolutionized how we handle financial insights using smart analytics.";
レイアウト (上から下へ)
- 引用符シンボル画像 —
<img src={quoteSymbol} alt="" aria-hidden="true" className="h-10 w-14 object-contain" />。 - テスティモニアル段落 —
<p data-testid="testimonial-quote" className="flex flex-wrap text-4xl font-medium leading-[1.2] md:text-5xl">。引用符は空白で分割され (QUOTE.split(" "))、各単語は<Word>コンポーネントとしてレンダリングされます。単語の後には閉じ引用符:<span className="ml-2 text-muted-foreground">”</span>。 - 著者行
…[翻訳のために切り詰め]