style(email): update email template with responsive design
This commit is contained in:
parent
b0e7def24f
commit
7dd8e5d331
@ -1,49 +1,88 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>Abiball - Freie Waldorfschule Bremen</title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
.email-container {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
@media screen and (max-width: 600px) {
|
||||
.email-container {
|
||||
width: 100% !important;
|
||||
padding: 10px !important;
|
||||
}
|
||||
.content-block {
|
||||
padding: 15px !important;
|
||||
}
|
||||
.header-image {
|
||||
width: 100% !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
h1 {
|
||||
font-size: 24px !important;
|
||||
}
|
||||
h2 {
|
||||
font-size: 20px !important;
|
||||
}
|
||||
p {
|
||||
font-size: 16px !important;
|
||||
}
|
||||
.details-box {
|
||||
padding: 15px !important;
|
||||
margin: 15px 0 !important;
|
||||
}
|
||||
.cta-button {
|
||||
width: 100% !important;
|
||||
box-sizing: border-box !important;
|
||||
margin: 10px 0 !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="margin: 0; padding: 0; font-family: Arial, sans-serif; background-color: #f6f6f6;">
|
||||
<table role="presentation" cellpadding="0" cellspacing="0" width="100%" style="background-color: #f6f6f6;">
|
||||
<tr>
|
||||
<td style="padding: 20px 0;">
|
||||
<table role="presentation" cellpadding="0" cellspacing="0" width="300" style="margin: 0 auto; background-color: #ffffff; border-radius: 8px; overflow: hidden;">
|
||||
<tr>
|
||||
<td style="background-color: #372064; padding: 10px 5px 5px; text-align: center;">
|
||||
<img src="{{ email.image('@images/header.jpeg') }}" alt="Abiball" style="width: 290px; height: auto;">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="padding: 0;">
|
||||
<img src="{{ email.image('@images/background.jpeg') }}" alt="Celebration" style="width: 100%; max-width: 300px; height: auto; display: block;">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="padding: 40px;">
|
||||
<h2 style="text-align: center; color: #333333; font-size: 24px; margin-bottom: 20px;">You're Invited!</h2>
|
||||
<p style="text-align: center; color: #666666; font-size: 16px; line-height: 1.5; margin-bottom: 30px;">
|
||||
Join us for an evening of celebration, dancing, and memories at the Freie Waldorfschule Bremen Graduation Ball
|
||||
<body style="margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: #f6f6f6; -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.4; color: #333333;">
|
||||
<div style="width: 100%; background-color: #f6f6f6; padding: 15px 0;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;" class="email-container" align="center">
|
||||
<tr>
|
||||
<td style="background-color: #372064; padding: 15px; text-align: center; border-radius: 8px 8px 0 0;">
|
||||
<img src="{{ email.image('@images/header.jpeg') }}" alt="Abiball" class="header-image" style="width: 100%; max-width: 500px; height: auto; border-radius: 4px;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background-color: #ffffff; padding: 0;">
|
||||
<img src="{{ email.image('@images/background.jpeg') }}" alt="Feier" style="width: 100%; height: auto; display: block;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background-color: #ffffff;" class="content-block">
|
||||
<div style="padding: 30px 20px; text-align: center;">
|
||||
<h1 style="color: #372064; font-size: 32px; margin: 0 0 20px 0; font-weight: 600;">Du bist eingeladen!</h1>
|
||||
<p style="color: #666666; font-size: 18px; line-height: 1.6; margin: 0 0 30px 0;">
|
||||
Sei dabei bei einem Abend voller Feierlichkeiten, Tanz und unvergesslicher Momente beim Abiball der Freien Waldorfschule Bremen
|
||||
</p>
|
||||
|
||||
<table role="presentation" cellpadding="0" cellspacing="0" width="100%" style="background-color: #f8f9fa; border-radius: 8px; margin-bottom: 30px;">
|
||||
<tr>
|
||||
<td style="padding: 25px;">
|
||||
<h3 style="color: #333333; font-size: 18px; margin: 0 0 15px 0;">Event Details</h3>
|
||||
<p style="color: #666666; margin: 5px 0;">Date: [Date]</p>
|
||||
<p style="color: #666666; margin: 5px 0;">Time: [Time]</p>
|
||||
<p style="color: #666666; margin: 5px 0;">Address: [Address]</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="details-box" style="background-color: #f8f9fa; border-radius: 8px; padding: 25px 20px; margin: 0 0 25px 0; box-shadow: 0 2px 4px rgba(0,0,0,0.05);">
|
||||
<h2 style="color: #372064; font-size: 24px; margin: 0 0 20px 0; font-weight: 500;">Veranstaltungsdetails</h2>
|
||||
<p style="color: #666666; margin: 10px 0; font-size: 16px;">Datum: [Datum]</p>
|
||||
<p style="color: #666666; margin: 10px 0; font-size: 16px;">Uhrzeit: [Uhrzeit]</p>
|
||||
<p style="color: #666666; margin: 10px 0; font-size: 16px;">Adresse: [Adresse]</p>
|
||||
</div>
|
||||
<a href="#" class="cta-button" style="display: inline-block; background-color: #372064; color: #ffffff; text-decoration: none; padding: 15px 30px; border-radius: 6px; font-weight: 500; margin-top: 20px;">Jetzt zusagen</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user