Skip to content

Agent skills for useful HTML artifacts, wireframes, interactive prototypes, plans, and diagrams.

5.7 KB
Raw Blame
import { SiteHeader } from "@/components/site-header";
import { SiteFooter } from "@/components/site-footer";
import { SpecimenStack } from "@/components/specimen-stack";
import {
  ArrowRight,
  ArrowUpRight,
  Braces,
  LayoutTemplate,
  MousePointerClick,
  Network,
} from "lucide-react";
import Link from "next/link";

const artifactLinks = [
  {
    title: "Wireframes",
    description: "Test hierarchy, content, navigation, and responsive structure.",
    href: "/docs/wireframes",
    color: "cobalt",
    icon: LayoutTemplate,
  },
  {
    title: "Prototypes",
    description: "Test a credible flow, its behavior, and its relevant states.",
    href: "/docs/prototypes",
    color: "green",
    icon: MousePointerClick,
  },
  {
    title: "Diagrams",
    description: "Make relationships and system behavior easier to inspect.",
    href: "/docs/diagrams",
    color: "lilac",
    icon: Network,
  },
  {
    title: "Plans",
    description: "Keep implementation sequences legible and source-grounded.",
    href: "/docs/plans",
    color: "pink",
    icon: Braces,
  },
];

export default function HomePage() {
  return (
    <div className="catalog-page">
      <a className="skip-link" href="#main-content">
        Skip to content
      </a>
      <div className="site-header-field">
        <SiteHeader />
      </div>
      <main id="main-content" tabIndex={-1}>
      <section className="catalog-hero">
        <div className="hero-grid">
          <div className="hero-copy">
            <h1>
              Effective
              <br />
              HTML
            </h1>
            <p className="hero-byline">
              by{" "}
              <a href="https://plannotator.ai">
                <span>Plannotator</span>
              </a>
            </p>
            <h2>Visual context for product development.</h2>
            <p className="hero-intro">
              A reference site showcasing the visual and interactive HTML
              artifacts you can create with agents.
            </p>
            <div className="hero-actions">
              <Link className="button button-primary" href="/docs">
                Read the guide
                <ArrowRight aria-hidden="true" />
              </Link>
              <Link className="button button-secondary" href="/catalog">
                Browse the catalog
                <ArrowUpRight aria-hidden="true" />
              </Link>
            </div>
          </div>
          <SpecimenStack />
        </div>
      </section>

      <section className="catalog-paper artifact-catalog">
        <div className="section-heading">
          <h2>What you can make with HTML.</h2>
          <p>
            Use HTML to compare options, explain systems, test interactions,
            and plan implementation.
          </p>
        </div>

        <div className="artifact-layout">
          <div className="artifact-feature" aria-hidden="true">
            <div className="feature-wireframe">
              <span className="feature-box feature-box-large" />
              <span className="feature-box" />
              <span className="feature-box" />
              <span className="feature-lines" />
            </div>
            <div className="feature-mockup">
              <span className="feature-sun" />
              <span className="feature-landscape" />
              <span className="feature-copy" />
              <span className="feature-button" />
            </div>
            <div className="feature-prototype">
              <span className="feature-toggle">
                <i />
              </span>
              <span className="feature-panel" />
              <span className="feature-control" />
            </div>
          </div>

          <div className="artifact-index">
            {artifactLinks.map((artifact) => {
              const Icon = artifact.icon;
              return (
                <Link
                  className={`artifact-link artifact-${artifact.color}`}
                  href={artifact.href}
                  key={artifact.title}
                >
                  <span className="artifact-link-icon">
                    <Icon aria-hidden="true" />
                  </span>
                  <span>
                    <strong>{artifact.title}</strong>
                    <small>{artifact.description}</small>
                  </span>
                  <ArrowUpRight aria-hidden="true" />
                </Link>
              );
            })}
          </div>
        </div>
      </section>

      <section className="catalog-ink why-html">
        <div className="why-statement">
          <h2>Use HTML when there’s a lot to understand.</h2>
          <p>
            Markdown is often enough. Use HTML when you need to compare
            designs, change states, follow a flow, or try the thing yourself.
          </p>
          <Link className="text-link" href="/docs/why-html">
            Why HTML?
            <ArrowRight aria-hidden="true" />
          </Link>
        </div>
        <div className="why-uses">
          <div>
            <span className="use-mark use-mark-cobalt" />
            <strong>See structure</strong>
            <p>Make layout, hierarchy, and responsive choices visible.</p>
          </div>
          <div>
            <span className="use-mark use-mark-green" />
            <strong>Test behavior</strong>
            <p>Exercise states, feedback, recovery, and product boundaries.</p>
          </div>
          <div>
            <span className="use-mark use-mark-pink" />
            <strong>Share the thing</strong>
            <p>Give collaborators an artifact they can inspect and direct.</p>
          </div>
        </div>
      </section>

      </main>

      <SiteFooter />
    </div>
  );
}