Puku
Nothing's mascot, in every mood
Puku is Nothing's mascot. It keeps people company where there is nothing yet — empty lists, searches with no results, loading, errors, invitations, and the 404 page. Its body stays still and its eyes do the acting: they follow the pointer, widen when it comes close, turn happy on a tap, and grow sleepy after a while. With reduced motion turned on, it stays completely still.
Try it
<Puku variant="search" size="lg" />Each variant tells one small story — nothing yet, nothing found, no access, on its way — and the size follows the space it sits in, from a card to the whole 404 page.
In code
import { Puku } from "@/components/puku"
<Empty>
<EmptyHeader>
<EmptyMedia>
<Puku variant="emptyProjects" />
</EmptyMedia>
<EmptyTitle>{t("noProjects")}</EmptyTitle>
</EmptyHeader>
</Empty>Plan outfits
The three studio plans are pieces of Persian architecture, and Puku wears each one: a mud brick held in its hands (Brick), a tiled pointed arch (Arch), and a turquoise dome (Dome).
Standing in for a photo
A person with no profile photo, or one that does not load, gets their face from Puku: on people cards, in the home page's architects carousel, and in the circle on their profile page. Puku comes in four looks, each holding one of an architect's tools:
- Photo frame (
portrait): holds an empty frame up by its bottom corners; now and then a flash goes off beside it. - Pencil (
portraitPencil): holds a drafting pencil up beside it and taps the air with it when it looks up. - Set square (
portraitSquare): holds a drafting set square by its corners and glances along its edge. - Blueprint (
portraitRoll): hugs a rolled blueprint tied with an orange band.
Each person picks one in their profile settings (the About step). Until they pick, Automatic derives one from their user id: different from person to person, and always the same for one. The pick is stored in arch.profile.puku_look; its keys live in @repo/db/puku-look.
import {
PUKU_LOOK_VARIANTS,
Puku,
resolvePukuLook,
} from "@/components/puku"
<Puku
variant={PUKU_LOOK_VARIANTS[resolvePukuLook(userId, pukuLook)]}
/>