-
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
330 additions
and
192 deletions.
There are no files selected for viewing
136 changes: 136 additions & 0 deletions
136
assets/mailer_templates/build_production/import_notion.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" xmlns:v="urn:schemas-microsoft-com:vml"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="x-apple-disable-message-reformatting"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="format-detection" content="telephone=no, date=no, address=no, email=no, url=no"> | ||
<meta name="color-scheme" content="light dark"> | ||
<meta name="supported-color-schemes" content="light dark"> | ||
<!--[if mso]> | ||
<noscript> | ||
<xml> | ||
<o:OfficeDocumentSettings xmlns:o="urn:schemas-microsoft-com:office:office"> | ||
<o:PixelsPerInch>96</o:PixelsPerInch> | ||
</o:OfficeDocumentSettings> | ||
</xml> | ||
</noscript> | ||
<style> | ||
td,th,div,p,a,h1,h2,h3,h4,h5,h6 {font-family: "Segoe UI", sans-serif; mso-line-height-rule: exactly;} | ||
</style> | ||
<![endif]--> | ||
<title>Workspace Import Status</title> | ||
<style> | ||
.hover-opacity-90:hover { | ||
opacity: 0.9 !important | ||
} | ||
@media (max-width: 600px) { | ||
.sm-px-4 { | ||
padding-left: 16px !important; | ||
padding-right: 16px !important | ||
} | ||
.sm-py-12 { | ||
padding-top: 48px !important; | ||
padding-bottom: 48px !important | ||
} | ||
} | ||
</style> | ||
</head> | ||
<body style="margin: 0; width: 100%; background-color: #faf5ff; padding: 0; -webkit-font-smoothing: antialiased; word-break: break-word"> | ||
<div style="display: none"> | ||
Your workspace import status | ||
 ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏ | ||
</div> | ||
<div role="article" aria-roledescription="email" aria-label="Workspace Import Status" lang="en"> | ||
<div class="sm-px-4 sm-py-12" style="background-color: #faf5ff; padding: 96px 48px; font-family: Helvetica, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; color: #000"> | ||
<table align="center" cellpadding="0" cellspacing="0" role="none"> | ||
<tr> | ||
<td style="width: 552px; max-width: 100%"> {% if error %} | ||
<p style="width: 100%; white-space: normal; overflow-wrap: break-word; text-align: center; font-size: 24px; color: #dc2626"> | ||
<span style="font-size: 30px; font-weight: 700">Error:</span> | ||
<span style="margin-left: 8px; margin-right: 8px">undefined</span> | ||
</p> {% if detail_error %} | ||
<div style="margin-top: 16px; width: 100%; text-align: center"> | ||
<button id="copyErrorDetails" class="hover-opacity-90" style="border-radius: 16px; background-color: #9327ff; padding: 8px 16px; color: #fff"> | ||
Copy Error Details | ||
</button> | ||
</div> <textarea id="errorDetails" style="display: none;">undefined</textarea> | ||
{% endif %} | ||
{% else %} | ||
<p style="width: 100%; white-space: normal; overflow-wrap: break-word; text-align: center; font-size: 24px;"> | ||
<span style="font-size: 30px; font-weight: 700;">{{ username }}</span> | ||
<span style="margin-left: 8px; margin-right: 8px;">successfully imported</span> | ||
<span style="font-size: 30px; font-weight: 700;">undefined</span> | ||
</p> | ||
<div role="separator" style="background-color: #cbd5e1; height: 1px; line-height: 1px; margin: 24px 20%">‍</div> | ||
<table align="center" cellpadding="0" cellspacing="0" role="none"> | ||
<tr> | ||
<td style="width: 60px"> | ||
<div style="margin-right: 8px; height: 60px; width: 60px; overflow: hidden; border-radius: 16px; background-color: #fff; border: 2px solid black"> | ||
<img src="{{ workspace_icon_url }}" width="100%" height="100%" style="max-width: 100%; vertical-align: middle; line-height: 1; overflow: hidden; object-fit: cover" alt=""> | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
<div role="separator" style="background-color: #cbd5e1; height: 1px; line-height: 1px; margin: 24px 20%;">‍</div> | ||
{% endif %} {% if not error and open_workspace %}<div style="text-align: center;"> | ||
<a class="hover-opacity-90" style="margin-top: 32px; margin-bottom: 32px; display: inline-block; width: 60%; cursor: pointer; border-radius: 16px; padding: 16px 24px; color: #f8fafc; text-decoration: none; background-color: #9327ff; font-size: 20px; font-weight: 400; line-height: 20px"> | ||
<!--[if mso]> | ||
<i style="mso-font-width: 150%; mso-text-raise: 30px" hidden> </i> | ||
<![endif]--> | ||
<span style="mso-text-raise: 16px"> | ||
<div style="font-size: 24px; font-weight: 500"> | ||
Go to Workspace | ||
</div> | ||
</span> | ||
<!--[if mso]> | ||
<i hidden style="mso-font-width: 150%;"> ​</i> | ||
<![endif]--> | ||
</a> | ||
</div> | ||
{% endif %} <div style="margin-left: auto; margin-right: auto; width: 70%; text-align: center; font-size: 14px; line-height: 18px; color: #64748b"> | ||
For any issues, contact support or refer to our <a href="https://appflowy.io/terms/app" style="color: #64748b;">Terms & Conditions</a> | ||
and <a href="https://appflowy.io/privacy/app" style="color: #64748b;">Privacy Policy</a>. | ||
</div> | ||
<div role="separator" style="background-color: #cbd5e1; height: 1px; line-height: 1px; margin: 24px 20%;">‍</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="padding-left: 24px; padding-right: 24px; text-align: center; font-size: 12px; color: #475569"> | ||
<p style="margin: 0 0 16px; cursor: pointer; text-transform: uppercase"> | ||
<a href="https://appflowy.io"> | ||
<img src="https://raw.githubusercontent.com/AppFlowy-IO/AppFlowy-Cloud/main/assets/mailer_templates/build_production/images/appflowy-logo.png" width="150px" style="max-width: 100%; vertical-align: middle; line-height: 1;" alt=""> | ||
</a> | ||
</p> | ||
<p style="margin: 0; font-size: 14px; font-weight: 500; color: #000;"> | ||
Bring projects, knowledge, and teams together with the power of AI. | ||
</p> | ||
<p style="cursor: default"> | ||
<a href="https://twitter.com/appflowy" style="margin-right: 16px; color: #4338ca; text-decoration: none"> | ||
<img src="https://raw.githubusercontent.com/AppFlowy-IO/AppFlowy-Cloud/main/assets/mailer_templates/build_production/images/twitter.png" width="20" alt="Twitter" style="max-width: 100%; vertical-align: middle; line-height: 1;"> | ||
</a> | ||
<a href="https://www.reddit.com/r/AppFlowy" style="margin-right: 16px; color: #4338ca; text-decoration: none;"> | ||
<img src="https://raw.githubusercontent.com/AppFlowy-IO/AppFlowy-Cloud/main/assets/mailer_templates/build_production/images/reddit.png" width="20" alt="Reddit" style="max-width: 100%; vertical-align: middle; line-height: 1;"> | ||
</a> | ||
<a href="https://github.com/AppFlowy-IO/AppFlowy" style="margin-right: 16px; color: #4338ca; text-decoration: none;"> | ||
<img src="https://raw.githubusercontent.com/AppFlowy-IO/AppFlowy-Cloud/main/assets/mailer_templates/build_production/images/github.png" width="20" alt="GitHub" style="max-width: 100%; vertical-align: middle; line-height: 1;"> | ||
</a> | ||
<a href="https://discord.gg/9Q2xaN37tV" style="margin-right: 16px; color: #4338ca; text-decoration: none;"> | ||
<img src="https://raw.githubusercontent.com/AppFlowy-IO/AppFlowy-Cloud/main/assets/mailer_templates/build_production/images/discord.png" width="20" alt="Discord" style="max-width: 100%; vertical-align: middle; line-height: 1;"> | ||
</a> | ||
</p> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
</body> | ||
</html> | ||
<script> | ||
document.getElementById('copyErrorDetails').addEventListener('click', function() { | ||
const errorDetails = document.getElementById('errorDetails'); | ||
errorDetails.select(); | ||
document.execCommand('copy'); | ||
alert('Error details copied to clipboard!'); | ||
}); | ||
</script> |
Oops, something went wrong.