# Add the "Alumni Spotlight" block to this P1 project

Add a Puck component from P1 Blocks (https://p1-blocks.prolificdigital.io/blocks/alumni-spotlight) to this Pantheon Content Publisher (P1) Next.js project. A featured graduate with photo, class year, current role, story and quote, plus sourced alumni figures.

## Steps

1. Create `components/puck/alumni-spotlight-block.tsx` with the exact file contents below. If `components/puck/` doesn't exist, find the folder where this project keeps its Puck components (look at the imports in `puck.config.tsx`) and put it there.
2. In `puck.config.tsx`, import it: `import { alumniSpotlightBlock } from "./components/puck/alumni-spotlight-block";`
3. Register it under `components` as `AlumniSpotlightBlock: alumniSpotlightBlock`.
4. Add `"AlumniSpotlightBlock"` to the best-fitting entry in `categories` (this block's library category is "Higher ed"). Create a category only if none fits.
5. Run the project's type check (usually `pnpm typecheck`) and resolve anything project-specific.
6. If `package.json` has a `sync:registry` script, tell the user it must run (or that CI will run it) before the new component appears in the P1 editor.

## Rules

- Do not add dependencies. The block is self-contained by design: one type-only import from `@puckeditor/core`, Tailwind v4 classes, no client JavaScript.
- Keep the files as-is unless the user asks for changes. The accent color is `indigo-*`; if the project has brand colors, offer to swap them with a find-and-replace on `indigo-`.
- Images are plain `imageUrl` + `imageAlt` text fields. If this project defines a P1 media-library field (search for `"p1-media"`), offer to switch to it.
- Don't change prop names in `defaultProps`. Content editors' saved pages depend on them.

## File: `components/puck/alumni-spotlight-block.tsx`

```tsx
import type { ComponentConfig } from "@puckeditor/core";

/**
 * Alumni Spotlight — one featured graduate with photo, class year and major, current role,
 * a short story and pull quote, plus a small band of alumni-network figures with a source.
 * Register: `AlumniSpotlightBlock: alumniSpotlightBlock` in puck.config.tsx.
 */

type Heading = "h1" | "h2" | "h3" | "h4";

type Stat = { value: string; label: string };

export type AlumniSpotlightProps = {
  eyebrow: string;
  heading: string;
  headingLevel: Heading;
  name: string;
  classYear: string;
  major: string;
  role: string;
  imageUrl: string;
  imageAlt: string;
  quote: string;
  story: string;
  storyLabel: string;
  storyHref: string;
  stats: Stat[];
  statsSource: string;
};

const childHeading = { h1: "h2", h2: "h3", h3: "h4", h4: "h5" } as const;

export const alumniSpotlightBlock: ComponentConfig<AlumniSpotlightProps> = {
  label: "Alumni Spotlight",
  fields: {
    eyebrow: { type: "text", label: "Eyebrow", metadata: { help: "Small line above the heading. Leave blank to hide it." } },
    heading: { type: "text", label: "Heading", metadata: { help: "Section heading, such as Alumni spotlight. The graduate's name sits one level below it." } },
    headingLevel: {
      type: "select",
      label: "Heading level",
      options: [
        { label: "H1", value: "h1" },
        { label: "H2", value: "h2" },
        { label: "H3", value: "h3" },
        { label: "H4", value: "h4" },
      ],
      metadata: { help: "Sets the page outline for screen readers and search. The look doesn't change." },
    },
    name: { type: "text", label: "Graduate's name" },
    classYear: { type: "text", label: "Class year", metadata: { help: "Such as 2014 or '14. Shown as Class of 2014." } },
    major: { type: "text", label: "Degree and major", metadata: { help: "Such as B.S. Civil Engineering." } },
    role: { type: "text", label: "Current role", metadata: { help: "Title and organization, such as Director of Water Resources, City of Cedar Falls." } },
    imageUrl: { type: "text", label: "Photo URL", metadata: { help: "Portrait photo, about 4:5. Use a real, cleared photo of the graduate. Leave blank to hide it." } },
    imageAlt: { type: "text", label: "Photo alt text", metadata: { help: "Describe the photo, such as the graduate's name and setting." } },
    quote: { type: "textarea", label: "Quote", metadata: { help: "A sentence or two in their words. Leave blank to hide it." } },
    story: { type: "textarea", label: "Story", metadata: { help: "A short paragraph about their path. Leave blank to hide it." } },
    storyLabel: { type: "text", label: "Story link text", metadata: { help: "Leave blank to hide it." } },
    storyHref: { type: "text", label: "Story link" },
    stats: {
      type: "array",
      label: "Alumni figures",
      min: 0,
      max: 4,
      getItemSummary: (item) => [item?.value, item?.label].filter(Boolean).join(" ") || "Figure",
      defaultItemProps: { value: "0", label: "New figure" },
      arrayFields: {
        value: { type: "text", label: "Value", metadata: { help: "Such as 92,000 or 50 states." } },
        label: { type: "text", label: "Label" },
      },
    },
    statsSource: { type: "text", label: "Figures source", metadata: { help: "Where the figures come from and when, such as Source: Alumni Relations, 2026. Required whenever figures are shown." } },
  },
  defaultProps: {
    eyebrow: "Northfield alumni",
    heading: "Alumni spotlight",
    headingLevel: "h2",
    name: "Renée Castillo",
    classYear: "2012",
    major: "B.S. Civil Engineering",
    role: "Director of Water Resources, City of Cedar Falls",
    imageUrl: "https://picsum.photos/seed/riverbank/800/1000",
    imageAlt: "A river levee and pumping station at dusk",
    quote: "My senior capstone was a flood model for a town of 900 people. Ten years later I'm running the real thing for a city of 40,000.",
    story: "Renée came to Northfield as a first-generation student from the Rio Grande Valley and spent three summers in the Great Rivers Water Institute. She now leads a 60-person department rebuilding the city's levees and stormwater system, and hires two Northfield co-op students every year.",
    storyLabel: "Read Renée's story",
    storyHref: "/alumni/stories/renee-castillo",
    stats: [
      { value: "118,000", label: "living alumni" },
      { value: "50", label: "states and 74 countries" },
      { value: "1 in 4", label: "alumni give back as mentors" },
    ],
    statsSource: "Sample figures. Source: Northfield Office of Alumni Relations, 2026.",
  },
  render: ({ eyebrow, heading, headingLevel, name, classYear, major, role, imageUrl, imageAlt, quote, story, storyLabel, storyHref, stats, statsSource }) => {
    const H = headingLevel || "h2";
    const Sub = childHeading[headingLevel] || "h3";
    const figures = (stats ?? []).filter((s) => s?.value && s?.label);
    const year = (classYear || "").trim();
    const meta = [year ? `Class of ${year}` : "", major].filter(Boolean);

    return (
      <section className="overflow-hidden bg-neutral-50 px-4 py-16 sm:px-6 sm:py-20 lg:px-8 lg:py-24">
        <div className="mx-auto max-w-7xl">
          {eyebrow || heading ? (
            <div className="flex items-center gap-4">
              <div>
                {eyebrow ? <p className="text-sm font-semibold tracking-wide text-indigo-700 uppercase">{eyebrow}</p> : null}
                {heading ? (
                  <H className={`text-2xl font-semibold tracking-tight text-neutral-950 sm:text-3xl ${eyebrow ? "mt-2" : ""}`}>{heading}</H>
                ) : null}
              </div>
              <span aria-hidden="true" className="hidden h-px flex-1 bg-neutral-300 sm:block" />
            </div>
          ) : null}

          <div className={`grid grid-cols-1 items-center gap-10 lg:grid-cols-12 lg:gap-16 ${eyebrow || heading ? "mt-10 sm:mt-12" : ""}`}>
            {imageUrl ? (
              <div className="relative mx-auto w-full max-w-md lg:col-span-5 lg:max-w-none">
                <div aria-hidden="true" className="absolute -inset-3 hidden translate-x-6 translate-y-6 rounded-3xl bg-indigo-100 sm:block" />
                <div className="relative overflow-hidden rounded-3xl bg-neutral-200 shadow-xl shadow-neutral-900/10">
                  <img src={imageUrl} alt={imageAlt || ""} loading="lazy" className="aspect-4/5 w-full object-cover" />
                  {year ? (
                    <p aria-hidden="true" className="absolute bottom-4 left-4 rounded-full bg-neutral-950/85 px-3.5 py-1.5 text-sm font-semibold text-white tabular-nums">
                      Class of {year}
                    </p>
                  ) : null}
                </div>
              </div>
            ) : null}

            <div className={imageUrl ? "lg:col-span-7" : "lg:col-span-10 lg:col-start-2"}>
              {quote ? (
                <figure>
                  <svg aria-hidden="true" viewBox="0 0 32 32" fill="currentColor" className="size-10 text-indigo-600 sm:size-12">
                    <path d="M9.6 26C5.4 26 2.4 22.7 2.4 18.2c0-6.3 4.6-11.5 11-13.2l1.1 2.4c-3.8 1.4-6 4.2-6.2 7 .4-.1.9-.2 1.4-.2 3.2 0 5.6 2.4 5.6 5.7S12.9 26 9.6 26Zm15.6 0c-4.2 0-7.2-3.3-7.2-7.8 0-6.3 4.6-11.5 11-13.2l1.1 2.4c-3.8 1.4-6 4.2-6.2 7 .4-.1.9-.2 1.4-.2 3.2 0 5.6 2.4 5.6 5.7S28.5 26 25.2 26Z" />
                  </svg>
                  <blockquote className="mt-4 text-2xl leading-snug font-medium tracking-tight text-pretty text-neutral-950 sm:text-3xl sm:leading-tight">
                    <p>{quote}</p>
                  </blockquote>
                  {name ? <figcaption className="sr-only">{name}</figcaption> : null}
                </figure>
              ) : null}

              {name || meta.length || role ? (
                <div className={`border-l-2 border-indigo-600 pl-4 ${quote ? "mt-8" : ""}`}>
                  {name ? <Sub className="text-lg font-semibold text-neutral-950">{name}</Sub> : null}
                  {meta.length ? <p className="text-sm leading-6 text-neutral-600">{meta.join(" · ")}</p> : null}
                  {role ? <p className="mt-1 text-sm leading-6 font-medium text-indigo-800">{role}</p> : null}
                </div>
              ) : null}

              {story ? <p className="mt-6 max-w-2xl text-base leading-7 text-pretty text-neutral-700">{story}</p> : null}

              {storyLabel ? (
                <a
                  href={storyHref || "#"}
                  className="group mt-6 inline-flex min-h-11 items-center gap-2 rounded-lg px-1 text-base font-semibold text-indigo-700 hover:text-indigo-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
                >
                  {storyLabel}
                  <svg aria-hidden="true" viewBox="0 0 20 20" fill="currentColor" className="size-5 transition motion-safe:group-hover:translate-x-0.5">
                    <path fillRule="evenodd" d="M3 10a.75.75 0 0 1 .75-.75h10.64l-3.22-3.22a.75.75 0 1 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 1 1-1.06-1.06l3.22-3.22H3.75A.75.75 0 0 1 3 10Z" clipRule="evenodd" />
                  </svg>
                </a>
              ) : null}

              {figures.length ? (
                <div className="mt-10 border-t border-neutral-200 pt-8">
                  <dl className="grid grid-cols-1 gap-6 sm:grid-cols-3">
                    {figures.map((f, i) => (
                      <div key={`${f.label}-${i}`} className="flex flex-col-reverse gap-1">
                        <dt className="text-sm leading-6 text-neutral-600">{f.label}</dt>
                        <dd className="text-3xl font-semibold tracking-tight text-neutral-950 tabular-nums">{f.value}</dd>
                      </div>
                    ))}
                  </dl>
                  {statsSource ? <p className="mt-6 text-xs leading-5 text-neutral-600">{statsSource}</p> : null}
                </div>
              ) : null}
            </div>
          </div>
        </div>
      </section>
    );
  },
};
```
