diff --git a/src/assets/emails/genericTemplate.html b/src/assets/emails/genericTemplate.html index 3a92c03..059468e 100644 --- a/src/assets/emails/genericTemplate.html +++ b/src/assets/emails/genericTemplate.html @@ -50,11 +50,15 @@ color: #fff !important; font-weight: 700 !important; } - strong { + strong, b { font-weight: 700 !important; color: #9D6FF3 !important; } + img.logo { + content: url("https://assets.pretendo.cc/images/wordmark-white.png") !important; + } } + @media (prefers-color-scheme: dark) { body.email-body, table.centerer, @@ -98,14 +102,17 @@ td.notice a { color: #fff !important; } - strong { + strong, b { font-weight: 700 !important; color: #fff !important; } + /* isn't this redundant? no. icloud web doesn't display the logo correctly without this. */ img.logo { - content: url("https://assets.pretendo.cc/images/pretendo-wordmark-multicolor-purple+white.png") !important; + content: url("https://assets.pretendo.cc/images/wordmark-purple-white.png") !important; } } + + @@ -130,7 +137,7 @@ - + diff --git a/src/assets/images/wordmark-purple-white.png b/src/assets/images/wordmark-purple-white.png new file mode 100644 index 0000000..66c89d5 Binary files /dev/null and b/src/assets/images/wordmark-purple-white.png differ diff --git a/src/assets/images/pretendo-wordmark-singlecolor-white.png b/src/assets/images/wordmark-white.png similarity index 100% rename from src/assets/images/pretendo-wordmark-singlecolor-white.png rename to src/assets/images/wordmark-white.png diff --git a/src/mailer.ts b/src/mailer.ts index e041242..6734011 100644 --- a/src/mailer.ts +++ b/src/mailer.ts @@ -116,7 +116,7 @@ export class CreateEmail { if (plainText) { c.text = c.text.replace(linkRegex, `$ ($)`); } else { - c.text = c.text.replace(linkRegex, `$`); + c.text = c.text.replace(linkRegex, `$`); } } } @@ -139,7 +139,7 @@ export class CreateEmail { innerHTML += `\n${c.text}`; break; case 'button': - innerHTML += `\n${c.text}`; + innerHTML += `\n${c.text}`; break; } }); diff --git a/src/util.ts b/src/util.ts index 68343de..8f05d2d 100644 --- a/src/util.ts +++ b/src/util.ts @@ -203,7 +203,7 @@ export function nascError(errorCode: string): URLSearchParams { export async function sendConfirmationEmail(pnid: mongoose.HydratedDocument): Promise { const email = new CreateEmail() .addHeader('Hello {{pnid}}!', { pnid: pnid.username }) - .addParagraph('Your Pretendo Network ID activation is almost complete. Please click the link below to confirm your e-mail address and complete the activation process.') + .addParagraph('Your Pretendo Network ID activation is almost complete. Please click the link below to confirm your e-mail address and complete the activation process.') .addButton('Confirm email address', `https://api.pretendo.cc/v1/email/verify?token=${pnid.identification.email_token}`) .addParagraph('You may also enter the following 6-digit code on your console:') .addButton(pnid.identification.email_code, '', false)