docs(tutorial): add Building the Frontend section to Clown Beatdown#134
Merged
mHaines9219 merged 3 commits intomainfrom Mar 25, 2026
Merged
docs(tutorial): add Building the Frontend section to Clown Beatdown#134mHaines9219 merged 3 commits intomainfrom
mHaines9219 merged 3 commits intomainfrom
Conversation
Add a new tutorial section covering the React frontend: - Ch 1: Project setup with Vite, seismic-react, wagmi, RainbowKit provider stack - Ch 2: Contract hooks with twrite/read/tread namespace explanation - Ch 3: Game UI components (clown sprite, action buttons, wallet connect)
…er code Replace all simplified/idealized code snippets with exact source from seismic-starter repo. Key fixes: - App.tsx: correct imports, chain config, ShieldedWalletProvider props, onAddressChange handler, BrowserRouter routing - Add main.tsx with ThemeProvider, Redux, ToastContainer setup - useContract: import * as with type assertion, arrow function - useContractClient: useState/useEffect for loaded, helper functions, Hex types, hexToString for rob(), txUrl/addressUrl - useGameActions: fetchGameRounds, resetGameState, promise chains with toast notifications, ExplorerToast - ShowClown: useAnimation hook, useMemo, clown_shaking.png - ButtonContainer: type not interface, handleX props, Box ActionButton, responsive sx styling - ClownPuncher: useRef round tracking, onRob validation, Backdrop+Fade splash screens, responsive Container layout - EntryScreen: onEnter prop, isAnimating, cblogo.png - WalletConnectButton: full ConnectButton.Custom, WalletIcon SVG - Add public assets copy instruction referencing seismic-starter repo
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
seismic-starterrepo — no simplified/idealized codeTest plan