# Edge network hero

A shadcn/ui hero for edge and network products: a live request counter beside an isometric stack where each request falls through route, security and cache.

> 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:** CDN, edge and networking products; Developer infrastructure and API platforms; Security and firewall products; Homepages that lead with a live usage number
- **Category:** Marketing · **Type:** Hero · **Style:** Motion, Dark mode
- **See it:** [Live preview](https://www.craftui.space/docs/templates/hero-section-09) · [Screenshot](https://www.craftui.space/llms.md/preview/hero-section-09.e12c385d.jpg)

![Edge network hero](https://www.craftui.space/llms.md/preview/hero-section-09.e12c385d.jpg)

## Install

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

This is a paid item (SEC-E0TQ6A): 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 HeroSection09 from "@/components/sections/hero-section-09/hero-section-09";

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

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

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `brand` | `string` | `DEMO.brand` | Product name in the navbar. |
| `brandHref` | `string` | `"/"` | Where the logo links, e.g. "/". |
| `links` | `HeroLink[]` | `DEMO.links` | Navbar links: shown from md up, in the menu panel below md. |
| `navAction` | `HeroLink` | `DEMO.primaryAction` | The navbar's one button. |
| `counterLabel` | `string` | `DEMO.counterLabel` | The label above the counter. |
| `counterStart` | `number` | `DEMO.counterStart` | The counter's first value. |
| `title` | `string` | `DEMO.title` | The headline (the page's h1). |
| `description` | `string` | `DEMO.description` | The sentence under the headline. |
| `primaryAction` | `HeroLink` | `DEMO.primaryAction` | The main action (with an arrow). |
| `secondaryAction` | `HeroLink` | `DEMO.secondaryAction` | The second action. |
| `layers` | `readonly string[]` | — | The names on the slabs, bottom to top: origin, cache, secure, route. |
| `readings` | `StackReadings` | — | The readings' words (region codes, WAF and cache results). |
| `stack` | `Partial<StackSettings>` | — | Overrides for the stack's shape and pace. |
| `className` | `string` | — | Classes for the section root. |

### `HeroLink`

| Field | Type | Description |
| --- | --- | --- |
| `label` (required) | `string` | The text, e.g. "Pricing". |
| `href` (required) | `string` | Where it goes, e.g. "/pricing". |

### `StackReadings`

| Field | Type | Description |
| --- | --- | --- |
| `regions` (required) | `string[]` | Region codes on ROUTE, one picked per request, e.g. "fra1". |
| `passed` (required) | `string` | SECURE's reading when a request is let through. |
| `blocked` (required) | `string` | SECURE's reading when a request is blocked. |
| `hit` (required) | `string` | CACHE's word for a hit (the time is added). |
| `miss` (required) | `string` | CACHE's reading for a miss. |
| `ok` (required) | `string` | ORIGIN's status code (the time is added). |

### `StackSettings`

| Field | Type | Description |
| --- | --- | --- |
| `gap` (required) | `number` | Space between the layers, in units (a slab is `width` units wide). Keep it above width ÷ 2 + 0.6, or a lower layer's port hides under the one above. |
| `width` (required) | `number` | Width of a slab, in units. |
| `speed` (required) | `number` | How fast the traced request falls, in units a second. |
| `every` (required) | `number` | Seconds between traced requests. |
| `hitRate` (required) | `number` | 0–1: share of traced requests the cache answers (the rest go to the origin; about 1 in 8 is a blocked bot). |
| `introMs` (required) | `number` | Intro length in milliseconds. |

## Files

The install adds:

- `components/sections/hero-section-09/hero-section-09.tsx`
- `components/sections/hero-section-09/navbar.tsx`
- `components/sections/hero-section-09/traffic.tsx`
- `components/sections/hero-section-09/request-stack-canvas.tsx`
- `components/sections/hero-section-09/rolling-number.tsx`
- `components/sections/hero-section-09/styles.ts`
- `components/sections/hero-section-09/DESIGN.md`

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