Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
curl -sfI "http://localhost:7000$ASSET" > /dev/null || (echo "bundle $ASSET not served" && exit 1)
# public/ has to survive the build into the image: nothing else would
# catch the favicons and the social card quietly going missing.
for f in /favicon.ico /favicon.svg /og-v1.png /site.webmanifest; do
for f in /favicon.ico /favicon.svg /og-v2.png /site.webmanifest; do
curl -sfI "http://localhost:7000$f" > /dev/null || (echo "static asset $f not served" && exit 1)
done
docker stop orbital-smoke
Expand Down
57 changes: 22 additions & 35 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,27 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

<!-- Open Graph -->
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Sentry" />
<meta property="og:url" content="https://live.sentry.io/" />
<meta property="og:title" content="Sentry Live" />
<meta property="og:description" content="Sentry telemetry command center" />
<meta property="og:locale" content="en_US" />
<meta property="og:image" content="https://live.sentry.io/og-v2.png" />
<meta property="og:image:secure_url" content="https://live.sentry.io/og-v2.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="The Sentry logo over a pixelated Earth rising out of a starfield, with a LIVE indicator in the corner." />

<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Sentry Live" />
<meta name="twitter:description" content="Sentry telemetry command center" />
<meta name="twitter:image" content="https://live.sentry.io/og-v2.png" />
<meta name="twitter:image:alt" content="The Sentry logo over a pixelated Earth rising out of a starfield, with a LIVE indicator in the corner." />

<title>Sentry Live</title>
<meta name="description" content="Sentry telemetry command center" />
<link rel="canonical" href="https://live.sentry.io/" />
Expand All @@ -21,41 +42,7 @@
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />

<!-- Social cards. The image URL has to be absolute — a scraper has no page
to resolve a relative one against — and is versioned in its filename
because most of them cache the old image indefinitely otherwise.
og:image is the only one declared: a second one makes the choice the
scraper's rather than ours. -->
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Sentry" />
<meta property="og:url" content="https://live.sentry.io/" />
<meta property="og:title" content="Sentry Live" />
<meta property="og:description" content="Sentry telemetry command center" />
<meta property="og:image" content="https://live.sentry.io/og-v1.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta
property="og:image:alt"
content="The Sentry logo over a pixelated Earth rising out of a starfield, with a LIVE indicator in the corner."
/>

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Sentry Live" />
<meta name="twitter:description" content="Sentry telemetry command center" />
<meta name="twitter:image" content="https://live.sentry.io/og-v1.png" />
<meta
name="twitter:image:alt"
content="The Sentry logo over a pixelated Earth rising out of a starfield, with a LIVE indicator in the corner."
/>

<link
rel="preload"
href="/fonts/DepartureMono-Regular.otf"
as="font"
type="font/otf"
crossorigin
/>
<link rel="preload" href="/fonts/DepartureMono-Regular.otf" as="font" type="font/otf" crossorigin />
</head>
<body>
<div id="root"></div>
Expand Down
File renamed without changes
13 changes: 12 additions & 1 deletion tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,20 @@ down rather than swapped for a simpler drawing.
`png.mjs` is a dependency-free PNG encoder/decoder plus an `.ico` packer. It
exists so this repo can write image files without taking on a dependency.

## A note on the social tags

`index.html` keeps every `og:` and `twitter:` tag on a single line, in one
contiguous block near the top of `<head>`, with only short comments around them.
That is deliberate. Slackbot reads just the first 32KB of a document, not every
scraper parses HTML properly, and `og:image:alt` is a sub-property of
`og:image` — a tag wrapped across lines, or a stray property interrupting the
image group, is the sort of thing a line-oriented parser drops the image over.
An HTML comment also may not contain a double hyphen, so keep the prose here
rather than in the head.

## The social card

`og.html` builds `public/og-v1.png`, the 1200×630 card. Start the dev server,
`og.html` builds `public/og-v2.png`, the 1200×630 card. Start the dev server,
open <http://localhost:5190/tools/og.html>, and use the download link.

It composites rather than screenshots. The app fits the planet to the viewport,
Expand Down
8 changes: 4 additions & 4 deletions tools/og.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Sentry Live — OG builder</title>
<!--
Builds public/og-v1.png, the 1200x630 social card.
Builds public/og-v2.png, the 1200x630 social card.

DEVELOPMENT ONLY. Nothing under tools/ reaches anyone: Vite copies only
public/ into static/, main.go serves only static/, the runtime image is FROM
Expand All @@ -14,7 +14,7 @@
else.

Run the dev server and open http://localhost:5190/tools/og.html, then use the
download link and save over public/og-v1.png.
download link and save over public/og-v2.png.

?plate=atlantic|americas|eurasia|pacific which hemisphere faces the camera

Expand Down Expand Up @@ -196,8 +196,8 @@
const blob = await new Promise((r) => c.toBlob(r, "image/png"));
window.__og = blob;
status.innerHTML = `${PLATE} · ${c.width}x${c.height}, ${(blob.size / 1024).toFixed(0)} KB — ` +
`<a href="${URL.createObjectURL(blob)}" download="og-v1.png">download og-v1.png</a> ` +
`<span class="dim">then save it over public/og-v1.png</span>`;
`<a href="${URL.createObjectURL(blob)}" download="og-v2.png">download og-v2.png</a> ` +
`<span class="dim">then save it over public/og-v2.png</span>`;
document.getElementById("plates").innerHTML =
["atlantic", "americas", "eurasia", "pacific"]
.map((p) => p === PLATE ? `<b>${p}</b>` : `<a href="?plate=${p}">${p}</a>`)
Expand Down
Loading