-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add base template * fix: use internal css instead of inline * fix: update forget password template * fix: remove unused tags * fix: update file name
- Loading branch information
1 parent
af6a459
commit cf21c55
Showing
3 changed files
with
158 additions
and
12 deletions.
There are no files selected for viewing
80 changes: 80 additions & 0 deletions
80
DotnetFoundation/DotnetFoundation.Api/wwwroot/Templates/Emails/BaseTemplate.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,80 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Password Reset</title> | ||
<style> | ||
table { | ||
width: 100%; | ||
max-width: 600px; | ||
margin: 20px auto; | ||
border-radius: 8px; | ||
overflow: hidden; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
background: #e5ebe1; | ||
font-family: "Arial", sans-serif; | ||
} | ||
|
||
th { | ||
text-align: center; | ||
padding: 20px; | ||
} | ||
|
||
.logo { | ||
max-width: 90px; | ||
border-radius: 8px; | ||
} | ||
|
||
h2 { | ||
color: #40b01b; | ||
margin-top: 0px; | ||
} | ||
|
||
td { | ||
padding: 20px; | ||
} | ||
|
||
.footer { | ||
background-color: #b3c6a6; | ||
text-align: center; | ||
padding: 10px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th colspan="2"> | ||
<img | ||
src="https://i.postimg.cc/3wC1mFSj/logo.png" | ||
alt="Logo Image" | ||
class="logo" | ||
/> | ||
<h2>FoundationX</h2> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td colspan="2"> | ||
<p>Hello,</p> | ||
<p> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Sed | ||
commodi dolor cupiditate sit consequatur nostrum, alias, excepturi | ||
voluptas recusandae quaerat placeat eveniet soluta! Impedit quasi | ||
iste rem quisquam natus illum? | ||
</p> | ||
<p>Thank you,<br />FoundationX Team</p> | ||
</td> | ||
</tr> | ||
</tbody> | ||
<tfoot> | ||
<tr class="footer"> | ||
<td>Contact us at <strong>[email protected]</strong></td> | ||
</tr> | ||
</tfoot> | ||
</table> | ||
</body> | ||
</html> |
12 changes: 0 additions & 12 deletions
12
DotnetFoundation/DotnetFoundation.Api/wwwroot/Templates/Emails/ForgetPasswordTemplate.html
This file was deleted.
Oops, something went wrong.
78 changes: 78 additions & 0 deletions
78
DotnetFoundation/DotnetFoundation.Api/wwwroot/Templates/Emails/ResetPasswordTemplate.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,78 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Password Reset</title> | ||
<style> | ||
table { | ||
width: 100%; | ||
max-width: 600px; | ||
margin: 20px auto; | ||
border-radius: 8px; | ||
overflow: hidden; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
background: #e5ebe1; | ||
font-family: "Arial", sans-serif; | ||
} | ||
|
||
th { | ||
text-align: center; | ||
padding: 20px; | ||
} | ||
|
||
.logo { | ||
max-width: 90px; | ||
border-radius: 8px; | ||
} | ||
|
||
h2 { | ||
color: #40b01b; | ||
margin-top: 0px; | ||
} | ||
|
||
td { | ||
padding: 20px; | ||
} | ||
|
||
.footer { | ||
background-color: #b3c6a6; | ||
text-align: center; | ||
padding: 10px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th colspan="2"> | ||
<img | ||
src="https://i.postimg.cc/3wC1mFSj/logo.png" | ||
alt="Logo Image" | ||
class="logo" | ||
/> | ||
<h2>FoundationX</h2> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td colspan="2" style="padding: 20px"> | ||
<p>Hello,</p> | ||
<div> | ||
<strong>Use this token to reset your password.</strong> | ||
<p><strong>Token :</strong> {body}</p> | ||
</div> | ||
<p>Thank you,<br />FoundationX Team</p> | ||
</td> | ||
</tr> | ||
</tbody> | ||
<tfoot> | ||
<tr class="footer"> | ||
<td>Contact us at <strong>[email protected]</strong></td> | ||
</tr> | ||
</tfoot> | ||
</table> | ||
</body> | ||
</html> |