-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #421 from huwshimi/verification-email-template
WD-15024 - feat: add user invite email template
- Loading branch information
Showing
6 changed files
with
79 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ make build | |
``` | ||
|
||
This will build all templates to the `internal/mail/html` directory and sync the | ||
images. | ||
images. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,6 @@ | ||
<mj-attributes> | ||
<mj-text padding="0" /> | ||
<mj-all font-family="'Ubuntu variable', Ubuntu, Arial, 'libra sans', sans-serif" font-size="16px" color="#000" font-weight="300" line-height="24px" /> | ||
<mj-button border-radius="0" background-color="#0C8420" color="#fff" inner-padding="6.4px 16px" /> | ||
<mj-section padding="32px" /> | ||
</mj-attributes> |
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,8 @@ | ||
<mj-section background-color="#F7F7F7" padding="32px 24px"> | ||
<mj-column> | ||
<mj-text font-size="14px" color="#666666">You are receiving this email because you are a user of Canonical | ||
Identity Platform.</mj-text> | ||
<mj-text font-size="14px" color="#666666">If you're not sure why you're receiving this please contact | ||
support.</mj-text> | ||
</mj-column> | ||
</mj-section> |
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,5 @@ | ||
<mj-section background-color="#242424" padding="0 0 18px 32px"> | ||
<mj-column> | ||
<mj-image padding="0" align="left" width="130px" src="./images/canonical.jpg"></mj-image> | ||
</mj-column> | ||
</mj-section> |
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,59 @@ | ||
<mjml> | ||
<mj-head> | ||
<mj-include path="./includes/defaults.mjml" /> | ||
<mj-style> | ||
@font-face { | ||
font-family: 'Ubuntu variable'; | ||
font-stretch: 100%; | ||
font-style: normal; | ||
font-weight: 100 800; | ||
src: url('https://assets.ubuntu.com/v1/f1ea362b-Ubuntu%5Bwdth,wght%5D-latin-v0.896a.woff2') format('woff2-variations'); | ||
} | ||
|
||
a, | ||
a:hover, | ||
a:visited, | ||
a:focus { | ||
color: #0066cc; | ||
text-decoration: none; | ||
} | ||
</mj-style> | ||
</mj-head> | ||
<mj-body background-color="#F3F4F8"> | ||
<mj-wrapper padding="32px"> | ||
<mj-include path="./includes/header.mjml" /> | ||
<mj-section padding-bottom="8px" background-color="#fff"> | ||
<mj-column> | ||
<mj-text font-size="24px" font-weight="275">Verify your account</mj-text> | ||
</mj-column> | ||
</mj-section> | ||
<mj-section background-color="#fff" padding-bottom="24px"> | ||
<mj-column width="30%" padding-bottom="8px"> | ||
<mj-text font-weight="400">Account</mj-text> | ||
</mj-column> | ||
<mj-column width="70%" padding-bottom="8px"> | ||
<mj-text>{{ .Email }}</mj-text> | ||
</mj-column> | ||
</mj-section> | ||
<mj-section padding-top="0" background-color="#fff" padding-bottom="12px"> | ||
<mj-column width="30%"> | ||
<mj-text font-weight="400" padding-bottom="8px">Verification code</mj-text> | ||
</mj-column> | ||
<mj-column width="70%"> | ||
<mj-text font-size="24px" padding-bottom="8px" font-weight="275" line-height="32px">{{slice .RecoveryCode 0 3}} {{slice .RecoveryCode 3 6}}</mj-text> | ||
</mj-column> | ||
</mj-section> | ||
<mj-section padding-top="0" background-color="#fff"> | ||
<mj-column> | ||
<mj-divider padding-left="0" padding-right="0" border-color="#e6e6e6" border-width="1px" padding-top="0"></mj-divider> | ||
<mj-button align="left" href="{{ .InviteUrl }}" padding-left="0" padding-right="0"> | ||
Verify your account | ||
</mj-button> | ||
<mj-text>or visit this link</mj-text> | ||
<mj-text><a href="{{ .InviteUrl }}">{{ .InviteUrl }}</a></mj-text> | ||
</mj-column> | ||
</mj-section> | ||
<mj-include path="./includes/footer.mjml" /> | ||
</mj-wrapper> | ||
</mj-body> | ||
</mjml> |