refactor(server): Update system emails (#4074)

* Update email verification. And workspace invite emails.

* Footer logos

* Workspace requests

* Trial

* Misc emails

* New logo

* Updates to font, spacing and footer

* Remove space

* Update invite emails

* Correct classes
This commit is contained in:
andrewwallacespeckle
2025-03-07 15:30:03 +00:00
committed by GitHub
parent b1c22abe96
commit d1f040051d
24 changed files with 123 additions and 84 deletions
@@ -13,18 +13,15 @@ const buildMjmlBody = ({
workspace,
requester
}: WorkspaceJoinRequestApprovedEmailArgs) => {
const bodyStart = `<mj-text>
const bodyStart = `<mj-text align="center" line-height="2">
Hi ${requester.name}!
<br/>
<br/>
You are now a member of the workspace <span style="font-weight: bold;">${workspace.name}</span>.
<br/>
<br/>
</mj-text>
`
const bodyEnd = `<mj-text>
<span style="font-weight: bold;">Have questions or feedback?</span> Please write us at <a href="mailto:hello@speckle.systems" target="_blank">hello@speckle.systems</a> and we'd be more than happy to talk.
const bodyEnd = `<mj-text align="center" padding-bottom="0px" line-height="2">
<span style="font-weight: bold;">Have questions or feedback?</span><br/>Please write us at <a href="mailto:hello@speckle.systems" target="_blank">hello@speckle.systems</a> and we'd be more than happy to talk.
</mj-text>`
return { bodyStart, bodyEnd }
}
@@ -13,18 +13,15 @@ const buildMjmlBody = ({
workspace,
requester
}: WorkspaceJoinRequestDeniedEmailArgs) => {
const bodyStart = `<mj-text>
const bodyStart = `<mj-text align="center" line-height="2" >
Hi ${requester.name}!
<br/>
<br/>
Your request to join the workspace <span style="font-weight: bold;">${workspace.name}</span> was denied by the workspace admin.
<br/>
<br/>
</mj-text>
`
const bodyEnd = `<mj-text>
<span style="font-weight: bold;">Have questions or feedback?</span> Please write us at <a href="mailto:hello@speckle.systems" target="_blank">hello@speckle.systems</a> and we'd be more than happy to talk.
const bodyEnd = `<mj-text align="center" padding-bottom="0px" line-height="2">
<span style="font-weight: bold;">Have questions or feedback?</span><br/>Please write us at <a href="mailto:hello@speckle.systems" target="_blank">hello@speckle.systems</a> and we'd be more than happy to talk.
</mj-text>`
return { bodyStart, bodyEnd }
}
@@ -19,18 +19,14 @@ const buildMjmlBody = ({
requester,
workspaceAdmin
}: WorkspaceJoinRequestReceivedEmailArgs) => {
const bodyStart = `<mj-text>
const bodyStart = `<mj-text align="center" line-height="2">
Hi ${workspaceAdmin.name}!
<br/>
<br/>
<span style="font-weight: bold;">${requester.name}</span> is requesting to join your workspace <span style="font-weight: bold;">${workspace.name}</span>.
<br/>
<br/>
</mj-text>
`
const bodyEnd = `<mj-text>
<span style="font-weight: bold;">Have questions or feedback?</span> Please write us at <a href="mailto:hello@speckle.systems" target="_blank">hello@speckle.systems</a> and we'd be more than happy to talk.
const bodyEnd = `<mj-text align="center" padding-bottom="0px" line-height="2">
<span style="font-weight: bold;">Have questions or feedback?</span><br/>Please write us at <a href="mailto:hello@speckle.systems" target="_blank">hello@speckle.systems</a> and we'd be more than happy to talk.
</mj-text>`
return { bodyStart, bodyEnd }
}