-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Haarhoff
committed
Jun 21, 2024
1 parent
566445b
commit 1be82c7
Showing
3 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import mjml2html from 'mjml'; | ||
|
||
const agreementUrl = (publicUrl: string) => | ||
`${publicUrl}/members/sign-owner-agreement`; | ||
|
||
export const textEmailTemplate = (publicUrl: string) => | ||
`You've been invited to sign the MakeSpace Owner Agreement. Please log in to the Members App (${publicUrl}) and visit ${agreementUrl( | ||
publicUrl | ||
)} to sign the agreement.`; | ||
|
||
export const htmlEmailTemplate = (publicUrl: string) => | ||
mjml2html(` | ||
<mjml> | ||
<mj-body width="800px"> | ||
<mj-section background-color="#fa990e"> | ||
<mj-column> | ||
<mj-text align="center" color="#111" font-size="40px">MakeSpace</mj-text> | ||
<mj-text font-style="italic" align="center" color="#111" font-size="30px">Member App</mj-text> | ||
</mj-column> | ||
</mj-section> | ||
<mj-section> | ||
<mj-column width="400px"> | ||
<mj-text font-size="20px" line-height="1.3" color="#111" align="left"> | ||
<p>You've been invited to sign the MakeSpace Owner Agreement.</p> | ||
<ol> | ||
<li>Please log in to the <a href="${publicUrl}">Members App</a>.</li> | ||
<li>Then view and sign the agreement.</li> | ||
</ol> | ||
</mj-text> | ||
<mj-text color="#111"></mj-text> | ||
<mj-button color="#111" background-color="#7FC436" href="${agreementUrl( | ||
publicUrl | ||
)}" font-weight="800">View Agreement</mj-button> | ||
</mj-column> | ||
</mj-section> | ||
</mj-body> | ||
</mjml> | ||
`).html; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters