feat(mail): redesign the email templates in the Lincodex style

This commit is contained in:
shira committed 2026-10-10 02:21:45 +03:00
1 parent 3c4acff803
commit a0869d81a1
26 files changed
+363 -103

No files matched your search

@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light">
<title>{{.Subject}}</title>
</head>
<body style="margin:0;padding:0;background-color:#1b1c21;">
<div style="display:none;max-height:0;line-height:0;font-size:0;opacity:0;overflow:hidden;mso-hide:all;">Уведомление в личном кабинете Lincodex.</div>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color:#1b1c21;">
<tr>
<td align="center" style="padding:24px 16px;">
<table role="presentation" width="560" cellpadding="0" cellspacing="0" border="0" style="width:100%;max-width:560px;">
<tr>
<td style="background-color:#202129;border-radius:16px 16px 0 0;padding:24px 32px;font-family:Unbounded,'Arial Black','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:22px;line-height:28px;font-weight:700;color:#ffffff;white-space:nowrap;"><span style="letter-spacing:-0.02em;">Lincodex</span><span style="display:inline-block;width:6px;height:16px;margin-left:6px;background-color:#402fff;"></span></td>
</tr>
<tr>
<td style="background-color:#ffffff;border-radius:0 0 16px 16px;padding:32px 32px 28px;font-family:Inter,'Segoe UI',-apple-system,BlinkMacSystemFont,Roboto,'Helvetica Neue',Arial,sans-serif;font-size:16px;line-height:24px;color:#1b1c21;">
<p style="margin:0 0 8px;font-family:ui-monospace,'JetBrains Mono',Menlo,Consolas,monospace;font-size:12px;line-height:16px;letter-spacing:0.08em;color:#4a4c55;">УВЕДОМЛЕНИЕ</p>
<h1 style="margin:0 0 16px;font-family:ui-monospace,'JetBrains Mono',Menlo,Consolas,monospace;font-size:24px;line-height:32px;font-weight:700;color:#1b1c21;">{{.Subject}}</h1>
{{range .View.Paragraphs}}<p style="margin:0 0 16px;color:#1b1c21;">{{range $index, $line := .}}{{if $index}}<br>{{end}}{{$line}}{{end}}</p>
{{end}}<table role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin:8px 0 24px;">
<tr>
<td align="center" bgcolor="#402fff" style="background-color:#402fff;border-radius:999px;padding:14px 28px;"><a href="{{.View.Link}}" style="display:inline-block;font-family:Inter,'Segoe UI',-apple-system,BlinkMacSystemFont,Roboto,'Helvetica Neue',Arial,sans-serif;font-size:16px;line-height:20px;font-weight:700;color:#ffffff;text-decoration:none;">Открыть личный кабинет</a></td>
</tr>
</table>
<p style="margin:0 0 8px;font-size:14px;line-height:22px;color:#4a4c55;">Если кнопка не работает, скопируйте ссылку в адресную строку браузера:</p>
<p style="margin:0;font-size:14px;line-height:22px;word-break:break-all;"><a href="{{.View.Link}}" style="color:#402fff;text-decoration:underline;">{{.View.Link}}</a></p>
</td>
</tr>
<tr>
<td style="padding:20px 32px 0;font-family:Inter,'Segoe UI',-apple-system,BlinkMacSystemFont,Roboto,'Helvetica Neue',Arial,sans-serif;font-size:12px;line-height:18px;color:#9b9c9e;">
<p style="margin:0 0 8px;">Вы получили это письмо, потому что в Lincodex пришло уведомление на ваш подтвержденный адрес.</p>
<p style="margin:0;">Lincodex. Письмо отправлено автоматически, отвечать на него не нужно.</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1,11 @@
{{.Subject}}
{{.View.TextBody}}
Подробнее в личном кабинете:
{{.View.Link}}
--
Вы получили это письмо, потому что в Lincodex пришло уведомление на ваш подтвержденный адрес.
Lincodex. Письмо отправлено автоматически, отвечать на него не нужно.
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light">
<title>{{.Subject}}</title>
</head>
<body style="margin:0;padding:0;background-color:#1b1c21;">
<div style="display:none;max-height:0;line-height:0;font-size:0;opacity:0;overflow:hidden;mso-hide:all;">Откройте ссылку, чтобы задать новый пароль в Lincodex.</div>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color:#1b1c21;">
<tr>
<td align="center" style="padding:24px 16px;">
<table role="presentation" width="560" cellpadding="0" cellspacing="0" border="0" style="width:100%;max-width:560px;">
<tr>
<td style="background-color:#202129;border-radius:16px 16px 0 0;padding:24px 32px;font-family:Unbounded,'Arial Black','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:22px;line-height:28px;font-weight:700;color:#ffffff;white-space:nowrap;"><span style="letter-spacing:-0.02em;">Lincodex</span><span style="display:inline-block;width:6px;height:16px;margin-left:6px;background-color:#402fff;"></span></td>
</tr>
<tr>
<td style="background-color:#ffffff;border-radius:0 0 16px 16px;padding:32px 32px 28px;font-family:Inter,'Segoe UI',-apple-system,BlinkMacSystemFont,Roboto,'Helvetica Neue',Arial,sans-serif;font-size:16px;line-height:24px;color:#1b1c21;">
<p style="margin:0 0 8px;font-family:ui-monospace,'JetBrains Mono',Menlo,Consolas,monospace;font-size:12px;line-height:16px;letter-spacing:0.08em;color:#4a4c55;">ВОССТАНОВЛЕНИЕ ДОСТУПА</p>
<h1 style="margin:0 0 16px;font-family:ui-monospace,'JetBrains Mono',Menlo,Consolas,monospace;font-size:24px;line-height:32px;font-weight:700;color:#1b1c21;">Сброс пароля</h1>
<p style="margin:0 0 24px;color:#1b1c21;">Мы получили запрос на сброс пароля для аккаунта Lincodex, связанного с этим адресом. Чтобы задать новый пароль, откройте ссылку.</p>
<table role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin:0 0 24px;">
<tr>
<td align="center" bgcolor="#402fff" style="background-color:#402fff;border-radius:999px;padding:14px 28px;"><a href="{{.View.Link}}" style="display:inline-block;font-family:Inter,'Segoe UI',-apple-system,BlinkMacSystemFont,Roboto,'Helvetica Neue',Arial,sans-serif;font-size:16px;line-height:20px;font-weight:700;color:#ffffff;text-decoration:none;">Задать новый пароль</a></td>
</tr>
</table>
<p style="margin:0 0 8px;font-size:14px;line-height:22px;color:#4a4c55;">Если кнопка не работает, скопируйте ссылку в адресную строку браузера:</p>
<p style="margin:0 0 24px;font-size:14px;line-height:22px;word-break:break-all;"><a href="{{.View.Link}}" style="color:#402fff;text-decoration:underline;">{{.View.Link}}</a></p>
<p style="margin:0 0 16px;">Ссылка действует {{.View.LifetimeHours}} {{plural .View.LifetimeHours "час" "часа" "часов"}}.</p>
<p style="margin:0;font-size:14px;line-height:22px;color:#4a4c55;">Если вы не запрашивали сброс, просто не открывайте ссылку: текущий пароль останется прежним.</p>
</td>
</tr>
<tr>
<td style="padding:20px 32px 0;font-family:Inter,'Segoe UI',-apple-system,BlinkMacSystemFont,Roboto,'Helvetica Neue',Arial,sans-serif;font-size:12px;line-height:18px;color:#9b9c9e;">
<p style="margin:0 0 8px;">Вы получили это письмо, потому что для аккаунта Lincodex с этим адресом запросили сброс пароля.</p>
<p style="margin:0;">Lincodex. Письмо отправлено автоматически, отвечать на него не нужно.</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1 @@
Сброс пароля в Lincodex
@@ -0,0 +1,13 @@
Сброс пароля
Мы получили запрос на сброс пароля для аккаунта Lincodex, связанного с этим адресом. Чтобы задать новый пароль, откройте ссылку:
{{.View.Link}}
Ссылка действует {{.View.LifetimeHours}} {{plural .View.LifetimeHours "час" "часа" "часов"}}.
Если вы не запрашивали сброс, просто не открывайте ссылку: текущий пароль останется прежним.
--
Вы получили это письмо, потому что для аккаунта Lincodex с этим адресом запросили сброс пароля.
Lincodex. Письмо отправлено автоматически, отвечать на него не нужно.
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light">
<title>{{.Subject}}</title>
</head>
<body style="margin:0;padding:0;background-color:#1b1c21;">
<div style="display:none;max-height:0;line-height:0;font-size:0;opacity:0;overflow:hidden;mso-hide:all;">Введите код или откройте ссылку, чтобы подтвердить почту в Lincodex.</div>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color:#1b1c21;">
<tr>
<td align="center" style="padding:24px 16px;">
<table role="presentation" width="560" cellpadding="0" cellspacing="0" border="0" style="width:100%;max-width:560px;">
<tr>
<td style="background-color:#202129;border-radius:16px 16px 0 0;padding:24px 32px;font-family:Unbounded,'Arial Black','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:22px;line-height:28px;font-weight:700;color:#ffffff;white-space:nowrap;"><span style="letter-spacing:-0.02em;">Lincodex</span><span style="display:inline-block;width:6px;height:16px;margin-left:6px;background-color:#402fff;"></span></td>
</tr>
<tr>
<td style="background-color:#ffffff;border-radius:0 0 16px 16px;padding:32px 32px 28px;font-family:Inter,'Segoe UI',-apple-system,BlinkMacSystemFont,Roboto,'Helvetica Neue',Arial,sans-serif;font-size:16px;line-height:24px;color:#1b1c21;">
<p style="margin:0 0 8px;font-family:ui-monospace,'JetBrains Mono',Menlo,Consolas,monospace;font-size:12px;line-height:16px;letter-spacing:0.08em;color:#4a4c55;">РЕГИСТРАЦИЯ</p>
<h1 style="margin:0 0 16px;font-family:ui-monospace,'JetBrains Mono',Menlo,Consolas,monospace;font-size:24px;line-height:32px;font-weight:700;color:#1b1c21;">Подтвердите адрес почты</h1>
<p style="margin:0 0 24px;color:#1b1c21;">Чтобы завершить регистрацию в Lincodex, введите код на странице подтверждения вместе с паролем, который вы выбрали при регистрации.</p>
<p style="margin:0 0 8px;font-family:ui-monospace,'JetBrains Mono',Menlo,Consolas,monospace;font-size:12px;line-height:16px;letter-spacing:0.08em;color:#4a4c55;">Код подтверждения</p>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="margin:0 0 12px;">
<tr>
<td align="center" style="background-color:#1b1c21;border-radius:12px;padding:20px 16px;text-indent:0.3em;font-family:ui-monospace,'JetBrains Mono',Menlo,Consolas,monospace;font-size:36px;line-height:44px;font-weight:700;letter-spacing:0.3em;color:#ffffff;">{{.View.Code}}</td>
</tr>
</table>
<p style="margin:0 0 24px;font-size:14px;line-height:22px;color:#4a4c55;">Код действует {{.View.CodeLifetimeMinutes}} {{plural .View.CodeLifetimeMinutes "минуту" "минуты" "минут"}}.</p>
<p style="margin:0 0 16px;">Или откройте ссылку и подтвердите адрес на открывшейся странице:</p>
<table role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin:0 0 24px;">
<tr>
<td align="center" bgcolor="#402fff" style="background-color:#402fff;border-radius:999px;padding:14px 28px;"><a href="{{.View.Link}}" style="display:inline-block;font-family:Inter,'Segoe UI',-apple-system,BlinkMacSystemFont,Roboto,'Helvetica Neue',Arial,sans-serif;font-size:16px;line-height:20px;font-weight:700;color:#ffffff;text-decoration:none;">Подтвердить почту</a></td>
</tr>
</table>
<p style="margin:0 0 8px;font-size:14px;line-height:22px;color:#4a4c55;">Если кнопка не работает, скопируйте ссылку в адресную строку браузера:</p>
<p style="margin:0 0 24px;font-size:14px;line-height:22px;word-break:break-all;"><a href="{{.View.Link}}" style="color:#402fff;text-decoration:underline;">{{.View.Link}}</a></p>
<p style="margin:0 0 16px;">Ссылка действует {{.View.LifetimeHours}} {{plural .View.LifetimeHours "час" "часа" "часов"}}.</p>
<p style="margin:0;font-size:14px;line-height:22px;color:#4a4c55;">Если вы не регистрировались в Lincodex, ничего не делайте: без подтверждения аккаунт не будет активирован.</p>
</td>
</tr>
<tr>
<td style="padding:20px 32px 0;font-family:Inter,'Segoe UI',-apple-system,BlinkMacSystemFont,Roboto,'Helvetica Neue',Arial,sans-serif;font-size:12px;line-height:18px;color:#9b9c9e;">
<p style="margin:0 0 8px;">Вы получили это письмо, потому что этот адрес указали при регистрации в Lincodex.</p>
<p style="margin:0;">Lincodex. Письмо отправлено автоматически, отвечать на него не нужно.</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
@@ -0,0 +1 @@
Подтвердите почту в Lincodex
@@ -0,0 +1,19 @@
Подтвердите адрес почты
Чтобы завершить регистрацию в Lincodex, введите код на странице подтверждения вместе с паролем, который вы выбрали при регистрации:
Код подтверждения: {{.View.Code}}
Код действует {{.View.CodeLifetimeMinutes}} {{plural .View.CodeLifetimeMinutes "минуту" "минуты" "минут"}}.
Или откройте ссылку и подтвердите адрес на открывшейся странице:
{{.View.Link}}
Ссылка действует {{.View.LifetimeHours}} {{plural .View.LifetimeHours "час" "часа" "часов"}}.
Если вы не регистрировались в Lincodex, ничего не делайте: без подтверждения аккаунт не будет активирован.
--
Вы получили это письмо, потому что этот адрес указали при регистрации в Lincodex.
Lincodex. Письмо отправлено автоматически, отвечать на него не нужно.