Files
2026-01-16 22:20:18 +03:00

200 lines
5.7 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Bitcoin Monitor{% endblock %}</title>
<style>
/* Gruvbox color scheme matching dashboard */
:root {
--bg-primary: #282828;
--bg-secondary: #3c3836;
--bg-tertiary: #504945;
--text-primary: #ebdbb2;
--text-secondary: #d5c4a1;
--accent-red: #cc241d;
--accent-yellow: #d79921;
--accent-blue: #458588;
--accent-green: #98971a;
--accent-purple: #b16286;
}
body {
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace, Arial, sans-serif;
line-height: 1.6;
color: #333333;
max-width: 600px;
margin: 0 auto;
padding: 20px;
background: #f5f5f5;
}
.email-container {
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.email-header {
background: var(--bg-primary);
color: var(--text-primary);
padding: 25px;
text-align: center;
}
.email-header h1 {
margin: 0;
font-size: 24px;
font-weight: bold;
}
.email-header .subtitle {
color: var(--text-secondary);
margin-top: 8px;
font-size: 14px;
}
.email-body {
padding: 25px;
}
.alert-banner {
padding: 15px;
border-radius: 8px;
margin-bottom: 25px;
font-weight: bold;
text-align: center;
}
.alert-dip { background: #f8d7da; color: #721c24; border-left: 5px solid var(--accent-red); }
.alert-peak { background: #fff3cd; color: #856404; border-left: 5px solid var(--accent-yellow); }
.alert-system { background: #cce5ff; color: #004085; border-left: 5px solid var(--accent-blue); }
.alert-digest { background: #d4edda; color: #155724; border-left: 5px solid var(--accent-green); }
.metric-card {
background: #f8f9fa;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
border-left: 4px solid var(--accent-purple);
}
.metric-value {
font-size: 28px;
font-weight: bold;
color: var(--accent-purple);
margin: 10px 0;
}
.metric-label {
color: #6c757d;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 1px;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
margin: 25px 0;
}
.stat-item {
text-align: center;
padding: 15px;
background: #e9ecef;
border-radius: 6px;
}
.stat-value {
font-size: 20px;
font-weight: bold;
color: var(--bg-primary);
}
.stat-label {
font-size: 12px;
color: #6c757d;
margin-top: 5px;
}
.action-button {
display: inline-block;
background: var(--accent-blue);
color: white;
padding: 12px 24px;
text-decoration: none;
border-radius: 6px;
font-weight: bold;
margin: 15px 0;
}
.recommendation {
background: #e8f4fd;
border-left: 4px solid var(--accent-blue);
padding: 15px;
margin: 20px 0;
border-radius: 0 6px 6px 0;
}
.footer {
background: var(--bg-secondary);
color: var(--text-secondary);
padding: 20px;
text-align: center;
font-size: 12px;
line-height: 1.5;
}
.footer a {
color: var(--accent-purple);
text-decoration: none;
}
.unsubscribe-link {
color: #6c757d !important;
font-size: 11px;
margin-top: 10px;
display: inline-block;
}
@media (max-width: 600px) {
body { padding: 10px; }
.email-body { padding: 15px; }
.stats-grid { grid-template-columns: 1fr; }
.metric-value { font-size: 24px; }
}
</style>
</head>
<body>
<div class="email-container">
<div class="email-header">
<h1>₿ Bitcoin Monitor</h1>
<div class="subtitle">Real-time Bitcoin Price Monitoring</div>
</div>
<div class="email-body">
{% block content %}{% endblock %}
</div>
<div class="footer">
<p>This email was sent by Bitcoin Monitor System.</p>
<p>
<a href="{{ dashboard_url }}">View Dashboard</a> |
<a href="{{ admin_url }}">Admin Panel</a>
</p>
<p>
<a href="{{ unsubscribe_url }}" class="unsubscribe-link">
Unsubscribe or manage preferences
</a>
</p>
<p style="margin-top: 15px; color: #999; font-size: 11px;">
Bitcoin Monitor &copy; {% now "Y" %} • Automated notifications
</p>
</div>
</div>
</body>
</html>