feat(share): Instagram Story format export#3
Merged
Conversation
Add a 1080×1920 (9:16) story-format download/share so users can post their card to Instagram Stories. - StoryFrame.tsx: branded 1080×1920 canvas wrapping PlayerCard (GITFUT wordmark, tier glow, archetype + handle), theme-aware. - ResultView.tsx: mount one hidden StoryFrame off-screen so its art and fonts paint/decode for capture (same technique as lib/capture.ts). - CardActions.tsx: "Story format" action — captures the frame at pixelRatio 1 (already native res). On mobile it opens the native share sheet with the image attached (one tap into IG Stories); on desktop it downloads the PNG. A dismissed/failed share falls back to download so the action never leaves the user empty-handed. Reuses the existing html-to-image capture pipeline — no new API route or dependency.
Rework the Instagram-Story frame so a developer who has never seen GitFut
instantly gets the concept and wants their own card.
- Concept-first top stack: GITFUT + "YOUR GITHUB, SCOUTED" sets the frame
before the eye reaches the card.
- Active CTA: "TRY YOUR CARD ON GITFUT.COM →" in brand green, one line,
replacing the passive personal gitfut.com/{login} dead-end.
- IG safe zones: wordmark + CTA pinned inside y:250–1670 so Instagram's
top/bottom chrome never occludes them; card ~606px, optically centred.
- Figure/ground fix: neutral near-black stage with only a faint tier
room-tint + a rim-glow / dark-moat / drop-shadow separator around the
card, so it lifts off the background on every finish (red-on-red,
grey-on-grey, navy-on-navy) instead of dissolving into a same-hue wash.
- Archetype is the card's one-line caption (length-clamped, tier accent).
Verified across all 7 finishes + founder + a long-archetype edge case;
PlayerCard is untouched (the FUT homage stays intact).
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
Adds a 1080×1920 (9:16) Instagram Story format download/share, redesigned so a developer who has never seen GitFut instantly understands the concept and wants to make their own card.
A "Story format" button sits in the share actions under the card:
{login}-gitfut-story.png.Design (cold-viewer conversion)
Optimized for the funnel "stranger-developer sees this in a story → gets it → makes their own":
GITFUT+YOUR GITHUB, SCOUTEDframes the card before the eye reaches it.TRY YOUR CARD ON GITFUT.COM →in brand green (replaces the passive personal-URL dead-end). Bookends the green wordmark.PlayerCardis untouched — the FUT homage stays intact; all changes are inStoryFrame.tsx+ its capture path.How it works
Reuses the existing
html-to-imagecapture pipeline — no new API route or dependency. The hiddenStoryFramemounts off-screen inResultViewso its art/fonts decode for capture (same technique aslib/capture.ts); captured atpixelRatio: 1(already native res).Test plan
npm run buildpasses (TypeScript clean)html-to-imageexport verified at exactly 1080×1920, no dev-mode artifacts