Update email templates to improve clarity and consistency in messagin… (#26970)

This commit is contained in:
Xiyuan Chen 2025-10-16 01:42:22 -07:00 committed by GitHub
parent 8b61f5e9c4
commit 06649f6c21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 83 additions and 53 deletions

View File

@ -42,7 +42,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;
line-height: 120%; /* 28.8px */ line-height: 120%;
/* 28.8px */
} }
.description { .description {
@ -51,7 +52,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 20px; /* 142.857% */ line-height: 20px;
/* 142.857% */
letter-spacing: -0.07px; letter-spacing: -0.07px;
} }
@ -96,7 +98,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 20px; /* 142.857% */ line-height: 20px;
/* 142.857% */
letter-spacing: -0.07px; letter-spacing: -0.07px;
} }
</style> </style>
@ -107,7 +110,7 @@
<div class="header"></div> <div class="header"></div>
<p class="title">Confirm Your New Email Address</p> <p class="title">Confirm Your New Email Address</p>
<div class="description"> <div class="description">
<p class="content1">Youre updating the email address linked to your Dify account.</p> <p class="content1">You're updating the email address linked to your account.</p>
<p class="content2">To confirm this action, please use the verification code below.</p> <p class="content2">To confirm this action, please use the verification code below.</p>
<p class="content3">This code will only be valid for the next 5 minutes:</p> <p class="content3">This code will only be valid for the next 5 minutes:</p>
</div> </div>
@ -119,4 +122,3 @@
</body> </body>
</html> </html>

View File

@ -42,7 +42,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;
line-height: 120%; /* 28.8px */ line-height: 120%;
/* 28.8px */
} }
.description { .description {
@ -51,7 +52,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 20px; /* 142.857% */ line-height: 20px;
/* 142.857% */
letter-spacing: -0.07px; letter-spacing: -0.07px;
} }
@ -96,7 +98,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 20px; /* 142.857% */ line-height: 20px;
/* 142.857% */
letter-spacing: -0.07px; letter-spacing: -0.07px;
} }
</style> </style>
@ -107,7 +110,7 @@
<div class="header"></div> <div class="header"></div>
<p class="title">确认您的邮箱地址变更</p> <p class="title">确认您的邮箱地址变更</p>
<div class="description"> <div class="description">
<p class="content1">您正在更新与您的 Dify 账户关联的邮箱地址。</p> <p class="content1">您正在更新与您的账户关联的邮箱地址。</p>
<p class="content2">为了确认此操作,请使用以下验证码。</p> <p class="content2">为了确认此操作,请使用以下验证码。</p>
<p class="content3">此验证码仅在接下来的5分钟内有效</p> <p class="content3">此验证码仅在接下来的5分钟内有效</p>
</div> </div>
@ -119,4 +122,3 @@
</body> </body>
</html> </html>

View File

@ -42,7 +42,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;
line-height: 120%; /* 28.8px */ line-height: 120%;
/* 28.8px */
} }
.description { .description {
@ -51,7 +52,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 20px; /* 142.857% */ line-height: 20px;
/* 142.857% */
letter-spacing: -0.07px; letter-spacing: -0.07px;
} }
@ -96,7 +98,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 20px; /* 142.857% */ line-height: 20px;
/* 142.857% */
letter-spacing: -0.07px; letter-spacing: -0.07px;
} }
</style> </style>
@ -107,7 +110,7 @@
<div class="header"></div> <div class="header"></div>
<p class="title">Verify Your Request to Change Email</p> <p class="title">Verify Your Request to Change Email</p>
<div class="description"> <div class="description">
<p class="content1">We received a request to change the email address associated with your Dify account.</p> <p class="content1">We received a request to change the email address associated with your account.</p>
<p class="content2">To confirm this action, please use the verification code below.</p> <p class="content2">To confirm this action, please use the verification code below.</p>
<p class="content3">This code will only be valid for the next 5 minutes:</p> <p class="content3">This code will only be valid for the next 5 minutes:</p>
</div> </div>
@ -119,4 +122,3 @@
</body> </body>
</html> </html>

View File

@ -42,7 +42,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;
line-height: 120%; /* 28.8px */ line-height: 120%;
/* 28.8px */
} }
.description { .description {
@ -51,7 +52,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 20px; /* 142.857% */ line-height: 20px;
/* 142.857% */
letter-spacing: -0.07px; letter-spacing: -0.07px;
} }
@ -96,7 +98,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 20px; /* 142.857% */ line-height: 20px;
/* 142.857% */
letter-spacing: -0.07px; letter-spacing: -0.07px;
} }
</style> </style>
@ -107,7 +110,7 @@
<div class="header"></div> <div class="header"></div>
<p class="title">验证您的邮箱变更请求</p> <p class="title">验证您的邮箱变更请求</p>
<div class="description"> <div class="description">
<p class="content1">我们收到了一个变更您 Dify 账户关联邮箱地址的请求。</p> <p class="content1">我们收到了一个变更您账户关联邮箱地址的请求。</p>
<p class="content3">此验证码仅在接下来的5分钟内有效</p> <p class="content3">此验证码仅在接下来的5分钟内有效</p>
</div> </div>
<div class="code-content"> <div class="code-content">
@ -118,4 +121,3 @@
</body> </body>
</html> </html>

View File

@ -1,5 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<style> <style>
body { body {
@ -10,6 +11,7 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.container { .container {
width: 504px; width: 504px;
min-height: 444px; min-height: 444px;
@ -30,6 +32,7 @@
max-width: 63px; max-width: 63px;
height: auto; height: auto;
} }
.button { .button {
display: block; display: block;
padding: 8px 12px; padding: 8px 12px;
@ -45,42 +48,52 @@
font-size: 14px; font-size: 14px;
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;
line-height: 20px; /* 142.857% */ line-height: 20px;
/* 142.857% */
} }
.button:hover { .button:hover {
background-color: #004AEB; background-color: #004AEB;
border: 0.5px solid rgba(16, 24, 40, 0.08); border: 0.5px solid rgba(16, 24, 40, 0.08);
box-shadow: 0px 1px 2px 0px rgba(9, 9, 11, 0.05); box-shadow: 0px 1px 2px 0px rgba(9, 9, 11, 0.05);
} }
.content { .content {
color: #354052; color: #354052;
font-family: Inter; font-family: Inter;
font-size: 14px; font-size: 14px;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 20px; /* 142.857% */ line-height: 20px;
/* 142.857% */
letter-spacing: -0.07px; letter-spacing: -0.07px;
} }
.content1 { .content1 {
margin: 0; margin: 0;
padding-top: 24px; padding-top: 24px;
padding-bottom: 12px; padding-bottom: 12px;
font-weight: 500; font-weight: 500;
} }
.content2 { .content2 {
margin: 0; margin: 0;
padding-bottom: 12px; padding-bottom: 12px;
} }
</style> </style>
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<div class="header"></div> <div class="header"></div>
<div class="content"> <div class="content">
<p class="content1">Dear {{ to }},</p> <p class="content1">Dear {{ to }},</p>
<p class="content2">{{ inviter_name }} is pleased to invite you to join our workspace on {{application_title}}, a platform specifically designed for LLM application development. On {{application_title}}, you can explore, create, and collaborate to build and operate AI applications.</p> <p class="content2">{{ inviter_name }} is pleased to invite you to join our workspace on {{application_title}}, a
platform specifically designed for LLM application development. On {{application_title}}, you can explore,
create, and collaborate to build and operate AI applications.</p>
<p class="content2">Click the button below to log in to {{application_title}} and join the workspace.</p> <p class="content2">Click the button below to log in to {{application_title}} and join the workspace.</p>
<p style="text-align: center; margin: 0; margin-bottom: 32px;"><a style="color: #fff; text-decoration: none" class="button" href="{{ url }}">Login Here</a></p> <p style="text-align: center; margin: 0; margin-bottom: 32px;"><a style="color: #fff; text-decoration: none"
class="button" href="{{ url }}">Login Here</a></p>
<p class="content2">Best regards,</p> <p class="content2">Best regards,</p>
<p class="content2">{{application_title}} Team</p> <p class="content2">{{application_title}} Team</p>
</div> </div>

View File

@ -42,7 +42,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;
line-height: 120%; /* 28.8px */ line-height: 120%;
/* 28.8px */
} }
.description { .description {
@ -51,7 +52,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 20px; /* 142.857% */ line-height: 20px;
/* 142.857% */
letter-spacing: -0.07px; letter-spacing: -0.07px;
} }
@ -80,10 +82,9 @@
<div class="description"> <div class="description">
<p class="content1">You have been assigned as the new owner of the workspace "{{WorkspaceName}}".</p> <p class="content1">You have been assigned as the new owner of the workspace "{{WorkspaceName}}".</p>
<p class="content2">As the new owner, you now have full administrative privileges for this workspace.</p> <p class="content2">As the new owner, you now have full administrative privileges for this workspace.</p>
<p class="content3">If you have any questions, please contact support@dify.ai.</p> <p class="content3">If you have any questions, please contact support.</p>
</div> </div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -42,7 +42,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;
line-height: 120%; /* 28.8px */ line-height: 120%;
/* 28.8px */
} }
.description { .description {
@ -51,7 +52,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 20px; /* 142.857% */ line-height: 20px;
/* 142.857% */
letter-spacing: -0.07px; letter-spacing: -0.07px;
} }
@ -80,10 +82,9 @@
<div class="description"> <div class="description">
<p class="content1">您已被分配为工作空间“{{WorkspaceName}}”的新所有者。</p> <p class="content1">您已被分配为工作空间“{{WorkspaceName}}”的新所有者。</p>
<p class="content2">作为新所有者,您现在对该工作空间拥有完全的管理权限。</p> <p class="content2">作为新所有者,您现在对该工作空间拥有完全的管理权限。</p>
<p class="content3">如果您有任何问题,请联系support@dify.ai</p> <p class="content3">如果您有任何问题,请联系支持团队</p>
</div> </div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -42,7 +42,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;
line-height: 120%; /* 28.8px */ line-height: 120%;
/* 28.8px */
} }
.description { .description {
@ -51,7 +52,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 20px; /* 142.857% */ line-height: 20px;
/* 142.857% */
letter-spacing: -0.07px; letter-spacing: -0.07px;
} }
@ -97,7 +99,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 20px; /* 142.857% */ line-height: 20px;
/* 142.857% */
letter-spacing: -0.07px; letter-spacing: -0.07px;
} }
</style> </style>
@ -108,12 +111,14 @@
<div class="header"></div> <div class="header"></div>
<p class="title">Workspace ownership has been transferred</p> <p class="title">Workspace ownership has been transferred</p>
<div class="description"> <div class="description">
<p class="content1">You have successfully transferred ownership of the workspace "{{WorkspaceName}}" to {{NewOwnerEmail}}.</p> <p class="content1">You have successfully transferred ownership of the workspace "{{WorkspaceName}}" to
<p class="content2">You no longer have owner privileges for this workspace. Your access level has been changed to Admin.</p> {{NewOwnerEmail}}.</p>
<p class="content3">If you did not initiate this transfer or have concerns about this change, please contact support@dify.ai immediately.</p> <p class="content2">You no longer have owner privileges for this workspace. Your access level has been changed to
Admin.</p>
<p class="content3">If you did not initiate this transfer or have concerns about this change, please contact
support immediately.</p>
</div> </div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -42,7 +42,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;
line-height: 120%; /* 28.8px */ line-height: 120%;
/* 28.8px */
} }
.description { .description {
@ -51,7 +52,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 20px; /* 142.857% */ line-height: 20px;
/* 142.857% */
letter-spacing: -0.07px; letter-spacing: -0.07px;
} }
@ -97,7 +99,8 @@
font-family: Inter; font-family: Inter;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 20px; /* 142.857% */ line-height: 20px;
/* 142.857% */
letter-spacing: -0.07px; letter-spacing: -0.07px;
} }
</style> </style>
@ -110,10 +113,9 @@
<div class="description"> <div class="description">
<p class="content1">您已成功将工作空间“{{WorkspaceName}}”的所有权转移给{{NewOwnerEmail}}。</p> <p class="content1">您已成功将工作空间“{{WorkspaceName}}”的所有权转移给{{NewOwnerEmail}}。</p>
<p class="content2">您不再拥有此工作空间的拥有者权限。您的访问级别已更改为管理员。</p> <p class="content2">您不再拥有此工作空间的拥有者权限。您的访问级别已更改为管理员。</p>
<p class="content3">如果您没有发起此转移或对此变更有任何疑问,请立即联系support@dify.ai</p> <p class="content3">如果您没有发起此转移或对此变更有任何疑问,请立即联系支持团队</p>
</div> </div>
</div> </div>
</body> </body>
</html> </html>