Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add email templates by lessa #428

Merged
merged 4 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,68 @@
Olá, {{ name }},
Por favor, clique no link abaixo para confirmar seu cadastro na Base dos Dados:
{% autoescape off %}
https://{{ domain }}/activate_account/{{ uid }}/{{ token }}/
{% endautoescape %}
<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<body style="
display: block;
margin: 0 auto;
width: 100%;
max-width: 600px;
padding: 0 28px;
box-sizing: content-box;
">
<a href="https://basedosdados.org" target="_blank" style="display: flex; width: 100%;">
<img alt="logo" style="width: 75px; margin: 0 auto;" src="https://basedosdados.github.io/mais/images/bd_minilogo.png">
</a>

<h1 style="width: 100%; padding-top: 32px; margin: 0 0 16px; border-top: 1px solid #DEDFE0; color: #252A32; font-family: Arial; font-size: 14px; font-style: normal; font-weight: 700; line-height: 24px;">Olá, {{ name }}</h1>

<div style="display: block; width: 100%; margin: 16px 0;">
<p style="width: 100%; margin: 0; color: #252A32; font-family: Arial; font-size: 14px; font-style: normal; font-weight: 400; line-height: 22px; margin-bottom: 8px;">Informamos que o seu cadastro na Base dos Dados foi realizado com sucesso!</p>
<p style="width: 100%; margin: 0; color: #252A32; font-family: Arial; font-size: 14px; font-style: normal; font-weight: 400; line-height: 22px;">Para começar a aproveitar todos os benefícios da nossa plataforma, clique no botão abaixo para verificar o seu e-mail e concluir o cadastro:</p>
</div>

<a
href="https://{{ domain }}/activate_account/{{ uid }}/{{ token }}/"
style="
color: #FFF;
background-color: #42B0FF;
border-radius: 30px;
text-decoration: none;
display: block;
text-align: center;
width: 160px;
padding: 8px 16px;
margin: 0 auto;
font-size: 14px;
font-weight: 700;
line-height: 24px;
letter-spacing: 0.2px;
font-family: Arial;
">Verificar meu e-mail</a>

<span style="display: block; width: 100%; margin: 32px 0; border-top: 1px solid #DEDFE0;"></span>

<p style="color: #6F6F6F; text-align: center; font-family: Arial; font-size: 13px; font-weight: 400; line-height: 18px; letter-spacing: 0.2px; margin: 0;">Se você não realizou o cadastro em nossa plataforma, pedimos que desconsidere este comunicado. Não é necessário realizar nenhuma ação adicional.</p>

<span style="display: block; width: 100%; margin: 32px 0; border-top: 1px solid #DEDFE0;"></span>

<div style="display: block; width: 100%; margin: 0 auto;">
<p style="text-align: center; color: #A3A3A3; font-family: Arial; font-size: 12px; font-weight: 400; line-height: 18px; letter-spacing: 0.2px; margin: 0;">Esta mensagem foi enviada pela</p>
<p style="text-align: center; color: #A3A3A3; font-family: Arial; font-size: 12px; font-weight: 400; line-height: 18px; letter-spacing: 0.2px; text-decoration: none; margin: 0;">Base dos Dados</p>
</div>

<style>
@media (max-width: 600px) {
body {
max-width: 100%;
padding: 0 28px;
}
}
</style>
</body>

</html>
Original file line number Diff line number Diff line change
@@ -1,7 +1,76 @@
{% autoescape off %}
Para iniciar o processo de redefinição de senha para a sua conta do {{ name }}, clique no link abaixo:
http://{{ domain }}/reset_password/{{ uid }}/{{ token }}/
Se o link acima não funcionar, por favor, copie e cole a URL em uma nova janela do navegador.
Atenciosamente,
Base dos Dados.
{% endautoescape %}
<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<body style="
display: block;
margin: 0 auto;
width: 100%;
max-width: 600px;
font-family: 'Lato',sans-serif;
padding: 0 28px;
box-sizing: content-box;
">

<a href="https://basedosdados.org" target="_blank" style="display: flex; width: 100%;">
<img alt="logo" style="width: 75px; margin: 0 auto;" src="https://basedosdados.github.io/mais/images/bd_minilogo.png">
</a>

<h1 style="width: 100%; padding-top: 32px; margin: 0 0 16px; border-top: 1px solid #DEDFE0; color: #252A32; font-family: Arial; font-size: 14px; font-style: normal; font-weight: 700; line-height: 24px;">Olá, {{ name }}</h1>

<div style="display: block; width: 100%; margin: 16px 0;">
<p style="width: 100%; margin: 0; color: #252A32; font-family: Arial; font-size: 14px; font-style: normal; font-weight: 400; line-height: 22px; margin-bottom: 8px;">Recebemos uma solicitação de redefinição de senha para a sua conta na Base dos Dados.</p>
<p style="width: 100%; margin: 0; color: #252A32; font-family: Arial; font-size: 14px; font-style: normal; font-weight: 400; line-height: 22px;">Para criar uma nova senha, clique no botão abaixo:</p>
</div>

<a
href="http://{{ domain }}/reset_password/{{ uid }}/{{ token }}/"
style="
color: #FFF;
background-color: #42B0FF;
border-radius: 30px;
text-decoration: none;
display: block;
text-align: center;
width: 160px;
padding: 8px 16px;
margin: 0 auto;
font-size: 14px;
font-weight: 700;
line-height: 24px;
letter-spacing: 0.2px;
font-family: Arial;
">Redefinir minha senha</a>

<span style="display: block; width: 100%; margin: 32px 0; border-top: 1px solid #DEDFE0;"></span>

<div style="display: block; width: 100%; margin: 0 auto;">
<p style="color: #6F6F6F; text-align: center; font-family: Arial; font-size: 13px; font-weight: 400; line-height: 18px; letter-spacing: 0.2px; margin: 0;">
Se você não fez essa solicitação, ignore este e-mail. A sua senha atual continuará válida e segura. Caso tenha alguma dúvida ou precise de suporte, entre em contato através do e-mail
</p>
<p style="width: 100%; text-align: center; color: #6F6F6F; margin: 0; font-family: Arial; font-size: 13px; font-weight: 400; line-height: 18px; letter-spacing: 0.2px; margin: 0; text-decoration: none;">
[email protected]
</p>
</div>

<span style="display: block; width: 100%; margin: 32px 0; border-top: 1px solid #DEDFE0;"></span>

<div style="display: block; width: 100%; margin: 0 auto;">
<p style="text-align: center; color: #A3A3A3; font-family: Arial; font-size: 12px; font-weight: 400; line-height: 18px; letter-spacing: 0.2px; margin: 0;">Esta mensagem foi enviada pela</p>
<p style="text-align: center; color: #A3A3A3; font-family: Arial; font-size: 12px; font-weight: 400; line-height: 18px; letter-spacing: 0.2px; text-decoration: none; margin: 0;">Base dos Dados</p>
</div>

<style>
@media (max-width: 600px) {
body {
max-width: 100%;
padding: 0 28px;
}
}
</style>
</body>
</html>
Loading