Modernize demo site and make it mobile-friendly#111
Merged
Conversation
Rewrite the GitHub Pages demo with a self-contained, responsive design: - Drop Bootstrap 4-alpha, jQuery, and Tether CDN dependencies in favor of modern CSS (custom properties, grid, clamp-based fluid type). Keep the GitHub Star button. - Add a light/dark theme toggle that persists to localStorage, respects prefers-color-scheme, and applies before paint to avoid a theme flash. - Replace the jQuery/Bootstrap collapse with an accessible, React-controlled config panel that collapses on mobile; remove the window.innerWidth hack. - Responsive control grid with larger touch targets, full-width Roll All on mobile, and a re-themed dice stage and spinner. Fix the broken dev/docs builds: ts-loader defaulted to tsconfig.json, whose rootDir (lib) excludes index.tsx/src and triggered TS6059. Add tsconfig.docs.json (rootDir ".", includes lib/src/index.tsx) and point both webpack configs at it. Co-Authored-By: Claude Opus 4.8 (1M context) <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
Rewrites the GitHub Pages demo with a self-contained, responsive, mobile-first design and fixes the broken dev/docs builds.
Demo modernization
clamp()fluid type). Keeps the GitHub Star button.localStorage, respectsprefers-color-scheme, and applies before paint to avoid a theme flash. Drives the whole page via CSS variables, including the static header/footer.window.innerWidthuseEffecthack) with a React-controlled config panel (aria-expanded/aria-controls) that collapses on small screens.prefers-reduced-motionsupport.Build fix
The
npm startandnpm run docsbuilds were broken:ts-loaderdefaulted totsconfig.json, whoserootDir: ./lib(used for the npm package build) excludesindex.tsx/src, triggeringTS6059. Addstsconfig.docs.json(rootDir: ".", includeslib/src/index.tsx) and points both webpack configs at it.Verification
npm run typecheck✅npm test→ 38/38 ✅npm run docs→ compiled successfully;docs/rebuilt ✅🤖 Generated with Claude Code