# About 2

> Overlapping photo pair with credentials beside the story told as prose (from Marbrook)

A shadcn/ui block from the [@cnippet-blocks](https://blocks.cnippet.dev/?utm_source=shadcn.exchange) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet-blocks/about-2).

- Page, with a live preview: https://shadcn.exchange/r/cnippet-blocks/about-2
- Screenshot: https://shadcn.exchange/shot/cnippet-blocks/about-2/light.png
- Registry item: https://blocks.cnippet.dev/r/about-2.json
- Categories: about
- Listed: 2026-11-01, source last changed 2026-11-01

## Install

```bash
npx shadcn@latest add https://shadcn.exchange/r/cnippet-blocks/about-2.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@cnippet/button`, `@cnippet/utils`

## Files

### `registry/default/sections/about-2/index.tsx`

```tsx
import Image from "next/image";
import Link from "next/link";

import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";

import type { AboutContent } from "../_types/about";
import type { Surface } from "../_types/common";
import { defaultAbout2Content } from "./data";
import { SectionHeader, surfaceClass, toneFor } from "./section-header";

const tones = {
  dark: {
    border: "border-primary-foreground/10",
    muted: "text-primary-foreground/60",
    value: "text-secondary",
  },
  light: {
    border: "border-border",
    muted: "text-muted-foreground",
    value: "text-primary",
  },
};

/** An overlapping pair of photos with credentials, beside the story told as
 *  prose. Numbered items, if given instead, are shown as a static list. */
export default function About2({
  content = defaultAbout2Content,
  surface = "default",
}: {
  content?: AboutContent;
  surface?: Surface;
}) {
  const t = surface === "primary" ? tones.dark : tones.light;
  const [main, inset] = content.images;

  return (
    <section className={cn("py-20 sm:py-28", surfaceClass[surface])}>
      <div className="mx-auto max-w-7xl px-5 sm:px-8 lg:px-12">
        <div className="grid gap-14 lg:grid-cols-12 lg:gap-16">
          <div className="lg:col-span-5">
            <div className="relative aspect-4/5 overflow-hidden rounded-lg">
              <Image
                alt={main.alt}
                className="object-cover"
                fill
                sizes="(min-width: 1024px) 40vw, 100vw"
                src={main.src}
              />
            </div>

            {inset && (
              <div
                className={cn(
                  "relative -mt-16 ml-auto hidden w-3/5 rounded-lg border-8 sm:block",
                  surface === "primary"
                    ? "border-primary"
                    : surface === "muted"
                      ? "border-muted"
                      : "border-background",
                )}
              >
                <div className="relative aspect-4/3 overflow-hidden rounded-sm">
                  <Image
                    alt={inset.alt}
                    className="object-cover"
                    fill
                    sizes="30vw"
                    src={inset.src}
                  />
                </div>
              </div>
            )}

            {content.credentials && content.credentials.length > 0 && (
              <div
                className={cn(
                  "mt-8 grid grid-cols-3 gap-6 border-t pt-6 sm:mt-4",
                  t.border,
                )}
              >
                {content.credentials.map((credential) => (
                  <div key={credential.label}>
                    <p className={cn("font-display text-2xl", t.value)}>
                      {credential.value}
                    </p>
                    <p className={cn("mt-1 text-xs leading-snug", t.muted)}>
                      {credential.label}
                    </p>
                  </div>
                ))}
              </div>
            )}
          </div>

          <div className="lg:col-span-7">
            <SectionHeader
              description={content.description}
              eyebrow={content.eyebrow}
              title={content.title}
              tone={toneFor(surface)}
            />

            {content.body && content.body.length > 0 ? (
              <div className={cn("mt-8 space-y-5 leading-relaxed", t.muted)}>
                {content.body.map((paragraph) => (
                  <p key={paragraph.slice(0, 40)}>{paragraph}</p>
                ))}
              </div>
            ) : (
              <ol className={cn("mt-8 grid gap-6", t.muted)}>
                {content.items?.map((item) => (
                  <li className="flex gap-5" key={item.id}>
                    <span className="pt-1.5 font-mono text-xs opacity-60">
                      {item.id}
                    </span>
                    <div>
                      <p className={cn("font-display text-2xl", t.value)}>
                        {item.title}
                      </p>
                      <p className="mt-2 text-sm leading-relaxed">
                        {item.body}
                      </p>
                    </div>
                  </li>
                ))}
              </ol>
            )}

            {content.actions && content.actions.length > 0 && (
              <div className="mt-10 flex flex-wrap items-center gap-3">
                {content.actions.map((action, index) => (
                  <Button
                    className={cn(
                      "px-7 shadow-none",
                      index === 0
                        ? "border-none bg-primary text-primary-foreground hover:bg-primary/90"
                        : "border-input bg-background text-primary before:shadow-none hover:bg-muted",
                    )}
                    key={action.href}
                    render={<Link href={action.href} />}
                    size="xl"
                    variant={index === 0 ? "default" : "outline"}
                  >
                    {action.label}
                  </Button>
                ))}
              </div>
            )}
          </div>
        </div>
      </div>
    </section>
  );
}
```

### `registry/default/sections/about-2/data.ts`

```ts
import type { AboutContent } from "../_types/about";

export const defaultAbout2Content: AboutContent = {
  body: [
    "Marbrook was founded in 1994 by Helena Marbrook, who had spent eleven years at a national agency and had grown tired of being asked to price a house she had never stood inside. The first office was one room on Rowan Street with a view of the cranes.",
    "The rule she wrote on the first day is still the rule: nobody gives a number on a property they have not visited. It sounds obvious. It is also the reason we take on roughly a fifth of the instructions a volume brokerage would, and the reason our guide prices land within four percent.",
    "We opened the Northgate office in 2009, added lettings in 2015 when a client asked us to look after four flats and we could not think of a good reason to say no, and started the market letter in 2017 because people kept asking what the data actually said.",
    "Helena stepped back from day-to-day work in 2021. The practice is now run by Nadia Ellery and Theo Marchetti, who between them have been here thirty-nine years.",
  ],
  credentials: [
    {
      label: "Licensed since",
      value: "1994",
    },
    {
      label: "Advisors on staff",
      value: "24",
    },
    {
      label: "Repeat & referred",
      value: "68%",
    },
  ],
  description:
    "Thirty-one years later the practice is twenty-four people across two offices, and the way we work has not moved much.",
  eyebrow: "Our story",
  images: [
    {
      alt: "The Marbrook office above the old chandlery on Rowan Street",
      src: "https://res.cloudinary.com/qgiongel/image/upload/q_auto/f_auto/v1786954292/templates/estate/marbrook/cndn_marbrook014.jpg",
    },
    {
      alt: "Interior of a listed harbour residence",
      src: "https://res.cloudinary.com/qgiongel/image/upload/q_auto/f_auto/v1786954292/templates/estate/marbrook/cndn_marbrook016.jpg",
    },
  ],
  title: "It started with one flat above a chandlery.",
};
```

### `registry/default/sections/about-2/section-header.tsx`

```tsx
import type React from "react";

import { cn } from "@/lib/utils";

import type { Surface } from "../_types/common";

/** The small uppercase label that opens most headers. */
export const eyebrowClass =
  "inline-flex items-center gap-2 font-medium text-[0.6875rem] uppercase tracking-[0.22em]";

export const surfaceClass: Record<Surface, string> = {
  default: "bg-background text-foreground",
  muted: "bg-muted text-foreground",
  primary: "bg-primary text-primary-foreground",
  secondary: "bg-secondary text-secondary-foreground",
};

/**
 * Which band the header sits on. `photo` keeps literal white, because
 * `--primary-foreground` inverts in dark mode and would be unreadable over a
 * photograph.
 */
export type SectionTone = "light" | "photo" | "primary" | "secondary";

export function toneFor(surface: Surface): SectionTone {
  if (surface === "primary") return "primary";
  if (surface === "secondary") return "secondary";
  return "light";
}

const toneClasses: Record<
  SectionTone,
  { eyebrow: string; heading: string; lede: string; tick: string }
> = {
  light: {
    eyebrow: "text-muted-foreground/70",
    heading: "text-primary",
    lede: "text-muted-foreground",
    tick: "bg-secondary",
  },
  photo: {
    eyebrow: "text-white/50",
    heading: "text-white",
    lede: "text-white/65",
    tick: "bg-secondary",
  },
  primary: {
    eyebrow: "text-primary-foreground/40",
    heading: "text-primary-foreground",
    lede: "text-primary-foreground/60",
    tick: "bg-secondary",
  },
  secondary: {
    eyebrow: "text-secondary-foreground/50",
    heading: "text-secondary-foreground",
    lede: "text-secondary-foreground/70",
    tick: "bg-primary",
  },
};

export function SectionHeader({
  action,
  actionAt = "sm",
  className,
  description,
  eyebrow,
  size = "default",
  title,
  tone = "light",
}: {
  /** Rendered beside the heading block once `actionAt` is reached. */
  action?: React.ReactNode;
  /** A text link fits from `sm`; a row of filter tabs needs `lg`. */
  actionAt?: "lg" | "sm";
  className?: string;
  description?: React.ReactNode;
  eyebrow: string;
  /** `sm` is the narrow-sidebar size used by 4/8 splits. */
  size?: "default" | "sm";
  title: React.ReactNode;
  tone?: SectionTone;
}): React.ReactElement {
  const tones = toneClasses[tone];

  return (
    <div
      className={cn(
        action && "flex flex-col gap-6",
        action &&
          (actionAt === "lg"
            ? "gap-8 lg:flex-row lg:items-end lg:justify-between"
            : "sm:flex-row sm:items-end sm:justify-between"),
        className,
      )}
    >
      <div className={cn(action && "max-w-xl")}>
        <p className={cn(eyebrowClass, tones.eyebrow)}>
          <span className={cn("size-1", tones.tick)} />
          {eyebrow}
        </p>

        <h2
          className={cn(
            "mt-5 font-display",
            tones.heading,
            size === "sm"
              ? "text-3xl leading-[1.1] sm:text-4xl"
              : "text-4xl leading-[1.05] sm:text-5xl",
          )}
        >
          {title}
        </h2>

        {description && (
          <p className={cn("mt-4 max-w-xl leading-relaxed", tones.lede)}>
            {description}
          </p>
        )}
      </div>

      {action}
    </div>
  );
}
```

### `registry/default/sections/_types/about.ts`

```ts
import type { Highlight, ImageAsset, LinkAction, SectionIntro } from "./common";

export type AboutContent = SectionIntro & {
  actions?: LinkAction[];
  /** Prose paragraphs. */
  body?: string[];
  credentials?: Highlight[];
  /** Main image first, optional inset image second. */
  images: [ImageAsset, ImageAsset?];
  /** Numbered points. */
  items?: { body: string; id: string; title: string }[];
};
```

### `registry/default/sections/_types/common.ts`

```ts
/**
 * Shapes shared by every token-based section. Each section ships this file
 * alongside its own category types, so installing several sections simply
 * rewrites the same file.
 */

/** Which band a section sits on. A style choice, never part of `content`. */
export type Surface = "default" | "muted" | "primary" | "secondary";

export type ImageAsset = {
  alt: string;
  src: string;
};

export type LinkAction = {
  href: string;
  label: string;
};

/** Eyebrow + heading + optional lede, the header most sections open with. */
export type SectionIntro = {
  description?: string;
  eyebrow: string;
  title: string;
};

/** A figure that counts up when it scrolls into view. */
export type Stat = {
  decimals?: number;
  label: string;
  prefix?: string;
  suffix?: string;
  value: number;
};

/** A figure that is displayed as written ("1,240+", "4.9/5"). */
export type Highlight = {
  label: string;
  value: string;
};

export type FormField = {
  label: string;
  name: string;
  /** Only for `type: "select"`. The first option is the default. */
  options?: string[];
  placeholder?: string;
  required?: boolean;
  /** `full` spans both columns of a two-column form. */
  span?: "full" | "half";
  type?: "email" | "select" | "tel" | "text" | "textarea";
};

export type FormContent = {
  description?: string;
  fields: FormField[];
  note?: string;
  submitLabel: string;
  success: {
    description: string;
    resetLabel: string;
    title: string;
  };
  title: string;
};
```
