Files
YeonGyu-Kim 4d5f58f0c3 refactor(web): decompose 832-LOC landing into 10 section components
app/_components/landing-page.tsx: 832 LOC -> 33-LOC composition shell.
Each section becomes a focused, named component under
components/landing/sections/:

- hero.tsx: terminal headline + install command + primary CTA
- ultrawork.tsx: ultrawork mode pitch
- sisyphus.tsx: Sisyphus orchestrator showcase
- prometheus-atlas.tsx: planner + executor pair (was amber+indigo,
  now violet — single secondary accent)
- hephaestus.tsx: code surgeon (was orange, now cyan)
- team-mode.tsx: parallel team coordination (was fuchsia/purple/cyan
  gradient, now solid cyan headline + violet skills accent)
- sub-agents.tsx: explore/librarian/oracle/multimodal etc.
- architecture.tsx: 4-tier diagram
- reviews.tsx: testimonials (Star kept text-cyan-500 / fill-cyan-500,
  on-brand)
- cta.tsx: final call-to-action

components/landing/constants.ts (new):
- SUB_AGENT_KEYS, AGENT_STYLES, PRINCIPLE_KEYS, PRINCIPLE_ICONS,
  REVIEW_KEYS, CATEGORY_ROUTING, SKILL_INJECTIONS
- Single source of truth for agent/principle/review metadata used
  across sections

components/icons/github-icon.tsx (new):
- Extracted inline SVG into a typed component with default
  aria-hidden and overridable size/className

Color consolidation: 9-color rainbow per-section -> cyan (primary)
+ violet (secondary, agent identity) + neutral grays + status colors
only. 'Evolution not revolution': dark + cyan brand soul intact.
2026-05-20 14:27:02 +09:00

121 lines
5.4 KiB
TypeScript

import type { JSX } from "react"
import { getTranslations } from "next-intl/server"
import { Brain, Layers, ArrowRight } from "lucide-react"
import { Badge } from "@/components/ui/badge"
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
export async function PrometheusAtlasSection(): Promise<JSX.Element> {
const t = await getTranslations("landing")
return (
<section className="border-y border-white/5 bg-[#0a0a0a] py-24" data-section="prometheus-atlas">
<div className="reveal-on-enter container mx-auto px-4 md:px-6">
<div className="mb-16 text-center">
<Badge className="mb-6 border-violet-500/20 bg-violet-500/10 px-4 py-1.5 text-violet-400">
{t("prometheusAtlas.badge")}
</Badge>
<h2 className="mb-4 text-4xl font-bold text-white md:text-5xl">
{t("prometheusAtlas.title")}
</h2>
<p className="mx-auto max-w-2xl text-xl text-zinc-400">{t("prometheusAtlas.headline")}</p>
</div>
<div className="mb-12 grid grid-cols-1 gap-8 lg:grid-cols-2">
<div>
<Card className="h-full border-zinc-800 bg-zinc-900/30">
<CardHeader>
<div className="flex items-center justify-between">
<div className="rounded-lg bg-violet-400/10 p-2">
<Brain className="h-6 w-6 text-violet-400" />
</div>
<Badge variant="outline" className="border-zinc-700 text-xs text-zinc-400">
{t("prometheusAtlas.prometheus.model")}
</Badge>
</div>
<CardTitle className="mt-4 text-2xl text-violet-400">
{t("prometheusAtlas.prometheus.name")}
</CardTitle>
<CardDescription className="font-medium text-zinc-400">
{t("prometheusAtlas.prometheus.role")}
</CardDescription>
</CardHeader>
<CardContent className="space-y-4">
<p className="leading-relaxed text-zinc-300">
{t("prometheusAtlas.prometheus.description")}
</p>
<ul className="space-y-2">
{([0, 1, 2, 3] as const).map((i) => (
<li key={i} className="flex items-center gap-2 text-sm text-zinc-400">
<ArrowRight className="h-3 w-3 shrink-0 text-violet-400" />
{t(`prometheusAtlas.prometheus.features.${i}`)}
</li>
))}
</ul>
</CardContent>
</Card>
</div>
<div>
<Card className="h-full border-zinc-800 bg-zinc-900/30">
<CardHeader>
<div className="flex items-center justify-between">
<div className="rounded-lg bg-violet-400/10 p-2">
<Layers className="h-6 w-6 text-violet-400" />
</div>
<Badge variant="outline" className="border-zinc-700 text-xs text-zinc-400">
{t("prometheusAtlas.atlas.model")}
</Badge>
</div>
<CardTitle className="mt-4 text-2xl text-violet-400">
{t("prometheusAtlas.atlas.name")}
</CardTitle>
<CardDescription className="font-medium text-zinc-400">
{t("prometheusAtlas.atlas.role")}
</CardDescription>
</CardHeader>
<CardContent className="space-y-4">
<p className="leading-relaxed text-zinc-300">
{t("prometheusAtlas.atlas.description")}
</p>
<ul className="space-y-2">
{([0, 1, 2, 3] as const).map((i) => (
<li key={i} className="flex items-center gap-2 text-sm text-zinc-400">
<ArrowRight className="h-3 w-3 shrink-0 text-violet-400" />
{t(`prometheusAtlas.atlas.features.${i}`)}
</li>
))}
</ul>
</CardContent>
</Card>
</div>
</div>
<div>
<div className="overflow-x-auto rounded-xl border border-zinc-800 bg-zinc-900/20 p-6 md:p-8">
<div className="flex min-w-[600px] flex-col items-start justify-between gap-4 md:min-w-0 md:flex-row md:items-center md:gap-0">
{([1, 2, 3, 4, 5] as const).map((step, i) => (
<div key={step} className="flex flex-1 items-center gap-4">
<div className="flex items-center gap-3">
<div className="flex h-8 w-8 items-center justify-center rounded-full border border-zinc-700 bg-zinc-800 font-mono text-xs text-zinc-400">
{step}
</div>
<span className="text-sm whitespace-nowrap text-zinc-300">
{t(`prometheusAtlas.workflow.step${step}`)}
</span>
</div>
{i < 4 && (
<ArrowRight className="ml-auto hidden h-4 w-4 shrink-0 text-zinc-600 md:block" />
)}
</div>
))}
</div>
<p className="mt-6 border-t border-zinc-800 pt-6 text-center text-zinc-400 italic">
{t("prometheusAtlas.whyItWorks")}
</p>
</div>
</div>
</div>
</section>
)
}