4d5f58f0c3
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.
51 lines
2.2 KiB
TypeScript
51 lines
2.2 KiB
TypeScript
import type { JSX } from "react"
|
|
import { getTranslations } from "next-intl/server"
|
|
import { Badge } from "@/components/ui/badge"
|
|
|
|
export async function HephaestusSection(): Promise<JSX.Element> {
|
|
const t = await getTranslations("landing")
|
|
|
|
return (
|
|
<section className="relative overflow-hidden bg-black py-24" data-section="hephaestus">
|
|
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_bottom,_var(--tw-gradient-stops))] from-cyan-900/10 via-black to-black opacity-70" />
|
|
<div className="reveal-on-enter relative z-10 container mx-auto px-4 md:px-6">
|
|
<div className="mx-auto max-w-4xl">
|
|
<div className="mb-6 flex items-center gap-3">
|
|
<Badge className="border-cyan-400/20 bg-cyan-400/5 px-4 py-1.5 text-cyan-400">
|
|
{t("hephaestus.badge")}
|
|
</Badge>
|
|
<Badge variant="outline" className="border-zinc-700 text-xs text-zinc-400">
|
|
{t("hephaestus.model")}
|
|
</Badge>
|
|
</div>
|
|
|
|
<h2 className="mb-4 text-4xl font-bold md:text-5xl">
|
|
<span className="text-cyan-400">{t("hephaestus.title")}</span>
|
|
</h2>
|
|
<h3 className="mb-6 text-2xl font-bold text-zinc-300 md:text-3xl">
|
|
{t("hephaestus.headline")}
|
|
</h3>
|
|
<p className="mb-12 max-w-3xl text-xl leading-relaxed text-zinc-400">
|
|
{t("hephaestus.description")}
|
|
</p>
|
|
|
|
<div className="mb-8 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-5">
|
|
{(["explore", "plan", "decide", "execute", "verify"] as const).map((step, i) => (
|
|
<div key={step}>
|
|
<div className="rounded-lg border border-cyan-400/20 bg-cyan-400/5 p-4 text-center">
|
|
<div className="mb-2 font-mono text-xs text-cyan-400">0{i + 1}</div>
|
|
<p className="text-sm leading-snug break-keep text-zinc-300">
|
|
{t(`hephaestus.loop.${step}`)}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
))}
|
|
</div>
|
|
|
|
<p className="text-center text-lg text-zinc-400/90 italic">{t("hephaestus.tagline")}</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
)
|
|
}
|