Skip to content

Commit

Permalink
Fix: email template logo sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Nov 18, 2023
1 parent e2b125e commit 5f82d0f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions src/html/call_to_action.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,18 @@
<td style="padding-bottom: 20px">
<table style="max-width: 360px; margin-left: auto; margin-right: auto">
<td style="text-align: center">
<img src="{{platform_logo}}" alt="Platform Logo" loading="lazy" width="222" height="36" />
<img src="{{platform_logo}}" alt="Platform Logo" loading="lazy" width="205" height="36" />
</td>
<td style="text-align: center; width: 100%; margin: 0px 10px">
<img src="{{x_icon}}" alt="X Icon" width="17" height="17" />
<td style="text-align: center; width: 100%; margin: 0px 20px">
<img src="{{x_icon}}" alt="X Icon" width="17" height="17" style="padding: 0px 30px" />
</td>
<td style="text-align: center">
<img src="{{gdg_logo}}" alt="GDG Logo" width="56" height="36" />
<img
src="{{gdg_logo}}"
alt="GDG Logo"
width="225"
height="25"
style="transform: translateY(7.5px)" />
</td>
</table>
</td>
Expand Down
4 changes: 2 additions & 2 deletions src/services/auth/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const sendVerificationEmail = async (email, verification_code) => {
button below.`,
action_link: `${APP_DOMAIN}/api/auth/verify/${verification_code}`,
action_text: 'Confirm',
disclaimer_text: `You've received this email because you have opted to participate in ${APPLICATION} 2023.`
disclaimer_text: `You've received this email because you have opted to register for ${APPLICATION} 2023.`
};
const subject = `${APPLICATION} - Account Verification`;
await sendMail(email, 'call_to_action', replacements, subject);
Expand All @@ -25,7 +25,7 @@ export const sendResetPasswordEmail = async (email, verification_code) => {
at the login page.`,
action_link: `${isFromAdmin() ? ADMIN_FRONTEND_DOMAIN : FRONTEND_DOMAIN}/reset-password/${verification_code}`,
action_text: 'Reset Password',
disclaimer_text: `You've received this email because you have opted to participate in ${APPLICATION} 2023.`
disclaimer_text: `You've received this email because you have opted to register for ${APPLICATION} 2023.`
};
const subject = `${APPLICATION} - Reset Account Password`;
await sendMail(email, 'call_to_action', replacements, subject);
Expand Down

0 comments on commit 5f82d0f

Please sign in to comment.