No.380 · Authentication
Invite Join
An invitation that shows you the room before you walk in: the team sits as a cluster of faces around the person who invited you. Accept, choose a name and password, and your face flies up into the cluster beside theirs while everyone else shuffles out on springs to make room.
The prompt
Written for the variant you picked above: Paper
Build a team-invitation card whose avatar cluster makes room for you when you join. Cluster (13.5rem tall, a soft accent glow behind): avatars are gradient circles with initials, placed by phyllotaxis — slot 0 at the centre (the inviter, larger), slot i at radius 31·√(i + 2.2) (offset so the first ring clears the centre) and angle i × 137.508°, stretched 1.42× wide and 0.84× tall to fit the card, plus a "+12" bubble in the next slot. Each face is absolutely centred and moved with transform: translate(var(--x), var(--y)); they pop in staggered on mount (scale 0.4 → 1, overshoot). The cluster is one role=img listing every name. Steps: invite ("Maryam Al-Harthy invited you to join Vitrine Design", member count and the invited email, Accept invitation / Decline) → form (your name prefilled from the email, a password of 10+ characters, text errors linked to the inputs, Join / Back; the name field is focused) → joined ("You're in, Hamza.", Open Vitrine Design →, focus on the heading, a polite status) or declined ("We won't tell Maryam", Undo; the faces go grey). Joining inserts you at slot 1, right beside the inviter, so every other face's slot moves outward: their transforms transition to the new places over 760ms with a springy overshoot, staggered 28ms per face. Your face flies in with keyframes — from 13rem below (where the form was) at 1.6× scale, arcing up through a point 2.2rem above and short of your slot, settling at scale 1 — with an accent ring. Members are keyed by name, so they keep their identity across the shuffle. Paper and Night; reduced motion places everyone at once. Selected variant — Paper (paper): Palette for this theme (Paper): --ij-accent #2a5bd7; --ij-card #fffdf8; --ij-err #b4432f; --ij-ink #1b1a17; --ij-l 56%; --ij-line rgb(27 26 23 / 0.1); --ij-muted #6f6a62; --ij-ring #fffdf8. Treat these as the root colour tokens, one value per role, and name them to suit your code. Select it with the theme option set to "paper". Keep every dimension, spacing value, state and motion from the brief unchanged, and keep text at 4.5:1 contrast or better on these surfaces. This selection takes precedence over references to other themes or options in the general brief. Implement this selected appearance; do not add a variant picker or alternative appearances unless requested. Implementation requirements: Use React and TypeScript. Keep the component self-contained, with uniquely scoped CSS and no animation libraries. Include required imports, styles and font setup in the result. Interaction: Accept the invitation, choose a password (10+ characters) and join to see your face fly in and the team make room. Try Decline and Undo. Motion: Faces pop in 520ms, 45ms apart; on joining, every face springs to its new slot (760ms, overshoot, 28ms stagger) and yours flies in along an arc (900ms). Accessibility: Real form fields with labels and text errors; focus moves to the name field and then to the result heading; the cluster is one labelled image; joining is announced politely. Reduced motion moves no one. Responsive behavior: A single card up to 26rem; the cluster fits phone widths. Touch: Identical on touch. Preserve keyboard access, visible focus and reduced-motion behavior. Keep fictional demo data and simulated service calls in a separate usage example; expose callbacks for real actions and recover from rejected requests. Keep usage-example links inside the demo: use local buttons or prevent navigation. Demonstration links must not navigate to Vitrine routes or open other pages; preserve real URL support in the reusable component itself. Verify the result at narrow and wide viewport sizes, with keyboard input and reduced motion enabled.
Notes
- Interaction
- Accept the invitation, choose a password (10+ characters) and join to see your face fly in and the team make room. Try Decline and Undo.
- Motion
- Faces pop in 520ms, 45ms apart; on joining, every face springs to its new slot (760ms, overshoot, 28ms stagger) and yours flies in along an arc (900ms).
- Accessibility
- Real form fields with labels and text errors; focus moves to the name field and then to the result heading; the cluster is one labelled image; joining is announced politely. Reduced motion moves no one.
- Responsive
- A single card up to 26rem; the cluster fits phone widths.
- On touch
- Identical on touch.