Skip to content

docs: add X (Twitter) QR code generator page - #654

Closed
LGLabGreg wants to merge 1 commit into
mainfrom
claude/project-thread-7ddazs
Closed

LGLabGreg wants to merge 1 commit into
mainfrom
claude/project-thread-7ddazs

Conversation

@LGLabGreg

Copy link
Copy Markdown
Owner

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-code page 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. Demo now takes initialProps, downloadName and a header slot, so /demo is unchanged and future presets only need a props object.

How: the handle input accepts handle, @handle or a pasted profile URL (query strings are stripped). The X logo is a new public/images/x-logo.svg. Verified with lint, format check, 191 tests and docs next build. A headless browser check also passed: a pasted https://x.com/LGLabGreg?s=21 resolves to @LGLabGreg, the PNG downloads as x-qr-code.png and decodes to https://x.com/LGLabGreg, and /demo still 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

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
@vercel

vercel Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
reactqrcode-com Ready Ready Preview Oct 12, 2026 10:58am UTC

Request Review

@LGLabGreg LGLabGreg self-assigned this Oct 12, 2026
@LGLabGreg LGLabGreg closed this Oct 12, 2026

This branch was successfully deployed

1 active deployment
Preview — c25da02c Deployed Oct 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants