Sitewright

Magic tree QR

A QR code generator: paste a link and get a real, scannable code in leaf-coloured squares; tap it and it becomes an isometric 3D tree standing on a slab whose tiles are the code.

What it is for

Share and invite pages, publishing links, the connect page, print and event materials.

Every link grows a different tree. Pick spring, summer, autumn or winter (falling petals, leaves or snow) or your own leaf and trunk colours, and download the code as PNG or SVG.

Use it

1 · site.json
"effects": { "components": ["magic-tree-qr"] }
or on the command line
node ~/.claude/skills/sitewright/scripts/scaffold.mjs --config site.json --out ./my-site --components magic-tree-qr
2 · import it
import { MagicTreeQr } from '@/components/fx/ui';

Files

  • components/fx/ui/MagicTreeQr.tsx
  • components/fx/ui/_qr.ts
  • components/fx/ui/_d6.ts
  • components/fx/ui/_tree3d.tsx
  • ui-magic-tree-qr.css styles

Source

Original to Sitewright. MIT licensed.

Credits and licences: third-party notices.

Accessibility

  • Keyboard. Components in the kit are written to be reached and used with the keyboard. Try it: press Tab inside the preview.
  • Reduced motion. With prefers-reduced-motion on, animation settles to its finished state at once.
  • Touch. Pointer-follow effects are skipped on touch screens; controls stay finger-sized.