keycloak/themes/base/email/html/password-reset.ftl
2025-02-18 15:55:19 +03:00

231 lines
6.8 KiB
Plaintext

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- Sets size and scale of the viewport. -->
<meta name="viewport" content="width=device-width" initial-scale="1">
<!-- IE=Edge makes good things happen on Windows Phones. (https://www.emailonacid.com/blog/article/email-development/demystifying-meta-tags-in-email) -->
<!--[if !mso]>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<![endif]-->
<!-- Disables auto-scaling in iOS Mail 10. (https://litmus.com/blog/9-things-you-need-to-know-about-email-in-ios-10) -->
<meta name="x-apple-disable-message-reformatting">
<!-- Desktop Outlook defaults to Times New Roman. Forces a less obscene fallback font. -->
<!--[if mso]>
<style>
* { font-family: sans-serif !important; }
</style>
<![endif]-->
<style>
/* Box sizing. Gets decent support. (https://freshmail.com/developers/best-practices-for-email-coding) */
*,
*:after,
*:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* Prevents small text resizing. */
* {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
/* Basic reset. Removes default spacing around emails in various clients. (https://templates.mailchimp.com/development/css/reset-styles) */
html,
body,
.document {
width: 100% !important;
height: 100% !important;
margin: 0;
padding: 0;
color:#000000;
}
/* Improves text rendering when supported. */
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
/* Centers email to device width in Android 4.4. (https://blog.jmwhite.co.uk/2015/09/19/revealing-why-emails-appear-off-centre-in-android-4-4-kitkat) */
div[style*="margin: 16px 0"] {
margin: 0 !important;
}
/* Removes added spacing within tables in Outlook. (https://templates.mailchimp.com/development/css/client-specific-styles) */
table,
td {
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
}
/* Removes added spacing within tables in WebKit. */
table {
border-spacing: 0;
border-collapse: collapse;
table-layout: fixed;
margin: 0 auto;
}
/* Responsive images. Improves rendering of scaled images in IE. */
img {
-ms-interpolation-mode: bicubic;
max-width: 100%;
border: 0;
}
/* Overrules triggered links in iOS. */
*[x-apple-data-detectors] {
color: inherit !important;
text-decoration: none !important;
}
/* Overrules triggered links in Gmail. */
.x-gmail-data-detectors,
.x-gmail-data-detectors *,
.aBn {
border-bottom: 0 !important;
cursor: default !important;
}
/* Adds hover effects on buttons. */
.btn {
-webkit-transition: all 200ms ease;
transition: all 200ms ease;
min-width:160px;
text-align: center;
background-color: #000000;
}
.btn:hover {
background-color: #222222;
border-color: #222222;
min-width:160px;
border-radius: 4px;
}
h1{
font-size: 48px;
line-height: 56px;
margin-bottom: 0px;
margin-top: 0px;
padding-bottom: 8px;
}
h2{
font-size: 24px;
line-height: 32px;
margin-bottom: 0px;
margin-top: 0px;
}
#header{
padding: 56px;
text-align: center;
color: #191919;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
background-color: #ffffff;
}
a{
color:#000000;
text-decoration: underline;
}
a:hover{
color:#000000
}
#bottom{
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
/* Media queries o' doom. */
@media screen and (max-width: 450px) and (-webkit-min-device-pixel-ratio:0){
/* Transitions container to a fluid layout. */
.container {
width: 95%;
margin: auto;
}
/* Collapses table cells into full-width rows. */
.stack {
display: block;
width: 100%;
max-width: 100%;
}
/* Centers and expands CTA. */
.btn {
display: block;
width: 100%;
text-align: center;
}
}
</style>
</head>
<body bgcolor="#F7F7F7">
<!-- Preheader text. Visible in inbox preview, not in email body. -->
<div style="display: none; max-height: 0px; overflow: hidden;">
<!-- Preheader message here -->
A request has been received to change your password
</div>
<!-- Hack to manage presentation of preheader text. (https://litmus.com/blog/the-little-known-preview-text-hack-you-may-want-to-use-in-every-email) -->
<div style="display: none; max-height: 0px; overflow: hidden;">&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;</div>
<table bgcolor="#F7F7F7" role="presentation" aria-hidden="true" cellspacing="0" cellpadding="0" border="0" align="center" class="document" style="font-family: Arial, sans-serif, 'Open Sans';">
<tr>
<td valign="top">
<!-- Main -->
<table role="presentation" aria-hidden="true" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" class="container">
<tr>
<td>
<table role="presentation" aria-hidden="true" border="0" align="center" width="576">
<tr style="height: 1rem;"></tr>
<tr>
<td style="font-family: Arial, sans-serif, 'Open Sans'; font-size: 16px; line-height: 24px;" id="header">
<h1 style="margin:0; mso-line-height-rule:exactly;">Reset your password</h1>
</td>
</tr>
<tr>
<td style="padding-top:24px; text-align: center;">
<h2>We received a request to change your password</h2>
<br/>
</td>
</tr>
<tr>
<td style="border-radius: 4px; display: flex">
<a class="btn" href="${link}" target="_blank" style="color: #ffffff; text-decoration: none; padding: 16px; border: 0px solid #000000; display: inline-block; margin: auto">Reset password</a>
</td>
</tr>
<tr>
<td style="font-size: small; text-align: center; padding-top: 24px;">
If you did not request a new password, no further action is required.
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="32" cellpadding="32">
<tr>
<td>
</td>
</tr>
</table>
</body>
</html>