Skip to content

Commit b07aef1

Browse files
committed
chore(og): bump the social preview card to v1.2.1
Only the bottom line was re-rendered (Inter 600, 24px, same colour and spacing as the original) over the card's own background rows; the mark, wordmark and tagline are untouched. The og:image:alt and twitter:image:alt texts follow it.
1 parent 1cd6d65 commit b07aef1

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎CLAUDE.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Each export also ships its dependency dataset **twice** — `dependency-graph.js
195195

196196
The domain is hardcoded in places that change together: `index.html` (canonical, OG/Twitter, JSON-LD), `public/CNAME`, `public/robots.txt`, and the `ORIGIN` constants in `scripts/prerender.mjs` and `scripts/build-pages.mjs`.
197197

198-
`public/social-preview.png` (1200x630) is the OG/Twitter card. It is a **title card, not a screenshot**: the Code-XR mark, the wordmark with `XR` in the accent, the tagline, and a `VS Code Extension · v1.2.0 · IEEE VISSOFT 2025 Distinguished Artifact` line, over the dark surface gradient. The v1.1.0 one it replaced advertised the wrong version, carried the abandoned `amontesl.github.io` URL, clipped its own text, and used the rejected neon-cyan-and-glow look. Its `og:image:alt` / `twitter:image:alt` describe the card and must be rewritten with it.
198+
`public/social-preview.png` (1200x630) is the OG/Twitter card. It is a **title card, not a screenshot**: the Code-XR mark, the wordmark with `XR` in the accent, the tagline, and a `VS Code Extension · v1.2.1 · IEEE VISSOFT 2025 Distinguished Artifact` line (the version was bumped for 1.2.1 by re-rendering only that line in Inter 600 at 24px, 12px gaps, `#a3b1bf`, over the row colours of the original), over the dark surface gradient. The v1.1.0 one it replaced advertised the wrong version, carried the abandoned `amontesl.github.io` URL, clipped its own text, and used the rejected neon-cyan-and-glow look. Its `og:image:alt` / `twitter:image:alt` describe the card and must be rewritten with it.
199199

200200
There is no script for it, deliberately: Inter is not installed system-wide, so sharp and librsvg cannot set the type. It was produced by rendering the mark (from `lib/logoPaths.js`) and the text onto a transparent canvas **in the running dev-server page**, where the real Inter is loaded and the design tokens can be read straight off `:root`, then compositing that layer over a raw-pixel gradient in sharp. Generate the gradient as raw pixels, never via canvas or an SVG gradient: both dither the ramp and the noise takes the PNG from 28 KB to 162 KB.
201201

‎index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<meta property="og:image:height" content="630" />
5757
<meta
5858
property="og:image:alt"
59-
content="Code-XR title card: the Code-XR mark and wordmark over the tagline &quot;Code analysis you can walk through&quot;, with VS Code Extension, v1.2.0 and IEEE VISSOFT 2025 Distinguished Artifact."
59+
content="Code-XR title card: the Code-XR mark and wordmark over the tagline &quot;Code analysis you can walk through&quot;, with VS Code Extension, v1.2.1 and IEEE VISSOFT 2025 Distinguished Artifact."
6060
/>
6161

6262
<meta name="twitter:card" content="summary_large_image" />
@@ -71,7 +71,7 @@
7171
/>
7272
<meta
7373
name="twitter:image:alt"
74-
content="Code-XR title card: the Code-XR mark and wordmark over the tagline &quot;Code analysis you can walk through&quot;, with VS Code Extension, v1.2.0 and IEEE VISSOFT 2025 Distinguished Artifact."
74+
content="Code-XR title card: the Code-XR mark and wordmark over the tagline &quot;Code analysis you can walk through&quot;, with VS Code Extension, v1.2.1 and IEEE VISSOFT 2025 Distinguished Artifact."
7575
/>
7676

7777
<script type="application/ld+json">

‎public/social-preview.png‎

15.6 KB
Loading

0 commit comments

Comments
 (0)