Skip to content

Commit b91e466

Browse files
flambohclaude
andauthored
feat(marketing): replace the screenshot crop with a designed social card (pingdotgg#13487)
Co-authored-by: Claude Opus 5.5 <[email protected]>
1 parent bed69f6 commit b91e466

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

177 KB
Loading

‎apps/marketing/src/layouts/Layout.astro‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import { getImage, Image } from "astro:assets";
33
import appIcon from "../assets/icon.webp";
4-
import desktopScreenshot from "../assets/app-desktop.webp";
4+
import socialCard from "../assets/social-card.webp";
55
import dmSansLatinUrl from "../assets/fonts/dm-sans-latin.woff2?url";
66
import "../styles/fonts.css";
77
import {
@@ -23,19 +23,19 @@ const {
2323
pageClass,
2424
} = Astro.props;
2525
26-
// Social preview card. Link unfurlers (Instagram, iMessage, X, Slack) want a
27-
// 1200x630 jpg or png at an absolute URL. Built from the hero screenshot so it
28-
// stays in sync with the homepage.
26+
// Social preview card, shared by og:image and twitter:image. Link unfurlers
27+
// (Instagram, iMessage, X, Slack) want a 1200x630 jpg or png at an absolute URL.
28+
// The source is a 2x export so the downscale stays sharp.
2929
const socialImage = await getImage({
30-
src: desktopScreenshot,
30+
src: socialCard,
3131
width: 1200,
3232
height: 630,
33-
fit: "cover",
34-
position: "top",
3533
format: "jpg",
3634
quality: 90,
3735
});
3836
const socialImageUrl = new URL(socialImage.src, Astro.site);
37+
const socialImageAlt =
38+
"T3 Code: the open-source control plane for coding agents, with Claude Code, Codex, Cursor, OpenCode, Grok and Antigravity.";
3939
const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
4040
---
4141

@@ -53,12 +53,13 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
5353
<meta property="og:image" content={socialImageUrl} />
5454
<meta property="og:image:width" content="1200" />
5555
<meta property="og:image:height" content="630" />
56-
<meta property="og:image:alt" content="The T3 Code desktop app with a thread open." />
56+
<meta property="og:image:alt" content={socialImageAlt} />
5757
<meta name="twitter:card" content="summary_large_image" />
5858
<meta name="twitter:site" content="@t3dotgg" />
5959
<meta name="twitter:title" content={title} />
6060
<meta name="twitter:description" content={description} />
6161
<meta name="twitter:image" content={socialImageUrl} />
62+
<meta name="twitter:image:alt" content={socialImageAlt} />
6263
<link
6364
rel="preload"
6465
href={dmSansLatinUrl}

0 commit comments

Comments
 (0)