|
| 1 | +<!doctype html> |
| 2 | +<!-- |
| 3 | + Source for public/og.png, the social link-preview card. |
| 4 | +
|
| 5 | + Rendered rather than hand-drawn so it cannot drift from the site: every colour and font below is |
| 6 | + copied from the same tokens Layout.astro defines. |
| 7 | +
|
| 8 | + There is deliberately no `pnpm run og` script. Playwright is not a dependency of this repo and |
| 9 | + adding a browser to the dependency tree to regenerate a file that changes about twice a year is a |
| 10 | + bad trade — it would also put ~500 lines into pnpm-lock.yaml, the fork's second-worst |
| 11 | + rebase-conflict surface. To regenerate: |
| 12 | +
|
| 13 | + 1. Open this file in a browser at exactly 1200x630 and wait for the webfonts. |
| 14 | + 2. Screenshot the viewport to public/og.png. |
| 15 | + 3. Quantise it — the raw shot is ~148 KB and WhatsApp gets unreliable past a few hundred KB: |
| 16 | + ffmpeg -i og.raw.png -vf palettegen=max_colors=192 pal.png |
| 17 | + ffmpeg -i og.raw.png -i pal.png -lavfi paletteuse=dither=sierra2_4a og.png |
| 18 | +
|
| 19 | + Keep it 1200x630. Layout.astro publishes those exact numbers as og:image:width/height, and a |
| 20 | + mismatch makes some unfurlers letterbox or drop the card. |
| 21 | +--> |
| 22 | +<html lang="en"> |
| 23 | + <head> |
| 24 | + <meta charset="UTF-8" /> |
| 25 | + <link rel="preconnect" href="https://fonts.googleapis.com" /> |
| 26 | + <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> |
| 27 | + <link |
| 28 | + href="https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500&display=swap" |
| 29 | + rel="stylesheet" |
| 30 | + /> |
| 31 | + <style> |
| 32 | + :root { |
| 33 | + --bg: #09090b; |
| 34 | + --fg: #fafafa; |
| 35 | + --fg-muted: #a1a1aa; |
| 36 | + --fg-dim: #71717a; |
| 37 | + --border: rgba(255, 255, 255, 0.08); |
| 38 | + --accent-h: 150; |
| 39 | + --accent: oklch(0.68 0.17 var(--accent-h)); |
| 40 | + --font-sans: "DM Sans", -apple-system, system-ui, sans-serif; |
| 41 | + --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace; |
| 42 | + } |
| 43 | + |
| 44 | + * { |
| 45 | + margin: 0; |
| 46 | + padding: 0; |
| 47 | + box-sizing: border-box; |
| 48 | + } |
| 49 | + |
| 50 | + html, |
| 51 | + body { |
| 52 | + width: 1200px; |
| 53 | + height: 630px; |
| 54 | + } |
| 55 | + |
| 56 | + body { |
| 57 | + position: relative; |
| 58 | + overflow: hidden; |
| 59 | + background: var(--bg); |
| 60 | + color: var(--fg); |
| 61 | + font-family: var(--font-sans); |
| 62 | + display: flex; |
| 63 | + flex-direction: column; |
| 64 | + justify-content: center; |
| 65 | + padding: 0 88px; |
| 66 | + } |
| 67 | + |
| 68 | + /* The hero's grid + radial mask, at card scale. */ |
| 69 | + .grid { |
| 70 | + position: absolute; |
| 71 | + inset: 0; |
| 72 | + background-image: |
| 73 | + linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px), |
| 74 | + linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px); |
| 75 | + background-size: 48px 48px; |
| 76 | + mask-image: radial-gradient(ellipse 80% 70% at 30% 45%, black 40%, transparent 100%); |
| 77 | + -webkit-mask-image: radial-gradient( |
| 78 | + ellipse 80% 70% at 30% 45%, |
| 79 | + black 40%, |
| 80 | + transparent 100% |
| 81 | + ); |
| 82 | + } |
| 83 | + |
| 84 | + .glow { |
| 85 | + position: absolute; |
| 86 | + top: -220px; |
| 87 | + right: -180px; |
| 88 | + width: 720px; |
| 89 | + height: 720px; |
| 90 | + border-radius: 50%; |
| 91 | + background: radial-gradient(circle, oklch(0.68 0.17 150 / 0.16), transparent 62%); |
| 92 | + } |
| 93 | + |
| 94 | + .content { |
| 95 | + position: relative; |
| 96 | + z-index: 1; |
| 97 | + max-width: 880px; |
| 98 | + } |
| 99 | + |
| 100 | + .eyebrow { |
| 101 | + display: inline-flex; |
| 102 | + align-items: center; |
| 103 | + gap: 10px; |
| 104 | + font-family: var(--font-mono); |
| 105 | + font-size: 20px; |
| 106 | + letter-spacing: 0.04em; |
| 107 | + color: var(--fg-dim); |
| 108 | + margin-bottom: 34px; |
| 109 | + } |
| 110 | + |
| 111 | + .dot { |
| 112 | + width: 9px; |
| 113 | + height: 9px; |
| 114 | + border-radius: 50%; |
| 115 | + background: var(--accent); |
| 116 | + } |
| 117 | + |
| 118 | + h1 { |
| 119 | + font-size: 82px; |
| 120 | + line-height: 1.03; |
| 121 | + letter-spacing: -0.035em; |
| 122 | + font-weight: 600; |
| 123 | + } |
| 124 | + |
| 125 | + h1 .mark { |
| 126 | + color: var(--accent); |
| 127 | + } |
| 128 | + |
| 129 | + p { |
| 130 | + margin-top: 30px; |
| 131 | + font-size: 28px; |
| 132 | + line-height: 1.45; |
| 133 | + color: var(--fg-muted); |
| 134 | + max-width: 760px; |
| 135 | + } |
| 136 | + |
| 137 | + .foot { |
| 138 | + position: absolute; |
| 139 | + left: 88px; |
| 140 | + right: 88px; |
| 141 | + bottom: 54px; |
| 142 | + z-index: 1; |
| 143 | + display: flex; |
| 144 | + align-items: center; |
| 145 | + justify-content: space-between; |
| 146 | + font-family: var(--font-mono); |
| 147 | + font-size: 21px; |
| 148 | + color: var(--fg-dim); |
| 149 | + border-top: 1px solid var(--border); |
| 150 | + padding-top: 26px; |
| 151 | + } |
| 152 | + </style> |
| 153 | + </head> |
| 154 | + <body> |
| 155 | + <div class="grid"></div> |
| 156 | + <div class="glow"></div> |
| 157 | + |
| 158 | + <div class="content"> |
| 159 | + <div class="eyebrow"><span class="dot"></span>a personal fork of T3 Code</div> |
| 160 | + <h1><span class="mark">Coil.</span><br />T3 Code, the way<br />I actually run it.</h1> |
| 161 | + <p>Everything upstream ships, plus the things I wanted sooner. Rebased daily.</p> |
| 162 | + </div> |
| 163 | + |
| 164 | + <div class="foot"> |
| 165 | + <span>coil.curlycloud.dev</span> |
| 166 | + <span>Curly Cloud</span> |
| 167 | + </div> |
| 168 | + </body> |
| 169 | +</html> |
0 commit comments