Skip to content

Commit eb97d4b

Browse files
committed
Update emails with new logo
1 parent d5cf8bc commit eb97d4b

File tree

7 files changed

+42
-13
lines changed

7 files changed

+42
-13
lines changed

backend/emails/adminInvite.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { defaultLoginLink, defaultLogoURL } from "./constants";
1+
import {
2+
defaultLoginLink,
3+
defaultLogoHeight,
4+
defaultLogoURL,
5+
defaultLogoWidth,
6+
} from "./constants";
27

38
const adminInviteEmail = (
49
verifyEmailLink: string,
@@ -30,7 +35,7 @@ const adminInviteEmail = (
3035
border-bottom: 2px solid #FFE6DD;
3136
background: #FCC4B1;
3237
">
33-
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="height: 40px" />
38+
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="width: ${defaultLogoWidth}; height: ${defaultLogoHeight}" />
3439
</td>
3540
</tr>
3641

backend/emails/constants.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
export const defaultLoginLink = "https://eaf.jimmyliu.dev/welcome";
22

33
export const defaultLogoURL =
4-
"https://firebasestorage.googleapis.com/v0/b/extendafamily-7613e.appspot.com/o/eaf-email-banner-logo.png?alt=media&token=73fa0ff8-4122-45fa-9f12-5fd57039c7c6";
4+
"https://firebasestorage.googleapis.com/v0/b/extendafamily-7613e.appspot.com/o/eaf-logo.png?alt=media&token=0ac01306-c300-4557-944e-5ad9c748ac3e";
5+
export const defaultLogoWidth = "105px";
6+
export const defaultLogoHeight = "50px";
57

68
export const defaultReplyToEmail = "pranol.mathan@eafwr.on.ca";
79

backend/emails/facilitatorApproved.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { defaultLoginLink, defaultLogoURL } from "./constants";
1+
import {
2+
defaultLoginLink,
3+
defaultLogoHeight,
4+
defaultLogoURL,
5+
defaultLogoWidth,
6+
} from "./constants";
27

38
const facilitatorApprovedEmail = (
49
loginLink: string = defaultLoginLink,
@@ -28,7 +33,7 @@ const facilitatorApprovedEmail = (
2833
border-bottom: 2px solid #E5E7FF;
2934
background: #F2F3FF;
3035
">
31-
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="height: 40px" />
36+
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="width: ${defaultLogoWidth}; height: ${defaultLogoHeight}" />
3237
</td>
3338
</tr>
3439

backend/emails/facilitatorRejected.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { defaultLogoURL } from "./constants";
1+
import {
2+
defaultLogoHeight,
3+
defaultLogoURL,
4+
defaultLogoWidth,
5+
} from "./constants";
26

37
const facilitatorRejectedEmail = (): string => `
48
<html lang="en">
@@ -26,7 +30,7 @@ const facilitatorRejectedEmail = (): string => `
2630
border-bottom: 2px solid #E5E7FF;
2731
background: #F2F3FF;
2832
">
29-
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="height: 40px" />
33+
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="width: ${defaultLogoWidth}; height: ${defaultLogoHeight}" />
3034
</td>
3135
</tr>
3236

backend/emails/facilitatorVerification.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { defaultLogoURL } from "./constants";
1+
import {
2+
defaultLogoHeight,
3+
defaultLogoURL,
4+
defaultLogoWidth,
5+
} from "./constants";
26

37
const facilitatorVerificationEmail = (verifyEmailLink: string): string => `
48
<html lang="en">
@@ -26,7 +30,7 @@ const facilitatorVerificationEmail = (verifyEmailLink: string): string => `
2630
border-bottom: 2px solid #E5E7FF;
2731
background: #F2F3FF;
2832
">
29-
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="height: 40px" />
33+
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="width: ${defaultLogoWidth}; height: ${defaultLogoHeight}" />
3034
</td>
3135
</tr>
3236

backend/emails/forgotPassword.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { defaultLogoURL } from "./constants";
1+
import {
2+
defaultLogoHeight,
3+
defaultLogoURL,
4+
defaultLogoWidth,
5+
} from "./constants";
26

37
const forgotPasswordEmail = (
48
name: string,
@@ -33,7 +37,7 @@ const forgotPasswordEmail = (
3337
border-bottom: 2px solid ${bannerBorder};
3438
background: ${bannerBackground};
3539
">
36-
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="height: 40px" />
40+
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="width: ${defaultLogoWidth}; height: ${defaultLogoHeight}" />
3741
</td>
3842
</tr>
3943

backend/emails/learnerInvite.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { defaultLoginLink, defaultLogoURL } from "./constants";
1+
import {
2+
defaultLoginLink,
3+
defaultLogoHeight,
4+
defaultLogoURL,
5+
defaultLogoWidth,
6+
} from "./constants";
27

38
const learnerInviteEmail = (
49
learnerName: string,
@@ -32,7 +37,7 @@ const learnerInviteEmail = (
3237
border-bottom: 2px solid #C8F3FA;
3338
background: #E3F9FC;
3439
">
35-
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="height: 40px" />
40+
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="width: ${defaultLogoWidth}; height: ${defaultLogoHeight}" />
3641
</td>
3742
</tr>
3843

0 commit comments

Comments
 (0)