schon/engine/vibes_auth/emailing/templates/campaign_base.html
2026-01-26 03:23:41 +03:00

146 lines
3.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
{% load static i18n %}
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ subject }}</title>
<style>
body, table, td, a {
text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0 !important;
padding: 0 !important;
width: 100% !important;
font-family: Arial, Helvetica, sans-serif;
line-height: 1.6;
color: #333333;
background-color: #f4f4f4;
}
img {
max-width: 100%;
height: auto;
border: 0;
outline: none;
text-decoration: none;
}
.email-wrapper {
width: 100%;
padding: 20px 0;
background-color: #f4f4f4;
}
.email-container {
max-width: 600px;
margin: 0 auto;
background-color: #ffffff;
}
.header {
background-color: #000000;
padding: 20px;
text-align: center;
}
.header img {
width: 120px;
height: auto;
}
.content {
padding: 30px 20px;
border-left: 3px solid #000000;
border-right: 3px solid #000000;
}
.content h1, .content h2, .content h3 {
margin-top: 0;
color: #000000;
}
.content p {
margin: 0 0 15px 0;
}
.content a {
color: #000000;
}
.button {
background-color: #000000;
color: #ffffff !important;
padding: 12px 24px;
text-decoration: none;
display: inline-block;
margin: 15px 0;
font-weight: bold;
transition: background-color 0.2s;
}
.button:hover {
background-color: #333333;
}
.footer {
background-color: #000000;
padding: 20px;
text-align: center;
font-size: 12px;
color: #888888;
}
.footer a {
color: #888888;
text-decoration: underline;
}
.unsubscribe {
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid #333333;
}
@media only screen and (max-width: 600px) {
.email-container {
width: 100% !important;
}
.content {
padding: 20px 15px;
}
}
</style>
</head>
<body>
<div class="email-wrapper">
<table class="email-container" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="header">
<img src="{% static 'logo.png' %}" alt="{{ project_name }}" width="120">
</td>
</tr>
<tr>
<td class="content">
{% block content %}
{{ content|safe }}
{% endblock %}
</td>
</tr>
<tr>
<td class="footer">
<p>&copy; {% now "Y" %} {{ project_name }}. {% trans "All rights reserved" %}.</p>
<div class="unsubscribe">
<p>{% trans "You received this email because you subscribed to our newsletter." %}</p>
<p><a href="{{ unsubscribe_url }}">{% trans "Unsubscribe" %}</a></p>
</div>
</td>
</tr>
</table>
</div>
</body>
</html>