-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemail_template.html
More file actions
191 lines (181 loc) · 4.32 KB
/
email_template.html
File metadata and controls
191 lines (181 loc) · 4.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{title}}</title>
<style>
/* Reset */
body, p, h1, h2, h3, a, span, div {
margin: 0;
padding: 0;
}
body {
background-color: #f4f4f5;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: #111827;
line-height: 1.5;
}
a {
color: #2563eb;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Layout */
.wrapper {
width: 100%;
background-color: #f4f4f5;
padding: 24px 0;
}
.container {
max-width: 640px;
margin: 0 auto;
background-color: #ffffff;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
border: 1px solid #e5e7eb;
}
/* Header */
.header {
background: linear-gradient(135deg, #0f172a, #1d4ed8);
color: #f9fafb;
padding: 20px 24px 18px 24px;
}
.badge {
display: inline-block;
font-size: 11px;
letter-spacing: 0.08em;
text-transform: uppercase;
padding: 2px 8px;
border-radius: 999px;
background-color: rgba(15, 23, 42, 0.6);
border: 1px solid rgba(148, 163, 184, 0.8);
margin-bottom: 10px;
}
.title {
font-size: 22px;
font-weight: 600;
margin-bottom: 8px;
}
.meta {
font-size: 12px;
color: #e5e7eb;
opacity: 0.9;
}
.meta span + span::before {
content: "•";
margin: 0 6px;
color: #9ca3af;
}
/* Body */
.body {
padding: 20px 24px 24px 24px;
}
.summary-label {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #6b7280;
margin-bottom: 6px;
}
.summary {
font-size: 14px;
color: #111827;
margin-bottom: 16px;
}
.content {
font-size: 14px;
color: #111827;
}
.content p {
margin-bottom: 10px;
}
.content h2,
.content h3 {
margin-top: 16px;
margin-bottom: 8px;
font-weight: 600;
}
.content ul {
padding-left: 18px;
margin-bottom: 10px;
}
/* Link box */
.link-box {
margin-top: 20px;
padding: 12px 12px;
border-radius: 8px;
background-color: #f9fafb;
border: 1px solid #e5e7eb;
font-size: 13px;
}
.link-label {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #6b7280;
margin-bottom: 4px;
}
.link-url {
word-break: break-all;
}
/* Footer */
.footer {
padding: 16px 24px 10px 24px;
font-size: 11px;
color: #6b7280;
text-align: center;
}
.footer a {
color: #6b7280;
}
@media (max-width: 640px) {
.container {
border-radius: 0;
}
.header,
.body,
.footer {
padding-left: 16px;
padding-right: 16px;
}
}
</style>
</head>
<body>
<div class="wrapper">
<div class="container">
<div class="header">
<div class="badge">RSS digest</div>
<div class="title">{{title}}</div>
<div class="meta">
<span>{{time}}</span>
<span>{{source}}</span>
</div>
</div>
<div class="body">
<div class="summary-label">TL;DR</div>
<div class="summary">
{{summary}}
</div>
<div class="content">
{{content_html}}
</div>
<div class="link-box">
<div class="link-label">Original article</div>
<div class="link-url">
<a href="{{url}}" target="_blank" rel="noopener noreferrer">{{url}}</a>
</div>
</div>
</div>
<div class="footer">
This email was generated automatically from an RSS feed
and edited by AI for developer use.
</div>
</div>
</div>
</body>
</html>