Repository navigation
Conversation
Replace the list of static examples with a site that shows the element doing its job: a self-playing Opera Game in the hero (every ply is a board.move call), a playground with attribute toggles, preset positions, a FEN field and a size slider that write the matching markup, an API console that runs each property and method against a live board and logs the result or the thrown error, and a sizing section with an inline board. Light and dark colour schemes, reduced motion respected. The page is index.html with demo/demo.css and demo/demo.js; Vite builds it as before, so the Pages and preview workflows are unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014hfUBeWECmYHCYf7BpgawG
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014hfUBeWECmYHCYf7BpgawG
|
Preview for 3763e27: https://2e17724f.chess-board-4mh.pages.dev Branch alias (always the latest push): https://claude-web-component-demo-si.chess-board-4mh.pages.dev |
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
A new demo site for
<chess-board>, replacing the list of static examples inindex.html. The Preview workflow will post a Cloudflare Pages URL for this branch.The page
board.move(from, to)call on the same element; castling is two. Play/pause, step and jump controls, a chess-book style move list you can click into, and it pauses when scrolled out of view. Autoplay is skipped underprefers-reduced-motion.frame,reverseandunicode, preset positions (start, Scholar's mate, Opera Game and Immortal Game finals, Lucena, empty), a FEN field that reports what the parser rejects, and a size slider. The matching markup is generated live with a copy button.z9). Attribute and piece reference tables follow.Design
The board's wood colours are fixed by the component, so the page is the table it sits on: felt green bands top and bottom with a faint checker texture, buff paper in between, the board's own wood as the only accent (current move, play button). Bricolage Grotesque for headings, Source Serif 4 for text and the move list, JetBrains Mono for code, loaded from Google Fonts with local fallbacks. Light and dark colour schemes, keyboard focus styles, and a responsive layout down to phone widths.
Files
index.htmlrewritten; styles and script moved todemo/demo.cssanddemo/demo.js(plain ES module, imports the component fromsrc/sopnpm devstays live).public/favicon.svg: the knight on a wood tile.readme.md: one paragraph on where the demo lives.The build (
pnpm build:pages), Pages and preview workflows are unchanged.pnpm typecheckandpnpm testpass. Checked in headless Chromium at 1360px and 390px, light and dark.Follow-ups filed while building this
::parton squares for last-move highlights)🤖 Generated with Claude Code
https://claude.ai/code/session_014hfUBeWECmYHCYf7BpgawG
Generated by Claude Code