111 lines
3.4 KiB
Plaintext
111 lines
3.4 KiB
Plaintext
package emailView
|
|
|
|
templ RegistrationEmail(name string, link string) {
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Email Verification</title>
|
|
<style>
|
|
body, html {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: Arial, sans-serif;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.container {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
h1 {
|
|
color: #333;
|
|
}
|
|
|
|
.button {
|
|
display: inline-block;
|
|
padding: 10px 20px;
|
|
background-color: black;
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.button:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Email Verification</h1>
|
|
<p>Dear {name},</p>
|
|
<p>Please verify your email address by clicking the button below:</p>
|
|
<a href={ templ.SafeURL(link)} class="button">Verify Email</a>
|
|
<p>Or copy and paste this URL into a new tab of your browser: <a href={ templ.SafeURL(link)}><br/>{link}</a></p>
|
|
<p>If you did not request this verification, please disregard this email.</p>
|
|
<p>Thank you, <br/> The Filekeeper Team</p>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
}
|
|
|
|
templ ForgotPassword(name string, link string) {
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Email Verification</title>
|
|
<style>
|
|
body, html {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: Arial, sans-serif;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.container {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
h1 {
|
|
color: #333;
|
|
}
|
|
|
|
.button {
|
|
display: inline-block;
|
|
padding: 10px 20px;
|
|
background-color: black;
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.button:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Password Change Request</h1>
|
|
<p>Dear {name},</p>
|
|
<p>Please verify your password change request by clicking the button below:</p>
|
|
<a href={ templ.SafeURL(link)} class="button">Verify Password Change</a>
|
|
<p>Or copy and paste this URL into a new tab of your browser: <a href={ templ.SafeURL(link)}><br/>{link}</a></p>
|
|
<p>If you did not request this password change, please disregard this email.</p>
|
|
<p>Thank you, <br/> The Filekeeper Team</p>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
} |