Expand Examples menu to 5 topics x 5 sketches#19
Merged
Conversation
- public/script.js: examples object grows from 5 to 25 sketches, grouped into five topics (Motion & Physics, Shapes & Geometry, Waves & Noise, Particles & Systems, Color & Pattern). The 5 originals are kept (renamed to Title Case for consistency) and 20 new ones added. - public/index.html: #examples-menu lists all 25 under non-interactive .menu-section-label topic headers. - public/style.css: .menu-list-scroll caps the dropdown height and scrolls instead of overflowing the window; .menu-section-label styles the topic headers. - Verified: each sketch parses as valid JS (vm.Script) and all 25 run with zero sketch-error postMessage events when loaded in sequence in the live app. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
Summary
#examples-menunow renders non-interactive.menu-section-labeltopic headers between groups;.menu-list-scrollcaps the dropdown height so it scrolls instead of overflowing the window.Test plan
node --check public/script.jspasses.examplesobject and ran each of the 25 sketch bodies throughvm.Script- all parse as valid JS.loadExample()in the live app and listened for the sketch iframe'ssketch-errorpostMessage bridge - zero errors across all 25..menu-section-labelheaders, 25button.menu-item, grouped in the intended order.Generated with Claude Code