Sitewright

Landscape

A procedural 3-D terrain rendered by a column-marching heightfield renderer, with sunrise, noon, sunset or night skies and clear, rain, storm (lightning), snow or fog weather; the pointer pans and tilts the camera.

What it is for

Behind a hero, a weather or travel section (fills its parent, which should be positioned); set `time` and `weather`.

Use it

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

Files

  • components/fx/ui/Landscape.tsx
  • components/fx/ui/_tu-three-kit.ts
  • components/fx/ui/_tu-three-land.ts
  • components/fx/ui/_tu-three-chips.tsx
  • components/fx/ui/_t1.ts
  • ui-landscape.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.