Repository navigation
Conversation
Adds /x-qr-code, a landing page that reuses the demo with an X preset (rounded modules, X logo, "Follow @handle" frame) and a handle input that updates the QR value and frame text. Every demo setting stays adjustable. Demo now accepts initialProps, downloadName and a header slot so presets don't duplicate it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kn4UFgQdRskiPPqCy4sQjo
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Requested by Greg · project thread
Before: the docs site had only the generic demo, with nothing for people who want a QR code for their X profile.
After: a new
/x-qr-codepage offers an "X (Twitter) QR Code Generator". It has an @handle field that updates the QR value (https://x.com/handle) and the "Follow @handle" frame text. Below that is the full demo, preset with rounded modules, the X logo and a banner frame, and every setting stays adjustable. The page also has a "Where to use it" list, a code snippet for developers and an FAQ with FAQPage structured data. It is linked in the sidebar under Getting Started and added to the sitemap.The demo isn't duplicated.
Demonow takesinitialProps,downloadNameand aheaderslot, so/demois unchanged and future presets only need a props object.How: the handle input accepts
handle,@handleor a pasted profile URL (query strings are stripped). The X logo is a newpublic/images/x-logo.svg. Verified with lint, format check, 191 tests and docsnext build. A headless browser check also passed: a pastedhttps://x.com/LGLabGreg?s=21resolves to@LGLabGreg, the PNG downloads asx-qr-code.pngand decodes tohttps://x.com/LGLabGreg, and/demostill starts on reactqrcode.com.Worth checking before merge: the FAQ says the X apps no longer have a built-in profile QR code. That comes from 2024 guides; X's help page still describes the feature.
Generated by Claude Code