avtopost.kultmost.ru/templates/email/new_post.html

79 lines
2.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gallery Email</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f8f9fa;
color: #333;
margin: 0;
padding: 0;
}
.container {
max-width: 600px;
margin: 20px auto;
background: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.header {
background-color: #007bff;
color: white;
text-align: center;
padding: 15px;
}
.content {
padding: 20px;
}
.description {
margin-bottom: 20px;
font-size: 16px;
line-height: 1.6;
}
.gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 10px;
}
.gallery img {
width: 100%;
border-radius: 4px;
}
.footer {
background-color: #f1f1f1;
text-align: center;
padding: 10px;
font-size: 12px;
color: #555;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h2>{{ data.post.title }}</h2>
<h2>{{ data.post.author }}</h2>
<h2>{{ data.post.grade }}</h2>
</div>
<div class="content">
<div class="gallery">
{% for img in data.post.medias %}
<img src="https://avtopost.kultmost.ru/b/posts/{{ img }}" alt="Gallery Image" crossorigin="anonymous" fetchpriority="high" loading="eager">
{% endfor %}
<span>На Культмост добавлена новая картина 🖼</span>
<!-- : <a href="https://kultmost.ru/post/{{ data.post.id }}">Посмотреть</a> -->
</div>
</div>
<div class="footer">
<p>Спасибо за просмотр нашей галереи!</p>
</div>
</div>
</body>
</html>