The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.
JavaScript aiai-agentsclaudeclaude-codeclicodexdeveloper-toolslazylazycodexoh-my-openagentomoopenaiorchestrationtypescript
feat(web): add landing primitives and section components
YeonGyu-Kime6520ce26b92
diff --git a/packages/web/components/site/brand-image.tsx b/packages/web/components/site/brand-image.tsxnew file mode 100644index 00000000..0cd49a33--- /dev/null+++ b/packages/web/components/site/brand-image.tsx@@ -0,0 +1,39 @@+import type { JSX } from "react"++interface BrandImageProps {+ readonly src: string+ readonly alt: string+ readonly width: number+ readonly height: number+ readonly className?: string+ readonly priority?: boolean+}++export function BrandImage({+ src,+ alt,+ width,+ height,+ className = "",+ priority = false,+}: BrandImageProps): JSX.Element {+ // Strip extension to get base path+ const basePath = src.replace(/\.[^/.]+$/, "")++ return (+ <picture>+ <source srcSet={`${basePath}.avif`} type="image/avif" />+ <source srcSet={`${basePath}.webp`} type="image/webp" />+ <img+ src={`${basePath}.png`}+ alt={alt}+ width={width}+ height={height}+ className={className}+ loading={priority ? "eager" : "lazy"}+ fetchPriority={priority ? "high" : "auto"}+ decoding={priority ? "sync" : "async"}+ />+ </picture>+ )+}diff --git a/packages/web/components/site/command-card.tsx b/packages/web/components/site/command-card.tsxnew file mode 100644index 00000000..9fcfd70e--- /dev/null+++ b/packages/web/components/site/command-card.tsx@@ -0,0 +1,102 @@+import type { JSX } from "react"+import type { LazyCommand } from "../../lib/commands"++interface CommandCardProps {+ readonly command: LazyCommand+}++function GlyphIcon({ type }: { readonly type: LazyCommand["glyph"] }): JSX.Element {+ switch (type) {+ case "loop":+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="20"+ height="20"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ aria-hidden="true"+ >+ <path d="M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.3" />+ </svg>+ )+ case "plan":+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="20"+ height="20"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ aria-hidden="true"+ >+ <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" />+ <polyline points="14 2 14 8 20 8" />+ <line x1="16" y1="13" x2="8" y2="13" />+ <line x1="16" y1="17" x2="8" y2="17" />+ <polyline points="10 9 9 9 8 9" />+ </svg>+ )+ case "work":+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="20"+ height="20"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ aria-hidden="true"+ >+ <polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2" />+ </svg>+ )+ default:+ return <></>+ }+}++export function CommandCard({ command }: CommandCardProps): JSX.Element {+ return (+ <article className="flex flex-col gap-4 rounded-xl border border-white/5 bg-[color:var(--surface-panel)] p-6 shadow-sm transition-colors hover:border-white/10">+ <header className="flex items-center gap-3">+ <div className="flex h-10 w-10 items-center justify-center rounded-lg bg-[color:var(--accent-cyan)]/10 text-[color:var(--accent-cyan)]">+ <GlyphIcon type={command.glyph} />+ </div>+ <h2 className="font-mono text-lg font-semibold text-[color:var(--text-primary)]">+ {command.name}+ </h2>+ </header>++ <div className="rounded-md bg-black/40 p-3">+ <code className="break-all font-mono text-sm text-[color:var(--text-secondary)]">+ {command.syntax}+ </code>+ </div>++ <p className="text-sm leading-relaxed text-[color:var(--text-muted)]">+ {command.summary}+ </p>++ <ul className="mt-auto flex flex-col gap-2 pt-4">+ {command.facts.map((fact) => (+ <li key={fact} className="flex items-start gap-2 text-sm text-[color:var(--text-tertiary)]">+ <span className="mt-1 block h-1.5 w-1.5 shrink-0 rounded-full bg-[color:var(--accent-teal)]" aria-hidden="true" />+ <span>{fact}</span>+ </li>+ ))}+ </ul>+ </article>+ )+}diff --git a/packages/web/components/site/command-cards.tsx b/packages/web/components/site/command-cards.tsxnew file mode 100644index 00000000..b461b832--- /dev/null+++ b/packages/web/components/site/command-cards.tsx@@ -0,0 +1,15 @@+import type { JSX } from "react"+import { COMMANDS } from "../../lib/commands"+import { CommandCard } from "./command-card"++export function CommandCards(): JSX.Element {+ return (+ <section className="mx-auto mt-24 w-full max-w-[1200px] px-4 md:mt-32 md:px-8">+ <div className="grid grid-cols-1 gap-6 md:grid-cols-3">+ {COMMANDS.map((command) => (+ <CommandCard key={command.name} command={command} />+ ))}+ </div>+ </section>+ )+}diff --git a/packages/web/components/site/copy-button.tsx b/packages/web/components/site/copy-button.tsxnew file mode 100644index 00000000..4e971ead--- /dev/null+++ b/packages/web/components/site/copy-button.tsx@@ -0,0 +1,67 @@+"use client"++import type { JSX } from "react"+import { useState, useCallback } from "react"++interface CopyButtonProps {+ readonly value: string+ readonly className?: string+}++export function CopyButton({ value, className = "" }: CopyButtonProps): JSX.Element {+ const [copied, setCopied] = useState(false)++ const handleCopy = useCallback(() => {+ if (!value) return+ void navigator.clipboard.writeText(value)+ setCopied(true)+ setTimeout(() => setCopied(false), 2000)+ }, [value])++ return (+ <button+ type="button"+ onClick={handleCopy}+ className={`group relative flex h-8 w-8 items-center justify-center rounded-md transition-colors hover:bg-[color:var(--surface-panel)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--accent-cyan)] ${className}`}+ aria-label="Copy install command"+ >+ <span className="sr-only" aria-live="polite">+ {copied ? "Copied" : ""}+ </span>+ {copied ? (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="16"+ height="16"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ className="text-[color:var(--accent-cyan)]"+ aria-hidden="true"+ >+ <polyline points="20 6 9 17 4 12" />+ </svg>+ ) : (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="16"+ height="16"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ className="text-[color:var(--text-muted)] transition-colors group-hover:text-[color:var(--text-primary)]"+ aria-hidden="true"+ >+ <rect width="14" height="14" x="8" y="8" rx="2" ry="2" />+ <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" />+ </svg>+ )}+ </button>+ )+}diff --git a/packages/web/components/site/docs-cta.tsx b/packages/web/components/site/docs-cta.tsxnew file mode 100644index 00000000..59b600ac--- /dev/null+++ b/packages/web/components/site/docs-cta.tsx@@ -0,0 +1,30 @@+import type { JSX } from "react"+import Link from "next/link"+import { SITE_CONFIG } from "../../lib/site-config"++export function DocsCta(): JSX.Element {+ return (+ <section className="mx-auto mt-32 mb-24 flex w-full max-w-[800px] flex-col items-center rounded-2xl border border-white/10 bg-[color:var(--surface-panel)] px-6 py-16 text-center md:mt-40 md:px-12">+ <h2 className="text-3xl font-medium tracking-tight text-[color:var(--text-primary)]">+ Ready to stop thinking?+ </h2>+ <p className="mt-4 text-lg text-[color:var(--text-muted)]">+ Read the manual. It's short.+ </p>+ <div className="mt-8 flex flex-wrap justify-center gap-4">+ <Link+ href={SITE_CONFIG.docsPath}+ className="rounded-md bg-[color:var(--text-primary)] px-6 py-3 font-medium text-[color:var(--surface-base)] transition-transform hover:scale-105 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--accent-cyan)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--surface-panel)]"+ >+ Read the Docs+ </Link>+ <Link+ href={`${SITE_CONFIG.docsPath}#ulw-loop`}+ className="rounded-md border border-white/20 bg-transparent px-6 py-3 font-medium text-[color:var(--text-primary)] transition-colors hover:bg-white/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--accent-cyan)] focus-visible:ring-offset-2 focus-visible:ring-offset-[color:var(--surface-panel)]"+ >+ How Ultrawork works+ </Link>+ </div>+ </section>+ )+}diff --git a/packages/web/components/site/github-stars-pill.tsx b/packages/web/components/site/github-stars-pill.tsxnew file mode 100644index 00000000..96a04295--- /dev/null+++ b/packages/web/components/site/github-stars-pill.tsx@@ -0,0 +1,32 @@+import type { JSX } from "react"+import { SITE_CONFIG } from "../../lib/site-config"+import { GITHUB_STARS } from "../../lib/github-stars.generated"++export function GithubStarsPill(): JSX.Element {+ return (+ <a+ href={SITE_CONFIG.githubStarsUrl}+ target="_blank"+ rel="noopener noreferrer"+ className="group flex h-8 items-center gap-1.5 rounded-full border border-[#172323] bg-[#0E1313] px-3 text-sm font-medium text-[color:var(--accent-cyan)] transition-colors hover:border-[color:var(--accent-teal)] hover:bg-[#131a1a] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--accent-cyan)]"+ aria-label={`${GITHUB_STARS} stars on GitHub`}+ >+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="14"+ height="14"+ viewBox="0 0 24 24"+ fill="currentColor"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ className="transition-transform group-hover:scale-110"+ aria-hidden="true"+ >+ <polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" />+ </svg>+ <span>{GITHUB_STARS} stars</span>+ </a>+ )+}diff --git a/packages/web/components/site/hero.tsx b/packages/web/components/site/hero.tsxnew file mode 100644index 00000000..91d3054c--- /dev/null+++ b/packages/web/components/site/hero.tsx@@ -0,0 +1,44 @@+import type { JSX } from "react"+import { SITE_CONFIG } from "../../lib/site-config"++export function Hero(): JSX.Element {+ return (+ <section className="relative isolate flex w-full flex-col items-center justify-center overflow-hidden rounded-[16px] bg-[color:var(--card-base)] px-[20px] py-[60px] text-center shadow-[0_40px_120px_rgba(0,0,0,0.6)] md:px-[60px] md:py-[70px] lg:aspect-[1200/630]">+ {/* Card background — pure CSS gradient layers (the Codex-tone luminous+ card). Kept image-free so the hero text is the LCP element and paints+ at FCP: the path to a perfect Lighthouse performance score. The+ boulder identity lives in the favicon and the ultrawork orbit below. */}+ <div className="card-gradient-base absolute inset-0 -z-10" />+ <div className="card-gradient-pools absolute inset-0 -z-10" />+ <div className="card-gradient-sheen absolute -inset-[10%] -z-10" />+ <div className="card-gradient-beam absolute inset-0 -z-10" />+ <div className="card-grain absolute inset-0 -z-10" />++ {/* Card Content */}+ <div className="flex flex-col items-center justify-center gap-[30px]">+ <p className="font-mono text-[15px] font-medium uppercase tracking-[0.32em] text-[color:var(--text-soft)] opacity-90">+ {SITE_CONFIG.eyebrow}+ </p>++ <h1 className="m-0 text-balance text-[clamp(64px,12vw,168px)] font-medium leading-[0.98] tracking-[-0.03em] text-[color:var(--text-primary)]">+ {SITE_CONFIG.wordmark}+ </h1>++ <div className="m-0 max-w-[960px] text-balance text-[clamp(20px,3vw,34px)] font-normal leading-[1.35] tracking-[-0.005em] text-[color:var(--text-muted)]">+ <p>{SITE_CONFIG.heroLineA}</p>+ <p>+ {SITE_CONFIG.heroLineB.prefix}+ <span className="inline-flex items-center rounded-md bg-white/10 px-2 py-0.5 font-mono text-[0.9em] text-[color:var(--text-soft)]">+ {SITE_CONFIG.heroLineB.slot}+ </span>+ {SITE_CONFIG.heroLineB.suffix}+ <strong className="font-medium text-[color:var(--accent-cyan)] drop-shadow-[0_0_8px_rgba(135,240,242,0.4)]">+ {SITE_CONFIG.heroLineB.keyword}+ </strong>+ {SITE_CONFIG.heroLineB.period}+ </p>+ </div>+ </div>+ </section>+ )+}diff --git a/packages/web/components/site/install-block.tsx b/packages/web/components/site/install-block.tsxnew file mode 100644index 00000000..20bab8b3--- /dev/null+++ b/packages/web/components/site/install-block.tsx@@ -0,0 +1,26 @@+import type { JSX } from "react"+import { SITE_CONFIG } from "../../lib/site-config"+import { CopyButton } from "./copy-button"++export function InstallBlock(): JSX.Element {+ return (+ <section className="mx-auto mt-12 flex w-full max-w-2xl flex-col items-center gap-4 px-4 md:mt-16">+ <div className="flex w-full items-center justify-between rounded-lg border border-white/10 bg-[color:var(--surface-panel)] p-2 pl-4 shadow-lg">+ <div className="flex items-center gap-3 overflow-x-auto">+ <span className="select-none font-mono text-[color:var(--text-tertiary)]" aria-hidden="true">+ $+ </span>+ <code className="whitespace-nowrap font-mono text-sm font-medium text-[color:var(--text-primary)] md:text-base">+ {SITE_CONFIG.installCommand}+ </code>+ </div>+ <CopyButton value={SITE_CONFIG.installCommand} className="ml-4 shrink-0" />+ </div>++ <div className="flex flex-col items-center gap-1 text-center text-sm text-[color:var(--text-muted)]">+ <p className="font-medium text-[color:var(--text-secondary)]">{SITE_CONFIG.status}</p>+ <p className="font-mono text-xs opacity-70">= {SITE_CONFIG.installEquivalent}</p>+ </div>+ </section>+ )+}diff --git a/packages/web/components/site/site-footer.tsx b/packages/web/components/site/site-footer.tsxnew file mode 100644index 00000000..1695e69b--- /dev/null+++ b/packages/web/components/site/site-footer.tsx@@ -0,0 +1,37 @@+import type { JSX } from "react"+import { SITE_CONFIG } from "../../lib/site-config"++export function SiteFooter(): JSX.Element {+ return (+ <footer className="w-full border-t border-white/5 bg-[color:var(--surface-base)] py-8">+ <div className="mx-auto flex max-w-[1200px] flex-col items-center justify-between gap-4 px-4 text-sm text-[color:var(--text-tertiary)] md:flex-row md:px-8">+ <div className="flex items-center gap-2">+ <span className="font-mono font-medium text-[color:var(--text-secondary)]">+ lazycodex.ai+ </span>+ <span aria-hidden="true">·</span>+ <span>MIT License</span>+ </div>++ <div className="flex items-center gap-6">+ <a+ href={SITE_CONFIG.githubUrl}+ target="_blank"+ rel="noopener noreferrer"+ className="transition-colors hover:text-[color:var(--text-primary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--accent-cyan)]"+ >+ GitHub+ </a>+ <a+ href={SITE_CONFIG.sisyphusUrl}+ target="_blank"+ rel="noopener noreferrer"+ className="transition-colors hover:text-[color:var(--text-primary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--accent-cyan)]"+ >+ by Sisyphus Labs+ </a>+ </div>+ </div>+ </footer>+ )+}diff --git a/packages/web/components/site/site-header.tsx b/packages/web/components/site/site-header.tsxnew file mode 100644index 00000000..bd9684ea--- /dev/null+++ b/packages/web/components/site/site-header.tsx@@ -0,0 +1,67 @@+import type { JSX } from "react"+import Link from "next/link"+import { SITE_CONFIG } from "../../lib/site-config"+import { GithubStarsPill } from "./github-stars-pill"++export function SiteHeader(): JSX.Element {+ return (+ <header className="sticky top-0 z-40 w-full border-b border-white/5 bg-[color:var(--surface-base)]/80 backdrop-blur-md">+ <div className="mx-auto flex h-14 max-w-[1200px] items-center justify-between px-4 md:px-8">+ <div className="flex items-center gap-3">+ <Link+ href="/"+ className="flex items-center gap-2 transition-opacity hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--accent-cyan)]"+ aria-label="LazyCodex home"+ >+ {/* Inline SVG boulder mark: zero network bytes (a real <img> of+ the 512px icon would download ~200KB above the fold and starve+ the LCP text paint on throttled mobile). */}+ <svg+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ aria-hidden="true"+ className="h-6 w-6"+ >+ <path+ d="M5.2 14.6C4.1 10.3 8 4.8 12.6 5 17 5.2 20 8.8 19.4 13.2 18.8 17.6 14.8 20 10.8 19.4 7.6 18.9 6.1 17.4 5.2 14.6Z"+ fill="var(--card-base)"+ stroke="var(--accent-cyan)"+ strokeWidth="1.3"+ />+ <path+ d="M9.2 11.4 11.6 13.2 9.4 15M13 15.4H15.4"+ stroke="var(--accent-cyan)"+ strokeWidth="1.3"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ <span className="font-medium tracking-tight text-[color:var(--text-primary)]">+ {SITE_CONFIG.wordmark}+ </span>+ </Link>+ </div>++ <nav className="flex items-center gap-4 md:gap-6">+ <a+ href={SITE_CONFIG.sisyphusUrl}+ target="_blank"+ rel="noopener noreferrer"+ className="hidden text-sm text-[color:var(--text-muted)] transition-colors hover:text-[color:var(--text-primary)] md:block"+ >+ by Sisyphus Labs+ </a>+ <Link+ href={SITE_CONFIG.docsPath}+ className="text-sm font-medium text-[color:var(--text-secondary)] transition-colors hover:text-[color:var(--text-primary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--accent-cyan)]"+ >+ Docs+ </Link>+ <GithubStarsPill />+ </nav>+ </div>+ </header>+ )+}diff --git a/packages/web/components/site/ultrawork-section.tsx b/packages/web/components/site/ultrawork-section.tsxnew file mode 100644index 00000000..cbb3c0e0--- /dev/null+++ b/packages/web/components/site/ultrawork-section.tsx@@ -0,0 +1,30 @@+import type { JSX } from "react"+import { SITE_CONFIG } from "../../lib/site-config"+import { BrandImage } from "./brand-image"++export function UltraworkSection(): JSX.Element {+ return (+ <section className="mx-auto mt-32 flex w-full max-w-[1200px] flex-col items-center px-4 text-center md:mt-40 md:px-8">+ <h2 className="text-balance text-[clamp(32px,5vw,48px)] font-medium tracking-tight text-[color:var(--text-primary)]">+ {SITE_CONFIG.ultraworkTagline}+ </h2>++ <div className="mt-8 rounded-lg border border-[color:var(--accent-cyan)]/20 bg-[color:var(--accent-cyan)]/5 px-6 py-3 shadow-[0_0_30px_rgba(135,240,242,0.1)]">+ <code className="font-mono text-lg font-medium text-[color:var(--accent-glow)]">+ {SITE_CONFIG.ultraworkExample}+ </code>+ </div>++ <div className="relative mt-16 w-full max-w-[960px]">+ <div className="absolute inset-0 -z-10 bg-[radial-gradient(circle_at_center,rgba(135,240,242,0.15)_0%,transparent_70%)] blur-3xl" />+ <BrandImage+ src="/img/ultrawork-orbit.png"+ alt="Diagram showing the ultrawork loop activating multiple agents"+ width={960}+ height={643}+ className="h-auto w-full"+ />+ </div>+ </section>+ )+}