Skip to content

Design: social preview image and Open Graph tags - #85

Merged
Luen merged 1 commit into
mainfrom
social-preview
Nov 2, 2026
Merged

Luen merged 1 commit into
mainfrom
social-preview

Conversation

@Luen

@Luen Luen commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Closes #30. Stacked on #82, because it uses the Physioshark logo added there. Merge #82 first; this PR then retargets to main.

What

  • scripts/make-social-preview.mjs (pnpm social-preview) uses Playwright's Chromium to render:
    • static/og-image.png (1200×630), used as og:image and twitter:image.
    • docs/social-preview.png (1280×640), for the GitHub repo's Settings → Social preview. Uploading it needs repo admin, so it has to be done by hand.
  • The design: the Physioshark logo with the DATA chip, the hero line "Thirteen seasons of baby sharks, in numbers", and a decorative two-tide wave over the deep-ocean gradient. It contains no data numbers, so it never goes stale.
  • The layout now sets og:title / description / url / image (with alt text) and twitter:card=summary_large_image on every page. Page titles feed og:title.

Checks

pnpm lint, pnpm check, pnpm build and pnpm test:e2e (29 passed) all pass.

🤖 Generated with Claude Code

@Luen
Luen added this pull request to stack #89 November 2, 2026 23:11
Base automatically changed from branding-logo-version to main November 2, 2026 23:16
scripts/make-social-preview.mjs renders static/og-image.png (og:image,
1200x630) and docs/social-preview.png (GitHub repo preview, 1280x640) with
Playwright. The layout now sets og:* and twitter:card tags per page.

Closes #30

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Luen
Luen merged commit 5c1271e into main Nov 2, 2026
5 checks passed
@Luen
Luen deleted the social-preview branch November 2, 2026 23:20
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.

Design: social preview image (og:image / GitHub social preview)

1 participant