146 lines
2.9 KiB
HTML
146 lines
2.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description" content="zero2prod">
|
|
<meta name="keywords" content="rust backend programming">
|
|
<title>
|
|
{% block title %}Updates{% endblock %}
|
|
- zero2prod</title>
|
|
<style>
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
line-height: 1.6;
|
|
color: #374151;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: #f9fafb;
|
|
}
|
|
.container {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
background-color: #ffffff;
|
|
border-radius: 8px;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
}
|
|
.header {
|
|
background: linear-gradient(135deg, #3b82f6, #6366f1);
|
|
color: white;
|
|
padding: 32px 24px;
|
|
text-align: center;
|
|
}
|
|
.header h1 {
|
|
margin: 0;
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
}
|
|
.header p {
|
|
margin: 8px 0 0 0;
|
|
opacity: 0.9;
|
|
font-size: 16px;
|
|
}
|
|
.content {
|
|
padding: 32px 24px;
|
|
}
|
|
.post-preview {
|
|
background-color: #f8fafc;
|
|
border-left: 4px solid #3b82f6;
|
|
padding: 24px;
|
|
margin: 24px 0;
|
|
border-radius: 0 6px 6px 0;
|
|
}
|
|
.post-title {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
margin: 0 0 12px 0;
|
|
line-height: 1.3;
|
|
}
|
|
.post-excerpt {
|
|
color: #6b7280;
|
|
margin: 0;
|
|
font-size: 15px;
|
|
}
|
|
.cta-button {
|
|
display: inline-block;
|
|
background: linear-gradient(135deg, #3b82f6, #6366f1);
|
|
color: white;
|
|
padding: 14px 28px;
|
|
text-decoration: none;
|
|
border-radius: 6px;
|
|
font-weight: 600;
|
|
margin: 24px 0;
|
|
transition: transform 0.2s;
|
|
}
|
|
.cta-button:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
.footer {
|
|
background-color: #f8fafc;
|
|
padding: 24px;
|
|
border-top: 1px solid #e5e7eb;
|
|
text-align: center;
|
|
}
|
|
.footer p {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
color: #6b7280;
|
|
}
|
|
.footer a {
|
|
color: #3b82f6;
|
|
text-decoration: none;
|
|
}
|
|
.unsubscribe {
|
|
font-size: 12px;
|
|
color: #9ca3af;
|
|
margin-top: 16px;
|
|
}
|
|
@media only screen and (max-width: 600px) {
|
|
.container {
|
|
margin: 0;
|
|
border-radius: 0;
|
|
}
|
|
.header,
|
|
.content,
|
|
.footer {
|
|
padding: 24px 16px;
|
|
}
|
|
.header h1 {
|
|
font-size: 20px;
|
|
}
|
|
.post-preview {
|
|
padding: 16px;
|
|
margin: 16px 0;
|
|
}
|
|
.post-title {
|
|
font-size: 18px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="header">
|
|
<h1>Updates from zero2prod</h1>
|
|
<p>Fresh insights on Rust backend development</p>
|
|
</div>
|
|
<div class="content">
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
<div class="footer">
|
|
<p>
|
|
<strong>zero2prod</strong>
|
|
<br>
|
|
Building better backends with Rust
|
|
</p>
|
|
<p>
|
|
<a href="{{ base_url }}">Visit the blog</a> •
|
|
<a href="{{ base_url }}/unsubscribe?token=UNSUBSCRIBE_TOKEN">Unsubscribe</a>
|
|
</p>
|
|
<p class="unsubscribe">You're receiving this because you subscribed to the zero2prod newsletter.</p>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|