Move gh.direct-img.link credit to a faint bottom-left watermark

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-28 03:24:00 +00:00
co-authored by Claude Opus 5.5
parent 685389eac7
commit 1bc9c6dae5
2 changed files with 27 additions and 25 deletions
+3 -2
View File
@@ -147,12 +147,12 @@ text{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Helvetica Neue',In
.m{font-family:ui-monospace,'SF Mono','JetBrains Mono',Menlo,Consolas,'DejaVu Sans Mono',monospace;font-variant-numeric:tabular-nums}
.bg{fill:#fff;stroke:#d0d7de}.fg{fill:#1f2328}.dim{fill:#656d76}.grid{stroke:#eaeef2}.axis{stroke:#d0d7de}
.ln{stroke:#bf8700}.g0{stop-color:#d4a72c;stop-opacity:.3}.g1{stop-color:#d4a72c;stop-opacity:0}.pt{fill:#fff;stroke:#bf8700;stroke-width:2.5}
.cap{letter-spacing:.14em}.lead{stroke:#8c959f;stroke-width:1;stroke-dasharray:2 3}
.cap{letter-spacing:.14em}.wm{fill:#e3e7eb}.lead{stroke:#8c959f;stroke-width:1;stroke-dasharray:2 3}
</style>
<defs><linearGradient id="a" x1="0" y1="0" x2="0" y2="1"><stop offset="0" class="g0"/><stop offset="1" class="g1"/></linearGradient></defs>
<rect class="bg" x=".5" y=".5" width="${W - 1}" height="${H - 1}" rx="14"/>
<text x="${x0 - 28}" y="62" font-size="24"><tspan class="dim">${esc(owner)} / </tspan><tspan class="fg" font-weight="700">${esc(name)}</tspan></text>
<text x="${x0 - 28}" y="90" class="dim" font-size="14">Star history · gh.direct-img.link</text>
<text x="${x0 - 28}" y="90" class="dim" font-size="14">Star history</text>
<text x="${W - 48}" y="66" text-anchor="end"><tspan class="fg" font-size="34" font-weight="700">${fmt(total)}</tspan><tspan class="dim" font-size="16"> stars</tspan></text>
${yt.map(v => `<line x1="${x0}" y1="${f1(Y(v))}" x2="${x1}" y2="${f1(Y(v))}" class="${v ? 'grid' : 'axis'}"/>
<text x="${x0 - 14}" y="${f1(Y(v) + 4.5)}" class="m dim" font-size="13" text-anchor="end">${fmt(v)}</text>`).join('\n')}
@@ -163,6 +163,7 @@ ${[[b0, 'start', 'BORN'], ...xt.map(t => [t, 'middle']), [now, 'end', 'TODAY']].
<path d="${line}" fill="none" class="ln" stroke-width="2.5" stroke-linejoin="round" stroke-linecap="round"/>
${notes.join('\n')}
${isoStar(ex, ey, S)}
<text x="18" y="${H - 14}" class="wm" font-size="10">gh.direct-img.link</text>
</svg>
`
}