Skip to content

Commit

Permalink
modernise email a lil and update min rss date
Browse files Browse the repository at this point in the history
  • Loading branch information
rndrmu committed Jul 11, 2024
1 parent f3c9e2d commit 1f465b7
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub async fn post_rss(ctx: serenity::Context, data: Data) -> Result<(), Error> {

// to combat spam, filter out old items (all before July 11th 2024)
if date
< chrono::DateTime::parse_from_rfc2822("Wed, 11 Jul 2024 00:00:00 +0200")
< chrono::DateTime::parse_from_rfc2822("Thu, 11 Jul 2024 00:00:00 +0200")
.unwrap()
{
continue;
Expand Down
70 changes: 53 additions & 17 deletions templates/verification_email.html
Original file line number Diff line number Diff line change
@@ -1,54 +1,90 @@
<html>
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Verification Email</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f5f5f5;
background-color: #121212;
color: #ffffff;
}

.container {
text-align: center;
background-color: #ffffff;
max-width: 600px;
margin: 30px auto;
background-color: #1e1e1e;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
text-align: center;
}

h1 {
color: #333333;
text-align: center;
color: #4CAF50;
margin-bottom: 20px;
}

p {
color: #666666;
color: #cccccc;
line-height: 1.6;
margin-bottom: 20px;
}



.hash {
background-color: #eeeeee;
padding: 10px;
display: inline-block;
background-color: #333333;
padding: 10px 20px;
border-radius: 5px;
font-family: monospace;
cursor: pointer;
user-select: all;
transition: background-color 0.3s;
margin-right: 10px;
margin: 10px 0;
color: #ffffff;
}

.hash:hover {
background-color: #dddddd;
background-color: #444444;
}

.footer {
text-align: center;
padding: 10px;
font-size: 12px;
color: #aaaaaa;
margin-top: 20px;
border-top: 1px solid #333333;
}

.footer a {
color: #aaaaaa;
text-decoration: none;
}

.footer a:hover {
text-decoration: underline;
}
</style>
</head>

<body>
<div class="container">
<h1>{{ botname }} Verification</h1>
<p>Here is your verification code</p>
<h1>{{ botname }} Verification</h1>
<p>Here is your verification code:</p>
<div class="hash">{{ code }}</div>
<p>Use this with the <code>/verify code</code> Command</p>
<p>Or <code>/verifizieren code</code> if your Discord Client is in German</p>
<p>Use this with the <code>/verify code</code> command</p>
<p>Or <code>/verifizieren code</code> if your Discord client is in German</p>
<div class="footer">
<p>If you did not request this code, please ignore this email or contact support.</p>
<p>&copy; 2024 {{ botname }}. All rights reserved.</p>
<p><a href="#">Unsubscribe</a> | <a href="#">Privacy Policy</a></p>
</div>
</div>
</body>

</html>

0 comments on commit 1f465b7

Please sign in to comment.