Repository navigation
SlideToDetonate easter egg: the page actually burns - #44
Merged
Merged
Conversation
A site-only easter egg: confirming any SlideToDetonate on the docs or landing sets off a blast at the handle (flash, shockwave, fireball, sparks, screen shake), then a noisy burn front with flames, embers and smouldering char sweeps the whole viewport. A rebuild button (or Esc) rewinds the fire. The registry component is untouched; the site uses a wrapper that fires a window event picked up by a lazily loaded overlay.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (9)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Sliding any
SlideToDetonateon the site now really detonates:How
components/detonation/slide-to-detonate.tsxis a site-only wrapper around the registry component. On confirm it fires aevilbuttons:detonatewindow event from the handle's position. The registry component (components/evil-buttons/slide-to-detonate.tsx) is unchanged.components/detonation/page-detonation.tsxis mounted in the root layout and lazy-loads the overlay withnext/dynamic(ssr: false). The chunk is prefetched when someone grabs or focuses a slider.components/detonation/detonation-overlay.tsxdraws scorch, char, flames, fireball, shockwave and flash in one WebGL2 pass, with a 2D canvas on top for sparks and embers. JS owns the timeline. There's a CSS clip-path fallback when WebGL2 isn't available.Accessibility
prefers-reduced-motion: no flash, shake, fireball or particles, and a faster spread.alertdialogand its button takes focus. Focus goes back to the slider afterwards.Checks
pnpm typecheckandpnpm lintpass (the only warnings are the existing<img>ones in the hero)./docs/slide-to-detonate: drag, blast, burn, end card, rebuild, overlay removed. No console errors.