Files
openclaw-backups/automations/openclaw-digest/email-template.html

276 lines
8.2 KiB
HTML

<!-- OpenClaw Daily Digest - Beautiful Email Template -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OpenClaw Daily Digest</title>
<style>
/* Reset styles */
body, table, td, p, a, li, blockquote {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
table, td {
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
}
img {
-ms-interpolation-mode: bicubic;
border: 0;
height: auto;
line-height: 100%;
outline: none;
text-decoration: none;
}
/* Base styles */
body {
margin: 0 !important;
padding: 0 !important;
background-color: #f8fafc;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.container {
max-width: 600px;
margin: 0 auto;
background-color: #ffffff;
}
/* Header */
.header {
background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
padding: 30px 20px;
text-align: center;
}
.header h1 {
color: #ffffff;
margin: 0;
font-size: 28px;
font-weight: 700;
letter-spacing: -0.5px;
}
.header .subtitle {
color: rgba(255,255,255,0.9);
margin: 8px 0 0;
font-size: 14px;
}
.header .date {
color: rgba(255,255,255,0.8);
margin-top: 15px;
font-size: 13px;
font-weight: 500;
}
.lobster {
font-size: 32px;
margin-bottom: 10px;
}
/* Section styles */
.section {
padding: 25px 20px;
border-bottom: 1px solid #e2e8f0;
}
.section:last-child {
border-bottom: none;
}
.section-header {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.section-icon {
font-size: 20px;
margin-right: 10px;
}
.section-title {
color: #1e293b;
font-size: 18px;
font-weight: 700;
margin: 0;
}
.section-meta {
color: #64748b;
font-size: 13px;
margin-left: auto;
}
/* Item styles */
.item {
background-color: #f8fafc;
border-radius: 10px;
padding: 18px;
margin-bottom: 15px;
border-left: 4px solid #FF6B35;
transition: transform 0.2s ease;
}
.item:hover {
transform: translateX(3px);
}
.item:last-child {
margin-bottom: 0;
}
.item-title {
color: #1e293b;
font-size: 15px;
font-weight: 600;
margin: 0 0 8px 0;
line-height: 1.4;
}
.item-title a {
color: #1e293b;
text-decoration: none;
}
.item-title a:hover {
color: #FF6B35;
}
.item-meta {
color: #64748b;
font-size: 12px;
margin-bottom: 10px;
}
.item-meta span {
margin-right: 12px;
}
.item-excerpt {
color: #475569;
font-size: 14px;
line-height: 1.6;
margin: 0;
}
.tag {
display: inline-block;
background-color: #FF6B35;
color: #ffffff;
font-size: 10px;
font-weight: 600;
padding: 3px 8px;
border-radius: 4px;
margin-right: 6px;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.tag-news {
background-color: #3b82f6;
}
.tag-release {
background-color: #10b981;
}
.tag-discussion {
background-color: #8b5cf6;
}
/* Stats bar */
.stats {
background-color: #fef3e2;
padding: 15px 20px;
text-align: center;
border-bottom: 1px solid #e2e8f0;
}
.stats-item {
display: inline-block;
margin: 0 20px;
color: #92400e;
font-size: 13px;
}
.stats-number {
font-weight: 700;
font-size: 18px;
color: #b45309;
}
/* Footer */
.footer {
background-color: #1e293b;
padding: 25px 20px;
text-align: center;
}
.footer p {
color: #94a3b8;
font-size: 12px;
margin: 0 0 10px;
line-height: 1.6;
}
.footer a {
color: #F7931E;
text-decoration: none;
}
.footer .emoji {
font-size: 16px;
}
/* Responsive */
@media screen and (max-width: 600px) {
.container {
width: 100% !important;
}
.header h1 {
font-size: 24px;
}
.section {
padding: 20px 15px;
}
.item {
padding: 15px;
}
.stats-item {
display: block;
margin: 8px 0;
}
}
</style>
</head>
<body>
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td>
<div class="container">
<!-- Header -->
<div class="header">
<div class="lobster">🦞</div>
<h1>OpenClaw Daily Digest</h1>
<p class="subtitle">Your personal AI assistant news, delivered</p>
<p class="date">{{DATE}} • {{DAY}}</p>
</div>
<!-- Stats Bar -->
<div class="stats">
<span class="stats-item">
<span class="stats-number">{{REDDIT_COUNT}}</span> Reddit Highlights
</span>
<span class="stats-item">
<span class="stats-number">{{NEWS_COUNT}}</span> News Articles
</span>
</div>
<!-- Reddit Highlights Section -->
<div class="section">
<div class="section-header">
<span class="section-icon">🔥</span>
<h2 class="section-title">Reddit Highlights</h2>
<span class="section-meta">Top posts from r/openclaw</span>
</div>
{{REDDIT_ITEMS}}
</div>
<!-- News Section -->
<div class="section">
<div class="section-header">
<span class="section-icon">📰</span>
<h2 class="section-title">Latest News</h2>
<span class="section-meta">From around the web</span>
</div>
{{NEWS_ITEMS}}
</div>
<!-- Footer -->
<div class="footer">
<p class="emoji">🦀</p>
<p>Curated with care by Krilly the Crab<br>
OpenClaw Daily Digest • <a href="https://openclaw.ai">openclaw.ai</a></p>
<p style="font-size: 11px; margin-top: 15px; color: #64748b;">
This digest is automatically generated.<br>
<a href="https://github.com/openclaw/openclaw">Star us on GitHub</a>
<a href="https://reddit.com/r/openclaw">Join r/openclaw</a>
</p>
</div>
</div>
</td>
</tr>
</table>
</body>
</html>