feat: Updated email templates

This commit is contained in:
2026-09-10 12:06:29 +00:00
parent 059949674d
commit e1ad2467d2
34 changed files with 896 additions and 163 deletions
+20 -3
View File
@@ -1,8 +1,25 @@
{{define "category"}}Instance{{end}}
{{define "preheader"}}{{.InstanceName}} is live. Your Free licence runs until {{date .Expires}}.{{end}}
{{define "pill"}}{{template "chip" (dict "label" "Ready" "tone" "up")}}{{end}}
{{define "title"}}{{.InstanceName}} is ready{{end}}
{{define "body"}}
{{template "lead" (printf "%s is provisioned and waiting for you." .InstanceName)}}
{{if .LoginURL}}{{template "button" (dict "label" "Sign in" "url" .LoginURL)}}{{end}}
{{template "p" (printf "Your Free licence runs until %s. We will email you before then so you can renew it in one click." (date .Expires))}}
{{template "p" "Sign in with the same email address and password you use for your Vantage account. Changing your Vantage HQ password changes it here too."}}
{{if .LoginURL}}{{template "button" (dict "label" (printf "Sign in to %s" .InstanceName) "url" .LoginURL)}}{{end}}
{{template "stats" (list
(dict "big" "Free" "label" "plan" "tone" "accent")
(dict "big" (plural (daysUntil .Expires) "day" "days") "label" (printf "until renewal, on %s" (shortDate .Expires)) "tone" "up"))}}
{{if .LoginURL}}{{template "rows" (list
(dict "k" "Instance" "v" .InstanceName)
(dict "k" "Address" "v" .LoginURL)
(dict "k" "Licence expires" "v" (date .Expires)))}}{{else}}{{template "rows" (list
(dict "k" "Instance" "v" .InstanceName)
(dict "k" "Licence expires" "v" (date .Expires)))}}{{end}}
{{template "label" "Get started"}}
{{template "steps" (list
(dict "t" "Sign in" "d" "Use your Vantage account email and password.")
(dict "t" "Connect your first server" "d" "Install the Vantage agent on a server and it joins your fleet.")
(dict "t" "Add monitors and alerts" "d" "Watch the services that matter and choose who hears when they fail."))}}
{{template "callout" (dict "tone" "accent" "title" "One password for everything" "text" "Sign in with the same email address and password you use for your Vantage account. Changing your Vantage HQ password changes it here too.")}}
{{template "small" "We will email you a week before the licence runs out, so you can renew it in one click."}}
{{end}}
{{define "why"}}you created {{.InstanceName}} in Vantage HQ.{{end}}