Skip to content

Commit 3e3363f

Browse files
authored
readme: add dark-mode banner for GitHub UI (#379)
Vendor the README header PNG under docs/banner and add a dark variant selected via prefers-color-scheme so the banner reads well in GitHub dark mode. Made-with: Cursor Signed-off-by: Matt Gros <3311227+mpge@users.noreply.github.com>
1 parent 3229642 commit 3e3363f

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<p align="center">
2-
<a href="https://pkg.go.dev/github.com/caddyserver/certmagic?tab=doc"><img src="https://user-images.githubusercontent.com/1128849/49704830-49d37200-fbd5-11e8-8385-767e0cd033c3.png" alt="CertMagic" width="550"></a>
2+
<a href="https://pkg.go.dev/github.com/caddyserver/certmagic?tab=doc">
3+
<picture>
4+
<source media="(prefers-color-scheme: dark)" srcset="docs/banner/certmagic-banner-dark.png">
5+
<img src="docs/banner/certmagic-banner.png" alt="CertMagic" width="550">
6+
</picture>
7+
</a>
38
</p>
49
<h3 align="center">Easy and Powerful TLS Automation</h3>
510
<p align="center">The same library used by the <a href="https://caddyserver.com">Caddy Web Server</a></p>
50.4 KB
Loading

docs/banner/certmagic-banner.png

19.9 KB
Loading

0 commit comments

Comments
 (0)