Repository navigation
PostHog analytics and shared OG card - #2
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Replaces the hand-built satori element (and its palette) with the shared Darkgrade card; stat tiles fold into the sub line. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Changes
PostHog. Inline posthog-js snippet in
index.html(public write-onlyphc_key,api_host: https://ph.darkgrade.com,defaults: 2025-11-30, autocapture on, session recording / surveys / dead clicks off). It sits after thetwitter:cardtag soscripts/prerender.ts's head rewrite keeps it; the builtdist/toolbench/index.htmlcontains it.OG cards.
scripts/prerender.tsnow draws each card withOgCardfrom@kevinschaich/components/og(^0.8.2), with the Darkgrade mark, the shared dust backdrop and the route's address (darkgrade.com/toolbench/...), instead of its own satori element and palette. Fonts are registered asbody(Public Sans 400),heading(Public Sans 600 and 500) andmono(Fragment Mono 400, new dependency@fontsource/fragment-mono). The stat tiles are gone: the shared card has no stats slot, so a route's stats go into the sub line ("Score 57/100 · Turns right 83% · Typical wait 2.1 s"), and routes without stats use their description.A build regenerates 41 cards (
dist/toolbench/og/). I looked at the index card and a model card: text, mark and address read cleanly over the backdrop. (0.8.1 drew the backdrop over the text; 0.8.2 fixes that.)The first commit on this branch is an earlier palette-only edit of the old card; the second replaces it. Squash on merge.
Not verified: a live pageview reaching ph.darkgrade.com (not loaded in a browser).
🤖 Generated with Claude Code