Skip to content

Commit c39d076

Browse files
committed
Add Logo URL to emails
1 parent bb8edfb commit c39d076

File tree

7 files changed

+18
-9
lines changed

7 files changed

+18
-9
lines changed

backend/emails/adminInvite.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defaultLoginLink } from "./constants";
1+
import { defaultLoginLink, defaultLogoURL } from "./constants";
22

33
const adminInviteEmail = (
44
verifyEmailLink: string,
@@ -30,7 +30,7 @@ const adminInviteEmail = (
3030
border-bottom: 2px solid #FFE6DD;
3131
background: #FCC4B1;
3232
">
33-
<img src="https://firebasestorage.googleapis.com/v0/b/extendafamily-7613e.appspot.com/o/eaf-logo.png?alt=media&token=9f3f5da0-264e-42a5-85a7-0c1fb120b27c" alt="Extend-A-Family logo" style="height: 40px" />
33+
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="height: 40px" />
3434
</td>
3535
</tr>
3636

backend/emails/constants.ts

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

3+
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";
5+
36
export const defaultReplyToEmail = "pranol.mathan@eafwr.on.ca";
47

58
export const ROLE_COLORS = {

backend/emails/facilitatorApproved.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defaultLoginLink } from "./constants";
1+
import { defaultLoginLink, defaultLogoURL } from "./constants";
22

33
const facilitatorApprovedEmail = (
44
loginLink: string = defaultLoginLink,
@@ -28,7 +28,7 @@ const facilitatorApprovedEmail = (
2828
border-bottom: 2px solid #E5E7FF;
2929
background: #F2F3FF;
3030
">
31-
<img src="https://firebasestorage.googleapis.com/v0/b/extendafamily-7613e.appspot.com/o/eaf-logo.png?alt=media&token=9f3f5da0-264e-42a5-85a7-0c1fb120b27c" alt="Extend-A-Family logo" style="height: 40px" />
31+
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="height: 40px" />
3232
</td>
3333
</tr>
3434

backend/emails/facilitatorRejected.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { defaultLogoURL } from "./constants";
2+
13
const facilitatorRejectedEmail = (): string => `
24
<html lang="en">
35
@@ -24,7 +26,7 @@ const facilitatorRejectedEmail = (): string => `
2426
border-bottom: 2px solid #E5E7FF;
2527
background: #F2F3FF;
2628
">
27-
<img src="https://firebasestorage.googleapis.com/v0/b/extendafamily-7613e.appspot.com/o/eaf-logo.png?alt=media&token=9f3f5da0-264e-42a5-85a7-0c1fb120b27c" alt="Extend-A-Family logo" style="height: 40px" />
29+
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="height: 40px" />
2830
</td>
2931
</tr>
3032

backend/emails/facilitatorVerification.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { defaultLogoURL } from "./constants";
2+
13
const facilitatorVerificationEmail = (verifyEmailLink: string): string => `
24
<html lang="en">
35
@@ -24,7 +26,7 @@ const facilitatorVerificationEmail = (verifyEmailLink: string): string => `
2426
border-bottom: 2px solid #E5E7FF;
2527
background: #F2F3FF;
2628
">
27-
<img src="https://firebasestorage.googleapis.com/v0/b/extendafamily-7613e.appspot.com/o/eaf-logo.png?alt=media&token=9f3f5da0-264e-42a5-85a7-0c1fb120b27c" alt="Extend-A-Family logo" style="height: 40px" />
29+
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="height: 40px" />
2830
</td>
2931
</tr>
3032

backend/emails/forgotPassword.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { defaultLogoURL } from "./constants";
2+
13
const forgotPasswordEmail = (
24
name: string,
35
changePasswordLink: string,
@@ -31,7 +33,7 @@ const forgotPasswordEmail = (
3133
border-bottom: 2px solid ${bannerBorder};
3234
background: ${bannerBackground};
3335
">
34-
<img src="https://firebasestorage.googleapis.com/v0/b/extendafamily-7613e.appspot.com/o/eaf-logo.png?alt=media&token=9f3f5da0-264e-42a5-85a7-0c1fb120b27c" alt="Extend-A-Family logo" style="height: 40px" />
36+
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="height: 40px" />
3537
</td>
3638
</tr>
3739

backend/emails/learnerInvite.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defaultLoginLink } from "./constants";
1+
import { defaultLoginLink, defaultLogoURL } from "./constants";
22

33
const learnerInviteEmail = (
44
learnerName: string,
@@ -32,7 +32,7 @@ const learnerInviteEmail = (
3232
border-bottom: 2px solid #C8F3FA;
3333
background: #E3F9FC;
3434
">
35-
<img src="https://firebasestorage.googleapis.com/v0/b/extendafamily-7613e.appspot.com/o/eaf-logo.png?alt=media&token=9f3f5da0-264e-42a5-85a7-0c1fb120b27c" alt="Extend-A-Family logo" style="height: 40px" />
35+
<img src="${defaultLogoURL}" alt="Extend-A-Family logo" style="height: 40px" />
3636
</td>
3737
</tr>
3838

0 commit comments

Comments
 (0)