feat: Enhance email templates and add plain text support for improved deliverability

This commit is contained in:
Christian Krakau-Louis
2025-04-17 22:22:09 +02:00
parent 6753444daf
commit 828719b318
13 changed files with 663 additions and 269 deletions
+70 -36
View File
@@ -12,67 +12,101 @@
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #f9f9f9;
}
.container {
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
overflow: hidden;
}
.header {
background-color: #2D7738;
padding: 20px;
padding: 25px;
text-align: center;
color: white;
border-radius: 5px 5px 0 0;
}
.content {
padding: 30px;
background-color: #ffffff;
}
.feature-list {
background-color: #f5f5f5;
padding: 20px;
border: 1px solid #ddd;
border-top: none;
border-radius: 0 0 5px 5px;
margin: 20px 0;
border-radius: 8px;
}
.button-container {
margin: 25px 0;
text-align: center;
}
.button {
display: inline-block;
background-color: #2D7738;
color: white;
text-decoration: none;
padding: 10px 20px;
padding: 12px 25px;
border-radius: 5px;
margin: 20px 0;
font-weight: 500;
}
.getting-started {
margin-top: 20px;
padding: 15px;
background-color: #e8f5e9;
border-radius: 5px;
border-left: 4px solid #2D7738;
}
.footer {
margin-top: 20px;
font-size: 12px;
padding: 20px;
text-align: center;
font-size: 12px;
color: #777;
border-top: 1px solid #eaeaea;
}
</style>
</head>
<body>
<div class="header">
<h1>Welcome to LeagueLedger!</h1>
</div>
<div class="content">
<p>Hello {{ username }},</p>
<div class="container">
<div class="header">
<h1>Welcome to LeagueLedger!</h1>
</div>
<p>Welcome to LeagueLedger! We're excited to have you join our community.</p>
<div class="content">
<p>Hello {{ username }},</p>
<p>Thank you for joining LeagueLedger! We're delighted to have you as part of our community of pub quiz enthusiasts.</p>
<div class="feature-list">
<h3>With your new account, you can:</h3>
<ul>
<li><strong>Join or create teams</strong> - Connect with friends and form your pub quiz dream team</li>
<li><strong>Track your progress</strong> - Keep a record of all your quiz results in one place</li>
<li><strong>Earn achievements</strong> - Get recognition for your team's accomplishments</li>
<li><strong>Compete on leaderboards</strong> - See how your team ranks against others</li>
<li><strong>Scan QR codes</strong> - Easily record your points after quiz nights</li>
</ul>
</div>
<div class="getting-started">
<h3>Getting Started</h3>
<p>The best way to begin is to either join an existing team or create your own. Visit your dashboard to get started!</p>
</div>
<div class="button-container">
<a href="{{ base_url }}/dashboard" class="button">Go to My Dashboard</a>
</div>
<p>If you have any questions or need assistance, you can reply to this email or visit our help center.</p>
<p>We're excited to see you and your team climb the leaderboards!</p>
<p>Best regards,<br>The LeagueLedger Team</p>
</div>
<p>With LeagueLedger, you can:</p>
<ul>
<li>Track your team's progress</li>
<li>Participate in events</li>
<li>Collect points and earn achievements</li>
<li>Connect with other teams and players</li>
</ul>
<p>If you have any questions or need assistance, feel free to reach out to our support team.</p>
<p style="text-align: center;">
<a href="{{ base_url }}/dashboard" class="button">Go to Dashboard</a>
</p>
<p>Best regards,<br>The LeagueLedger Team</p>
</div>
<div class="footer">
<p>© LeagueLedger. All rights reserved.</p>
<p>This is an automated message, please do not reply to this email.</p>
<div class="footer">
<p>© 2025 LeagueLedger. All rights reserved.</p>
<p>This email was sent to welcome you to the LeagueLedger platform.</p>
</div>
</div>
</body>
</html>