🚚 Move emails razor templates
This commit is contained in:
112
DysonNetwork.Pass/Resources/Emails/AccountDeletionEmail.razor
Normal file
112
DysonNetwork.Pass/Resources/Emails/AccountDeletionEmail.razor
Normal file
@@ -0,0 +1,112 @@
|
||||
@using DysonNetwork.Pass.Localization
|
||||
@using Microsoft.Extensions.Localization
|
||||
|
||||
<EmailLayout>
|
||||
<div style="display: none">
|
||||
@Localizer["AccountDeletionHeader"]
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
</div>
|
||||
<div role="article" aria-roledescription="email" aria-label lang="en">
|
||||
<div class="sm-px-4"
|
||||
style="background-color: #f8fafc; font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif">
|
||||
<table align="center" style="margin: 0 auto" cellpadding="0" cellspacing="0" role="none">
|
||||
<tr>
|
||||
<td style="width: 552px; max-width: 100%">
|
||||
<div role="separator" style="line-height: 24px">‍</div>
|
||||
<table style="width: 100%" cellpadding="0" cellspacing="0" role="none">
|
||||
<tr>
|
||||
<td class="sm-p-6"
|
||||
style="border-radius: 8px; background-color: #fffffe; padding: 24px 36px; border: 1px solid #e2e8f0">
|
||||
<a href="https://solian.app">
|
||||
<img src="https://solian.app/favicon.png" width="70" alt="Solar Network Logo"
|
||||
style="max-width: 100%; vertical-align: middle">
|
||||
</a>
|
||||
<div role="separator" style="line-height: 24px">‍</div>
|
||||
<h1 style="margin: 0 0 24px; font-size: 24px; line-height: 32px; font-weight: 600; color: #0f172a">
|
||||
@Localizer["UsernameFormat", Name]
|
||||
</h1>
|
||||
<p style="margin: 0 0 24px; font-size: 16px; line-height: 24px; color: #475569">
|
||||
@Localizer["AccountDeletionBody"]
|
||||
</p>
|
||||
<div>
|
||||
<a href="@Link"
|
||||
style="display: inline-block; text-decoration: none; padding: 16px 24px; font-size: 16px; line-height: 1; border-radius: 4px; color: #fffffe; background-color: #020617"
|
||||
class="hover-bg-slate-800">
|
||||
<!--[if mso]><i style="mso-font-width: 150%; mso-text-raise: 31px" hidden> </i><![endif]-->
|
||||
<span style="mso-text-raise: 16px">@Localizer["AccountDeletionButton"]</span>
|
||||
<!--[if mso]><i hidden style="mso-font-width: 150%"> ​</i><![endif]-->
|
||||
</a>
|
||||
</div>
|
||||
<div role="separator" style="line-height: 24px">‍</div>
|
||||
<p style="margin: 0; font-size: 16px; line-height: 24px; color: #475569">
|
||||
Thanks,
|
||||
<br>
|
||||
<span style="font-weight: 600">Solar Network Team</span>
|
||||
</p>
|
||||
<div role="separator"
|
||||
style="height: 1px; line-height: 1px; background-color: #cbd5e1; margin-top: 24px; margin-bottom: 24px">
|
||||
‍
|
||||
</div>
|
||||
<p class="mso-break-all" style="margin: 0 0 16px; font-size: 12px; line-height: 20px; color: #475569">
|
||||
@Localizer["AccountDeletionHint"]
|
||||
</p>
|
||||
<p class="mso-break-all"
|
||||
style="margin: 0; font-size: 12px; line-height: 20px; color: #475569">
|
||||
@Localizer["AlternativeLinkHint"]
|
||||
<a href="@Link" style="color: #1e293b; text-decoration: underline">@Link</a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table style="width: 100%" cellpadding="0" cellspacing="0" role="none">
|
||||
<tr>
|
||||
<td class="sm-px-6" style="padding: 24px 36px">
|
||||
<p style="margin: 0; font-size: 12px; color: #64748b">
|
||||
© 2025 Solsynth LLC. All rights
|
||||
reserved.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</EmailLayout>
|
||||
|
||||
@code {
|
||||
[Parameter] public required string Name { get; set; }
|
||||
[Parameter] public required string Link { get; set; }
|
||||
|
||||
[Inject] IStringLocalizer<EmailResource> Localizer { get; set; } = null!;
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
@using DysonNetwork.Pass.Localization
|
||||
@using Microsoft.Extensions.Localization
|
||||
@using EmailResource = DysonNetwork.Pass.Localization.EmailResource
|
||||
|
||||
<EmailLayout>
|
||||
<div style="display: none">
|
||||
@Localizer["ContactVerificationHeader"]
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
</div>
|
||||
<div role="article" aria-roledescription="email" aria-label lang="en">
|
||||
<div class="sm-px-4"
|
||||
style="background-color: #f8fafc; font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif">
|
||||
<table align="center" style="margin: 0 auto" cellpadding="0" cellspacing="0" role="none">
|
||||
<tr>
|
||||
<td style="width: 552px; max-width: 100%">
|
||||
<div role="separator" style="line-height: 24px">‍</div>
|
||||
<table style="width: 100%" cellpadding="0" cellspacing="0" role="none">
|
||||
<tr>
|
||||
<td class="sm-p-6"
|
||||
style="border-radius: 8px; background-color: #fffffe; padding: 24px 36px; border: 1px solid #e2e8f0">
|
||||
<a href="https://solian.app">
|
||||
<img src="https://solian.app/favicon.png" width="70" alt="Solar Network Logo"
|
||||
style="max-width: 100%; vertical-align: middle">
|
||||
</a>
|
||||
<div role="separator" style="line-height: 24px">‍</div>
|
||||
<h1 style="margin: 0 0 24px; font-size: 24px; line-height: 32px; font-weight: 600; color: #0f172a">
|
||||
@Localizer["UsernameFormat", Name]
|
||||
</h1>
|
||||
<p style="margin: 0 0 24px; font-size: 16px; line-height: 24px; color: #475569">
|
||||
@Localizer["ContactVerificationBody"]
|
||||
</p>
|
||||
<div>
|
||||
<a href="@Link"
|
||||
style="display: inline-block; text-decoration: none; padding: 16px 24px; font-size: 16px; line-height: 1; border-radius: 4px; color: #fffffe; background-color: #020617"
|
||||
class="hover-bg-slate-800">
|
||||
<!--[if mso]><i style="mso-font-width: 150%; mso-text-raise: 31px" hidden> </i><![endif]-->
|
||||
<span style="mso-text-raise: 16px">@Localizer["ContactVerificationButton"]</span>
|
||||
<!--[if mso]><i hidden style="mso-font-width: 150%"> ​</i><![endif]-->
|
||||
</a>
|
||||
</div>
|
||||
<div role="separator" style="line-height: 24px">‍</div>
|
||||
<p style="margin: 0; font-size: 16px; line-height: 24px; color: #475569">
|
||||
Thanks,
|
||||
<br>
|
||||
<span style="font-weight: 600">Solar Network Team</span>
|
||||
</p>
|
||||
<div role="separator"
|
||||
style="height: 1px; line-height: 1px; background-color: #cbd5e1; margin-top: 24px; margin-bottom: 24px">
|
||||
‍
|
||||
</div>
|
||||
<p class="mso-break-all" style="margin: 0 0 16px; font-size: 12px; line-height: 20px; color: #475569">
|
||||
@Localizer["ContactVerificationHint"]
|
||||
</p>
|
||||
<p class="mso-break-all"
|
||||
style="margin: 0; font-size: 12px; line-height: 20px; color: #475569">
|
||||
@Localizer["AlternativeLinkHint"]
|
||||
<a href="@Link" style="color: #1e293b; text-decoration: underline">@Link</a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table style="width: 100%" cellpadding="0" cellspacing="0" role="none">
|
||||
<tr>
|
||||
<td class="sm-px-6" style="padding: 24px 36px">
|
||||
<p style="margin: 0; font-size: 12px; color: #64748b">
|
||||
© 2025 Solsynth LLC. All rights
|
||||
reserved.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</EmailLayout>
|
||||
|
||||
@code {
|
||||
[Parameter] public required string Name { get; set; }
|
||||
[Parameter] public required string Link { get; set; }
|
||||
|
||||
[Inject] IStringLocalizer<EmailResource> Localizer { get; set; } = null!;
|
||||
}
|
||||
65
DysonNetwork.Pass/Resources/Emails/EmailLayout.razor
Normal file
65
DysonNetwork.Pass/Resources/Emails/EmailLayout.razor
Normal file
@@ -0,0 +1,65 @@
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
<!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;
|
||||
}
|
||||
|
||||
.mso-break-all {
|
||||
word-break: break-all;
|
||||
}
|
||||
</style>
|
||||
<![endif]-->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet"
|
||||
media="screen">
|
||||
<style>
|
||||
.hover-bg-slate-800:hover {
|
||||
background-color: #1e293b !important
|
||||
}
|
||||
|
||||
@@media (max-width: 600px) {
|
||||
.sm-p-6 {
|
||||
padding: 24px !important
|
||||
}
|
||||
|
||||
.sm-px-4 {
|
||||
padding-left: 16px !important;
|
||||
padding-right: 16px !important
|
||||
}
|
||||
|
||||
.sm-px-6 {
|
||||
padding-left: 24px !important;
|
||||
padding-right: 24px !important
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body
|
||||
style="margin: 0; width: 100%; background-color: #f8fafc; padding: 0; -webkit-font-smoothing: antialiased; word-break: break-word">
|
||||
@ChildContent
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@code {
|
||||
[Parameter] public RenderFragment? ChildContent { get; set; }
|
||||
}
|
||||
107
DysonNetwork.Pass/Resources/Emails/FactorCodeEmail.razor
Normal file
107
DysonNetwork.Pass/Resources/Emails/FactorCodeEmail.razor
Normal file
@@ -0,0 +1,107 @@
|
||||
@using DysonNetwork.Pass.Localization
|
||||
@using Microsoft.Extensions.Localization
|
||||
@using EmailResource = DysonNetwork.Pass.Localization.EmailResource
|
||||
|
||||
<EmailLayout>
|
||||
<div style="display: none">
|
||||
@Localizer["CodeEmailHeader"]
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
</div>
|
||||
<div role="article" aria-roledescription="email" aria-label lang="en">
|
||||
<div class="sm-px-4"
|
||||
style="background-color: #f8fafc; font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif">
|
||||
<table align="center" style="margin: 0 auto" cellpadding="0" cellspacing="0" role="none">
|
||||
<tr>
|
||||
<td style="width: 552px; max-width: 100%">
|
||||
<div role="separator" style="line-height: 24px">‍</div>
|
||||
<table style="width: 100%" cellpadding="0" cellspacing="0" role="none">
|
||||
<tr>
|
||||
<td class="sm-p-6"
|
||||
style="border-radius: 8px; background-color: #fffffe; padding: 24px 36px; border: 1px solid #e2e8f0">
|
||||
<a href="https://solian.app">
|
||||
<img src="https://solian.app/favicon.png" width="70" alt="Solar Network Logo"
|
||||
style="max-width: 100%; vertical-align: middle">
|
||||
</a>
|
||||
<div role="separator" style="line-height: 24px">‍</div>
|
||||
<h1 style="margin: 0 0 24px; font-size: 24px; line-height: 32px; font-weight: 600; color: #0f172a">
|
||||
@Localizer["UsernameFormat", Name]
|
||||
</h1>
|
||||
<p style="margin: 0 0 24px; font-size: 16px; line-height: 24px; color: #475569">
|
||||
@Localizer["CodeEmailBody"]
|
||||
</p>
|
||||
<p style="margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; line-height: 24px; font-weight: 700; letter-spacing: 8px; color: #475569">
|
||||
@Code
|
||||
</p>
|
||||
<div role="separator" style="line-height: 24px">‍</div>
|
||||
<p style="margin: 0; font-size: 16px; line-height: 24px; color: #475569">
|
||||
Thanks,
|
||||
<br>
|
||||
<span style="font-weight: 600">Solar Network Team</span>
|
||||
</p>
|
||||
<div role="separator"
|
||||
style="height: 1px; line-height: 1px; background-color: #cbd5e1; margin-top: 24px; margin-bottom: 24px">
|
||||
‍
|
||||
</div>
|
||||
<p class="mso-break-all" style="margin: 0 0 16px; font-size: 12px; line-height: 20px; color: #475569">
|
||||
@Localizer["CodeEmailHint"]
|
||||
</p>
|
||||
<p class="mso-break-all"
|
||||
style="margin: 0; font-size: 12px; line-height: 20px; color: #475569">
|
||||
@Localizer["CodeEmailHintSecondary"]
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table style="width: 100%" cellpadding="0" cellspacing="0" role="none">
|
||||
<tr>
|
||||
<td class="sm-px-6" style="padding: 24px 36px">
|
||||
<p style="margin: 0; font-size: 12px; color: #64748b">
|
||||
© 2025 Solsynth LLC. All rights
|
||||
reserved.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</EmailLayout>
|
||||
|
||||
@code {
|
||||
[Parameter] public required string Name { get; set; }
|
||||
[Parameter] public required string Code { get; set; }
|
||||
|
||||
[Inject] IStringLocalizer<EmailResource> Localizer { get; set; } = null!;
|
||||
[Inject] IStringLocalizer<SharedResource> LocalizerShared { get; set; } = null!;
|
||||
}
|
||||
114
DysonNetwork.Pass/Resources/Emails/PasswordResetEmail.razor
Normal file
114
DysonNetwork.Pass/Resources/Emails/PasswordResetEmail.razor
Normal file
@@ -0,0 +1,114 @@
|
||||
@using DysonNetwork.Pass.Localization
|
||||
@using Microsoft.Extensions.Localization
|
||||
@using EmailResource = DysonNetwork.Pass.Localization.EmailResource
|
||||
|
||||
<EmailLayout>
|
||||
<div style="display: none">
|
||||
@Localizer["PasswordResetHeader"]
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
</div>
|
||||
<div role="article" aria-roledescription="email" aria-label lang="en">
|
||||
<div class="sm-px-4"
|
||||
style="background-color: #f8fafc; font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif">
|
||||
<table align="center" style="margin: 0 auto" cellpadding="0" cellspacing="0" role="none">
|
||||
<tr>
|
||||
<td style="width: 552px; max-width: 100%">
|
||||
<div role="separator" style="line-height: 24px">‍</div>
|
||||
<table style="width: 100%" cellpadding="0" cellspacing="0" role="none">
|
||||
<tr>
|
||||
<td class="sm-p-6"
|
||||
style="border-radius: 8px; background-color: #fffffe; padding: 24px 36px; border: 1px solid #e2e8f0">
|
||||
<a href="https://solian.app">
|
||||
<img src="https://solian.app/favicon.png" width="70" alt="Solar Network Logo"
|
||||
style="max-width: 100%; vertical-align: middle">
|
||||
</a>
|
||||
<div role="separator" style="line-height: 24px">‍</div>
|
||||
<h1 style="margin: 0 0 24px; font-size: 24px; line-height: 32px; font-weight: 600; color: #0f172a">
|
||||
@Localizer["UsernameFormat", Name]
|
||||
</h1>
|
||||
<p style="margin: 0 0 24px; font-size: 16px; line-height: 24px; color: #475569">
|
||||
@Localizer["PasswordResetBody"]
|
||||
</p>
|
||||
<div>
|
||||
<a href="@Link"
|
||||
style="display: inline-block; text-decoration: none; padding: 16px 24px; font-size: 16px; line-height: 1; border-radius: 4px; color: #fffffe; background-color: #020617"
|
||||
class="hover-bg-slate-800">
|
||||
<!--[if mso]><i style="mso-font-width: 150%; mso-text-raise: 31px" hidden> </i><![endif]-->
|
||||
<span style="mso-text-raise: 16px">@Localizer["PasswordResetButton"]</span>
|
||||
<!--[if mso]><i hidden style="mso-font-width: 150%"> ​</i><![endif]-->
|
||||
</a>
|
||||
</div>
|
||||
<div role="separator" style="line-height: 24px">‍</div>
|
||||
<p style="margin: 0; font-size: 16px; line-height: 24px; color: #475569">
|
||||
Thanks,
|
||||
<br>
|
||||
<span style="font-weight: 600">Solar Network Team</span>
|
||||
</p>
|
||||
<div role="separator"
|
||||
style="height: 1px; line-height: 1px; background-color: #cbd5e1; margin-top: 24px; margin-bottom: 24px">
|
||||
‍
|
||||
</div>
|
||||
<p class="mso-break-all" style="margin: 0 0 16px; font-size: 12px; line-height: 20px; color: #475569">
|
||||
@Localizer["PasswordResetHint"]
|
||||
</p>
|
||||
<p class="mso-break-all"
|
||||
style="margin: 0; font-size: 12px; line-height: 20px; color: #475569">
|
||||
@Localizer["AlternativeLinkHint"]
|
||||
<a href="@Link" style="color: #1e293b; text-decoration: underline">@Link</a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table style="width: 100%" cellpadding="0" cellspacing="0" role="none">
|
||||
<tr>
|
||||
<td class="sm-px-6" style="padding: 24px 36px">
|
||||
<p style="margin: 0; font-size: 12px; color: #64748b">
|
||||
© 2025 Solsynth LLC. All rights
|
||||
reserved.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</EmailLayout>
|
||||
|
||||
@code {
|
||||
[Parameter] public required string Name { get; set; }
|
||||
[Parameter] public required string Link { get; set; }
|
||||
|
||||
[Inject] IStringLocalizer<EmailResource> Localizer { get; set; } = null!;
|
||||
[Inject] IStringLocalizer<SharedResource> LocalizerShared { get; set; } = null!;
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
@using Microsoft.Extensions.Localization
|
||||
@using EmailResource = DysonNetwork.Pass.Localization.EmailResource
|
||||
|
||||
<EmailLayout>
|
||||
<div style="display: none">
|
||||
@Localizer["RegConfirmHeader"]
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
 ͏  ͏  ͏  ͏  ͏
|
||||
</div>
|
||||
<div role="article" aria-roledescription="email" aria-label lang="en">
|
||||
<div class="sm-px-4"
|
||||
style="background-color: #f8fafc; font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif">
|
||||
<table align="center" style="margin: 0 auto" cellpadding="0" cellspacing="0" role="none">
|
||||
<tr>
|
||||
<td style="width: 552px; max-width: 100%">
|
||||
<div role="separator" style="line-height: 24px">‍</div>
|
||||
<table style="width: 100%" cellpadding="0" cellspacing="0" role="none">
|
||||
<tr>
|
||||
<td class="sm-p-6"
|
||||
style="border-radius: 8px; background-color: #fffffe; padding: 24px 36px; border: 1px solid #e2e8f0">
|
||||
<a href="https://solian.app">
|
||||
<img src="https://solian.app/favicon.png" width="70" alt="Solar Network Logo"
|
||||
style="max-width: 100%; vertical-align: middle">
|
||||
</a>
|
||||
<div role="separator" style="line-height: 24px">‍</div>
|
||||
<h1 style="margin: 0 0 24px; font-size: 24px; line-height: 32px; font-weight: 600; color: #0f172a">
|
||||
@Localizer["UsernameFormat", Name]
|
||||
</h1>
|
||||
<p style="margin: 0 0 24px; font-size: 16px; line-height: 24px; color: #475569">
|
||||
@Localizer["RegConfirmBody"]
|
||||
</p>
|
||||
<div>
|
||||
<a href="@Link"
|
||||
style="display: inline-block; text-decoration: none; padding: 16px 24px; font-size: 16px; line-height: 1; border-radius: 4px; color: #fffffe; background-color: #020617"
|
||||
class="hover-bg-slate-800">
|
||||
<!--[if mso]><i style="mso-font-width: 150%; mso-text-raise: 31px" hidden> </i><![endif]-->
|
||||
<span style="mso-text-raise: 16px">@Localizer["RegConfirmButton"]</span>
|
||||
<!--[if mso]><i hidden style="mso-font-width: 150%"> ​</i><![endif]-->
|
||||
</a>
|
||||
</div>
|
||||
<div role="separator" style="line-height: 24px">‍</div>
|
||||
<p style="margin: 0; font-size: 16px; line-height: 24px; color: #475569">
|
||||
Thanks,
|
||||
<br>
|
||||
<span style="font-weight: 600">Solar Network Team</span>
|
||||
</p>
|
||||
<div role="separator"
|
||||
style="height: 1px; line-height: 1px; background-color: #cbd5e1; margin-top: 24px; margin-bottom: 24px">
|
||||
‍
|
||||
</div>
|
||||
<p class="mso-break-all"
|
||||
style="margin: 0; font-size: 12px; line-height: 20px; color: #475569">
|
||||
@Localizer["AlternativeLinkHint"]
|
||||
<a href="@Link" style="color: #1e293b; text-decoration: underline">@Link</a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table style="width: 100%" cellpadding="0" cellspacing="0" role="none">
|
||||
<tr>
|
||||
<td class="sm-px-6" style="padding: 24px 36px">
|
||||
<p style="margin: 0; font-size: 12px; color: #64748b">
|
||||
© 2025 Solsynth LLC. All rights
|
||||
reserved.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</EmailLayout>
|
||||
|
||||
@code {
|
||||
[Parameter] public required string Name { get; set; }
|
||||
[Parameter] public required string Link { get; set; }
|
||||
|
||||
[Inject] IStringLocalizer<EmailResource> Localizer { get; set; } = null!;
|
||||
}
|
||||
Reference in New Issue
Block a user