fix(frontend): give the embed snippet somewhere to paste.

The result screen ended at the snippet and a copy button. GitHub only
renders a profile README from the repo named exactly after the account,
and 15 of 23 arrivals did not have that repo, so the copy button was a
dead end for most people. Add two links under the snippet: open the
README, or create the repo.

Also serve a placeholder card instead of a JSON 400 when someone pastes
the README snippet without swapping YOUR_USERNAME for their own name,
and show a live example card in the README.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BwMoSbmK77Ph7XaV5YnAdS
This commit is contained in:
shay
2026-08-25 08:10:32 -07:00
co-authored by Claude Opus 5
parent 27645048f1
commit a25ae33f29
6 changed files with 42 additions and 1 deletions
+4
View File
@@ -8,6 +8,10 @@ your account, charts your contribution timeline, highlights your top
collaborators, breaks down your languages, tracks your commit streaks,
and earns you tags like `Backend`, `ML`, or `Founder #42`.
[![example card](https://gh-stats.com/api/shaymanor)](https://gh-stats.com)
That card is live, not a screenshot. Swap in your own username:
```md
![my stats](https://gh-stats.com/api/YOUR_USERNAME)
```