#168
Hero
A hero-sized empty state inviting the user to start a first project, with Create project and Import buttons.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Hero" pattern (@codeatlasdev/ui demo #168, layout/empty-state) in my app.
Call get_demo({ ids: ["#168"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Onboarding screens for an empty workspace where the page has nothing else to show.
Keep these library parts, with the props and tokens the demo uses:
- EmptyState, Button from "@codeatlasdev/ui"
Behaviour to keep:
- `<EmptyState variant="hero" icon={Inbox} title="Start your first project"`
- `description="Projects keep your sessions, contacts and settings in one place."`
- `{#snippet actions()}` holds `<Button variant="filled">Create project</Button>` and `<Button variant="ghost">Import</Button>`
- Both buttons use the default size, with no size attribute
Reduced motion: the demo handles it; keep that branch.
Keyboard: operable; keep the focus order and key handling.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- EmptyState
@codeatlasdev/ui - Button
@codeatlasdev/ui
How it is built
- `<EmptyState variant="hero" icon={Inbox} title="Start your first project"`
- `description="Projects keep your sessions, contacts and settings in one place."`
- `{#snippet actions()}` holds `<Button variant="filled">Create project</Button>` and `<Button variant="ghost">Import</Button>`
- Both buttons use the default size, with no size attribute
Related
Loading source.