# Case study hero

A shadcn/ui case-study hero for studios and portfolios: project title, story, details and three photos on one 6-column grid, with an entrance that builds the page row by row.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available for the docs, pricing and about pages: append `.md` to the URL or send an `Accept: text/markdown` header (the home page answers the header too). An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).

## At a glance

- **Good for:** Case study pages for architecture studios; Project pages for design and brand agencies; Portfolio pages for photographers; Work pages that lead with photos and credits
- **Category:** Portfolio, Marketing · **Type:** Hero, Gallery · **Style:** Motion, Minimal, Dark mode
- **See it:** [Live preview](https://www.craftui.space/docs/templates/hero-section-05) · [Screenshot](https://www.craftui.space/llms.md/preview/hero-section-05.8b43cbd8.jpg)

![Case study hero](https://www.craftui.space/llms.md/preview/hero-section-05.8b43cbd8.jpg)

## Install

```bash
pnpm dlx shadcn@latest add https://www.craftui.space/r/hero-section-05.json
```

This is a paid item (SEC-FCXVAM): the install needs a craftUI plan or a purchase of it. Signed in, the docs page gives your personal install command. Plans: https://www.craftui.space/pricing

## Usage

```tsx
import HeroSection05 from "@/components/sections/hero-section-05/hero-section-05";

export default function Page() {
  return <HeroSection05 />;
}
```

With no props it renders with demo content; pass your own through the props below.

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `studio` | `HeroLink` | `DEMO.studio` | The studio's name, top left, and where it links. |
| `nav` | `HeroNavLink[]` | `DEMO.nav` | The main links; one can be marked current. |
| `city` | `string` | `DEMO.city` | The studio's city, shown with its local time (from lg up). |
| `timeZone` | `string` | `DEMO.timeZone` | IANA time zone for the clock, e.g. "Europe/Copenhagen"; leave out for no clock. |
| `cta` | `HeroLink` | `DEMO.cta` | The one action in the nav, top right. |
| `title` | `string` | `DEMO.title` | The project's name. |
| `description` | `string` | `DEMO.description` | One paragraph about the project. |
| `back` | `HeroLink` | `DEMO.back` | The way back to the project list. |
| `detailsLabel` | `string` | `DEMO.detailsLabel` | Heading of the details row. |
| `details` | `HeroDetail[]` | `DEMO.details` | Up to four details, one per column. |
| `photos` | `HeroPhoto[]` | `DEMO.photos` | Three photos; the third shows shorter, with `more` under it. |
| `more` | `HeroLink` | `DEMO.more` | The link under the third photo. |
| `guides` | `boolean` | `false` | Draws the layout grid over the section, for checking alignment. |
| `className` | `string` | — | Extra classes for the section, e.g. its background or spacing. |

### `HeroLink`

| Field | Type | Description |
| --- | --- | --- |
| `label` (required) | `string` | The words on the link. |
| `href` (required) | `string` | Where it goes. |

### `HeroNavLink`

| Field | Type | Description |
| --- | --- | --- |
| `current` | `boolean` | Marks the page you're on (aria-current). |

### `HeroDetail`

| Field | Type | Description |
| --- | --- | --- |
| `label` (required) | `string` | Small grey label, e.g. "Client". |
| `value` (required) | `string` | The detail itself, e.g. "Aarhus Housing Co-op". |

### `HeroPhoto`

| Field | Type | Description |
| --- | --- | --- |
| `src` (required) | `string` | Image URL. |
| `alt` (required) | `string` | What the photo shows, for screen readers. |
| `width` (required) | `number` | The image's own width, so the browser reserves its shape. |
| `height` (required) | `number` | The image's own height. |

## Files

The install adds:

- `components/sections/hero-section-05/hero-section-05.tsx`

npm dependencies (installed for you): `@hugeicons/core-free-icons`, `@hugeicons/react`, `motion`.