feat(web): add interactive xterm.js terminal demo to landing page#127
Open
riyapetle wants to merge 1 commit into
Open
feat(web): add interactive xterm.js terminal demo to landing page#127riyapetle wants to merge 1 commit into
riyapetle wants to merge 1 commit into
Conversation
|
@riyapetle is attempting to deploy a commit to the pie's projects Team on Vercel. A member of the Team first needs to authorize it. |
Author
|
Hii @pie-314
The automated checks (build and linter) have passed successfully, and local testing confirms the component behaves as expected. This is approved and ready to be merged. closes #62 |
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.
Description
This PR integrates a live, interactive terminal demo into the TRX web landing page using
xterm.js. This allows visitors to experience the look and feel of the TRX package manager directly from their browser without needing to install anything locally first.Key Features & Changes
xterm.jsthat fits flawlessly into the Next.jspage.tsxlayout.$ trx neovimwith randomized, realistic keystroke delays.\x1b[32m,\x1b[36m, etc.) to replicate TRX's CLI formatting with green checkmarks and colored metadata.xterm.js(which relies on browserwindowAPIs) by isolating the terminal logic in aTrxDemoTerminalcomponent and loading it dynamically with{ ssr: false }viaTrxDemoWrapper.AbortControllerlogic to empower users to interrupt or restart the animation dynamically.How to Verify
git checkout RiyaCommits2cd trx-webnpm installnpm run devhttp://localhost:3000and observe the terminal demo below the hero section!Closes #62