# Device Hero

> App launch hero with a phone built entirely from DOM layers: a live screen, a camera plateau on the back and a frame of stacked slices that gives the edge real thickness. It leans toward the cursor on a spring, flips to show its back, and floating cards sit at their own depth for true parallax.

- Slug: `device-hero`
- Category: [3D](https://www.assembli.design/category/3d.md)
- Type: block
- Tags: 3d, hero, phone, mockup, app, parallax, css-3d
- npm dependencies: motion, lucide-react
- shadcn/ui dependencies: button
- Added: 2026-10-15
- Live preview: https://www.assembli.design/preview/device-hero
- Page: https://www.assembli.design/components/device-hero

## Install

One-time setup (needs a subscription):

1. Add the registry to the project's `components.json`: `{"@assembli":{"url":"https://www.assembli.design/r/{name}.json","headers":{"Authorization":"Bearer ${ASSEMBLI_API_KEY}"}}}` (merge into `"registries"`).
2. Put an API key from https://www.assembli.design/account in `.env.local` as `ASSEMBLI_API_KEY=asm_…`.

Then install with the shadcn CLI (writes `components/device-hero/device-hero.tsx` and installs dependencies):

```bash
npx shadcn@latest add @assembli/device-hero
```

Registry item JSON: https://www.assembli.design/r/device-hero.json (send `Authorization: Bearer <api key>`)

## Code

> Component source needs an Assembli subscription ($12/month) and an API key sent as `Authorization: Bearer <key>`. To get one without copying anything, POST https://www.assembli.design/api/agent/login (or call the MCP tool connect_account), show the user the link it returns, and poll https://www.assembli.design/api/agent/token for the key. Or subscribe at https://www.assembli.design/pricing and create a key at https://www.assembli.design/account.
