Clean white theme in black and Bristol blue, move to webhook.me.uk

The landing page and the email shell drop the dark gradient look for a
white background, black text and a single Bristol blue accent. Copy is
unchanged. Email footers and docs now point at webhook.me.uk; the
dixon.cx hostnames keep working.
This commit is contained in:
Andy Dixon
2026-09-22 08:41:01 +01:00
parent 2d0f98e041
commit 07701ba9cd
6 changed files with 76 additions and 93 deletions
+32 -32
View File
@@ -266,10 +266,10 @@ var hostName = func() string {
if v := os.Getenv("PUBLIC_HOST"); v != "" {
return v
}
return "webhooks.dixon.cx"
return "webhook.me.uk"
}()
// emailShell wraps a body of sections in the shared design: stylesheet, gradient header, footer.
// emailShell wraps a body of sections in the shared design: stylesheet, header, footer.
// title and stamp must already be HTML-safe.
func emailShell(title, stamp, body, footer string) string {
if footer == "" {
@@ -314,44 +314,44 @@ const shellSrc = `<!DOCTYPE html>
<meta name="supported-color-schemes" content="light">
<title>{{.PlainTitle}}</title>
<style>
body { margin:0; padding:0; background:#0f0f17; color:#15151f; -webkit-font-smoothing:antialiased; font-family:{{.Sans}}; font-size:15px; line-height:1.6; }
a { color:#7c3aed; }
body { margin:0; padding:0; background:#f4f6fa; color:#0a0a0a; -webkit-font-smoothing:antialiased; font-family:{{.Sans}}; font-size:15px; line-height:1.6; }
a { color:#0047ab; }
table { border-collapse:separate; border-spacing:0; }
.frame { width:100%; max-width:660px; }
.hero { background:#7c3aed; background-image:linear-gradient(120deg,#8b5cf6 0%,#ec4899 55%,#f97316 100%); padding:32px 34px 28px; border-radius:20px 20px 0 0; }
.kicker { font-family:{{.Mono}}; font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:rgba(255,255,255,.75); margin:0 0 10px; }
.hero h1 { margin:0 0 14px; font-size:26px; font-weight:800; letter-spacing:-.02em; line-height:1.2; color:#ffffff; }
.stamp { display:inline-block; font-family:{{.Mono}}; font-size:12px; letter-spacing:.06em; color:#ffffff; background:rgba(15,15,23,.28); padding:6px 12px; border-radius:999px; }
.card { background:#ffffff; padding:8px 0 14px; border-radius:0 0 20px 20px; }
.section { padding:24px 34px 0; }
.section-title { font-family:{{.Mono}}; font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:#7c3aed; margin:0 0 12px; padding-left:10px; border-left:3px solid #ec4899; line-height:1.4; }
.hero { background:#ffffff; padding:30px 34px 22px; border-radius:12px 12px 0 0; border:1px solid #e3e7ef; border-bottom:0; border-top:4px solid #0047ab; }
.kicker { font-family:{{.Mono}}; font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:#0047ab; margin:0 0 10px; }
.hero h1 { margin:0 0 12px; font-size:24px; font-weight:800; letter-spacing:-.02em; line-height:1.25; color:#0a0a0a; }
.stamp { display:inline-block; font-family:{{.Mono}}; font-size:12px; letter-spacing:.04em; color:#4a4f5c; }
.card { background:#ffffff; padding:0 0 26px; border-radius:0 0 12px 12px; border:1px solid #e3e7ef; border-top:0; }
.section { padding:22px 34px 0; }
.section-title { font-family:{{.Mono}}; font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:#0047ab; margin:0 0 10px; line-height:1.4; }
.subsection { margin:14px 0 0; }
.subsection-title { font-size:13px; font-weight:700; color:#15151f; margin:16px 0 8px; }
table.metadata { width:100%; border:1px solid #e6e3f2; border-radius:12px; overflow:hidden; background:#ffffff; }
td.metadata-label, td.metadata-value { padding:11px 14px; border-bottom:1px solid #efedf7; vertical-align:top; text-align:left; }
.subsection-title { font-size:13px; font-weight:700; color:#0a0a0a; margin:16px 0 8px; }
table.metadata { width:100%; border:1px solid #e3e7ef; border-radius:8px; overflow:hidden; background:#ffffff; }
td.metadata-label, td.metadata-value { padding:10px 14px; border-bottom:1px solid #eef0f5; vertical-align:top; text-align:left; }
tr:last-child > td.metadata-label, tr:last-child > td.metadata-value { border-bottom:0; }
td.metadata-label { width:150px; max-width:170px; font-family:{{.Mono}}; font-size:12px; line-height:1.5; color:#6b6b80; background:#f8f7fd; word-break:break-word; }
td.metadata-value { font-size:14px; color:#15151f; word-break:break-word; }
td.metadata-label { width:150px; max-width:170px; font-family:{{.Mono}}; font-size:12px; line-height:1.5; color:#4a4f5c; background:#f6f8fc; word-break:break-word; }
td.metadata-value { font-size:14px; color:#0a0a0a; word-break:break-word; }
td.metadata-value table.metadata { margin:2px 0; }
.data-box { margin:0; padding:16px 18px; background:#15151f; color:#e6e6f0; border-radius:12px; border:1px solid #2a2a3a; font-family:{{.Mono}}; font-size:12.5px; line-height:1.65; white-space:pre-wrap; word-break:break-word; overflow-x:auto; }
.path-title { display:inline-block; margin:18px 0 8px; padding:5px 12px; font-family:{{.Mono}}; font-size:12px; font-weight:700; color:#be185d; background:#fdf2f8; border:1px solid #fbcfe8; border-radius:999px; }
.array-item { margin:0 0 12px; padding:16px; background:#f8f7fd; border:1px solid #e6e3f2; border-radius:14px; }
.array-item-title { font-size:14px; font-weight:800; margin:0 0 10px; color:#15151f; letter-spacing:-.01em; }
.array-item-simple { margin:0 0 6px; padding:9px 14px; background:#f8f7fd; border:1px solid #e6e3f2; border-radius:10px; font-size:14px; }
.data-box { margin:0; padding:16px 18px; background:#0a0a0a; color:#e8e8e8; border-radius:8px; font-family:{{.Mono}}; font-size:12.5px; line-height:1.65; white-space:pre-wrap; word-break:break-word; overflow-x:auto; }
.path-title { display:inline-block; margin:18px 0 8px; font-family:{{.Mono}}; font-size:12px; font-weight:700; color:#0047ab; }
.array-item { margin:0 0 12px; padding:16px; background:#f6f8fc; border:1px solid #e3e7ef; border-radius:8px; }
.array-item-title { font-size:14px; font-weight:800; margin:0 0 10px; color:#0a0a0a; letter-spacing:-.01em; }
.array-item-simple { margin:0 0 6px; padding:9px 14px; background:#f6f8fc; border:1px solid #e3e7ef; border-radius:8px; font-size:14px; }
.simple-value { font-size:14px; padding:4px 0; }
.commit-item { margin:0 0 10px; padding:12px 14px; background:#f8f7fd; border:1px solid #e6e3f2; border-radius:12px; }
.commit-item .sha { display:inline-block; font-family:{{.Mono}}; font-size:12px; font-weight:700; color:#be185d; background:#fdf2f8; border:1px solid #fbcfe8; border-radius:999px; padding:2px 9px; text-decoration:none; }
.commit-item .who { font-size:12px; color:#6b6b80; margin-left:6px; }
.commit-item .msg { margin-top:6px; font-size:14px; line-height:1.5; color:#15151f; }
.message-box { margin:12px 0; padding:16px 18px 16px 20px; background:#f8f7fd; border-left:4px solid #8b5cf6; border-radius:0 12px 12px 0; font-size:16px; line-height:1.55; color:#15151f; }
.error-box { margin:12px 0; padding:12px 14px; background:#fef2f2; border-left:4px solid #ef4444; border-radius:0 10px 10px 0; }
.footer { padding:22px 34px 8px; text-align:center; color:#6a6a86; font-family:{{.Mono}}; font-size:11px; letter-spacing:.06em; line-height:1.8; }
.footer a { color:#a78bfa; text-decoration:none; }
.footer .bolt { color:#f97316; }
.commit-item { margin:0 0 10px; padding:12px 14px; background:#f6f8fc; border:1px solid #e3e7ef; border-radius:8px; }
.commit-item .sha { display:inline-block; font-family:{{.Mono}}; font-size:12px; font-weight:700; color:#0047ab; text-decoration:none; }
.commit-item .who { font-size:12px; color:#4a4f5c; margin-left:6px; }
.commit-item .msg { margin-top:6px; font-size:14px; line-height:1.5; color:#0a0a0a; }
.message-box { margin:12px 0; padding:14px 18px; background:#eef3fb; border-left:3px solid #0047ab; border-radius:0 8px 8px 0; font-size:16px; line-height:1.55; color:#0a0a0a; }
.error-box { margin:12px 0; padding:12px 14px; background:#fef2f2; border-left:3px solid #dc2626; border-radius:0 8px 8px 0; }
.footer { padding:20px 34px 8px; text-align:center; color:#7a8090; font-family:{{.Mono}}; font-size:11px; letter-spacing:.06em; line-height:1.8; }
.footer a { color:#0047ab; text-decoration:none; }
.footer .bolt { color:#0047ab; }
</style>
</head>
<body style="margin:0;padding:0;background:#0f0f17;">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="background:#0f0f17;">
<body style="margin:0;padding:0;background:#f4f6fa;">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="background:#f4f6fa;">
<tr><td align="center" style="padding:36px 12px 28px;">
<table role="presentation" class="frame" cellpadding="0" cellspacing="0">
<tr><td class="hero">