Files
minstrel/internal/mailer/templates/layout.html
T
bvandeusenandClaude Opus 5.5 7c6c47cdb2
release / go (push) Successful in 2m0s
release / web (push) Successful in 1m26s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m16s
release / android (push) Successful in 4m23s
release / Build signed APK (push) Successful in 4m52s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 17s
release / Verify release artifacts (tag releases only) (push) Skipped
feat(mailer): emails follow a light system theme, and stay dark otherwise
Every email is still drawn dark inline, so a client that can't tell the
reader's theme shows the app's own look. A stylesheet gives each coloured
element the design system's light colours when the reader's system is
light. A test checks that every element drawn dark carries the class that
lightens it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 16:15:48 -05:00

33 lines
1.4 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="dark light">
<meta name="supported-color-schemes" content="dark light">
<style>
{{lightTheme}}
</style>
</head>
<body class="{{class "page"}}" style="{{style "page"}}">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" class="{{class "wrap"}}" style="{{style "wrap"}}">
<tr><td align="center" style="padding:32px 16px;">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="max-width:560px;">
<tr><td class="{{class "brand"}}" style="{{style "brand"}}">Minstrel</td></tr>
<tr><td class="{{class "card"}}" style="{{style "card"}}">
<h1 class="{{class "heading"}}" style="{{style "heading"}}">{{.Frame.Heading}}</h1>
{{template "content" .Content}}
</td></tr>
<tr><td class="{{class "footer"}}" style="{{style "footer"}}">
Sent by {{.Frame.ServerName}} because {{.Frame.Reason}}.<br>
{{- if .Frame.NotificationSettings}}
{{with .Frame.SettingsURL}}<a href="{{.}}" class="{{class "faint"}}" style="{{style "faint"}}">Choose which notifications are emailed to you</a>{{else}}Choose which notifications are emailed to you in Minstrel, under Settings → Notifications.{{end}}<br>
{{- end}}
— Minstrel
</td></tr>
</table>
</td></tr>
</table>
</body>
</html>