# Infrastructure hero

A shadcn/ui hero for infrastructure and deploy platforms: a live line ribbon, a deploys chip with a status sparkline and a dashboard of live deploys.

> 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:** Developer tools and deploy platforms; DevOps and infrastructure SaaS homepages; API products that show live activity; Launch pages for engineering teams
- **Category:** Marketing · **Type:** Hero · **Style:** Motion, Dark mode
- **See it:** [Live preview](https://www.craftui.space/docs/templates/hero-section-06) · [Screenshot](https://www.craftui.space/llms.md/preview/hero-section-06.ea09e112.jpg)

![Infrastructure hero](https://www.craftui.space/llms.md/preview/hero-section-06.ea09e112.jpg)

## Install

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

This is a paid item (SEC-46VJ71): 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 HeroSection06 from "@/components/sections/hero-section-06/hero-section-06";

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

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

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `brand` | `string` | `DEMO.brand` | Your product's name, next to the logo mark. |
| `brandHref` | `string` | `DEMO.brandHref` | Where the logo links to. |
| `links` | `HeroLink[]` | `DEMO.links` | The navbar links (a menu panel holds them below md). |
| `primaryAction` | `HeroLink` | `DEMO.primaryAction` | The main action, also used in the navbar. |
| `secondaryAction` | `HeroLink` | `DEMO.secondaryAction` | The second action beside it. |
| `title` | `string` | `DEMO.title` | The page's h1. |
| `description` | `string` | `DEMO.description` | The line under the title. |
| `counter` | `HeroCounter` | `DEMO.counter` | The live chip above the title. |
| `project` | `HeroProject` | `DEMO.project` | The breadcrumb and status in the dashboard window. |
| `commits` | `Commit[]` | `DEMO.commits` | Commits the dashboard cycles through (use 10 or more, so no message shows twice at once). |
| `ribbonColors` | `{ from: string; to: string }` | — | Ribbon line colours, any CSS colour; leave out to use the light and dark defaults. |
| `ribbon` | `Partial<RibbonSettings>` | — | Overrides for the ribbon's shape, motion and comets. |
| `className` | `string` | — | Classes for the outer section. |

### `HeroLink`

| Field | Type | Description |
| --- | --- | --- |
| `label` (required) | `string` | The visible label. |
| `href` (required) | `string` | Where it goes. |

### `HeroCounter`

| Field | Type | Description |
| --- | --- | --- |
| `label` (required) | `string` | The words after the number, e.g. "deploys today". |
| `initial` (required) | `number` | The number it starts from; it grows as deploys land. |
| `href` (required) | `string` | Where the chip links to (a status or stats page). |

### `HeroProject`

| Field | Type | Description |
| --- | --- | --- |
| `workspace` (required) | `string` | The workspace in the window's breadcrumb. |
| `name` (required) | `string` | The project in the window's breadcrumb. |
| `status` (required) | `string` | The status pill on the window's top right. |

### `Commit`

| Field | Type | Description |
| --- | --- | --- |
| `message` (required) | `string` | The commit message shown in the row. |
| `branch` (required) | `string` | The branch it was deployed from. |

### `RibbonSettings`

| Field | Type | Description |
| --- | --- | --- |
| `lines` (required) | `number` | Number of lines in the bundle. Phones draw 60% of this. |
| `spacing` (required) | `number` | Gap between neighbouring lines, in CSS pixels. |
| `amplitude` (required) | `number` | Wave height in CSS pixels (scaled down on short canvases). |
| `twist` (required) | `number` | Phase offset per line; higher crosses the lines more. |
| `pinch` (required) | `number` | 0–1: how tightly the bundle pinches at its moving waist. |
| `angle` (required) | `number` | Rotation of the whole bundle in degrees. |
| `centerY` (required) | `number` | 0–1: the bundle's vertical centre, as a fraction of the height. |
| `speed` (required) | `number` | Speed of the loop; 1 is the base speed. |
| `fade` (required) | `number` | 0–0.45: how much of each line fades out at both ends. |
| `opacity` (required) | `number` | 0–1: opacity of the lines. |
| `comets` (required) | `number` | 0–1: share of lines that carry a comet. |
| `cometSpeed` (required) | `number` | Comet speed; 1 crosses a line in about 4 seconds. |
| `cometColors` (required) | `string[]` | Comet colours, any CSS colour. Each comet line picks one. |
| `introMs` (required) | `number` | Intro length in milliseconds. |

## Files

The install adds:

- `components/sections/hero-section-06/hero-section-06.tsx`
- `components/sections/hero-section-06/ribbon-canvas.tsx`
- `components/sections/hero-section-06/rolling-number.tsx`
- `components/sections/hero-section-06/use-deploy-feed.ts`

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