Mercurial
view react_games/public/landing_page.js @ 258:60a876c4587a
[ui] Add semantic primitive ownership
Build a layered Zenbu token and sizing system, make authored controls use native-underneath primitives, migrate mrjunejune without imposing visual surfaces, and document/enforce HTML ownership in the catalog and wiki.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Wed, 05 Aug 2026 05:25:40 -0700 |
| parents | fb9bcd3145cb |
| children |
line wrap: on
line source
const createStars = (x, y) => { const star = document.createElement("div"); star.style.position = 'fixed'; star.style.left = x + 'px'; star.style.top = y + 'px'; star.style.width = '4px'; star.style.height = '4px'; star.style.background = 'white'; star.style.borderRadius = '50%'; star.style.pointerEvents = 'none'; star.style.zIndex = '1000'; star.style.animation = 'sparkleAnim 1s ease-out forwards'; document.body.appendChild(star); setTimeout(() => { star.remove(); }, 1000); } document.addEventListener('mousemove', (e) => { if (Math.random() > 0.99) { createStars(e.clientX, e.clientY); } });