-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathemail_message.html
More file actions
99 lines (99 loc) · 3.18 KB
/
email_message.html
File metadata and controls
99 lines (99 loc) · 3.18 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ message.title }}</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
background-color: #f8fafc;
margin: 0;
padding: 0;
color: #334155;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
}
.card {
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.header {
padding: 24px;
border-bottom: 1px solid #e2e8f0;
}
.header h1 {
margin: 0;
font-size: 18px;
font-weight: 600;
color: #0f172a;
}
.badge {
display: inline-block;
padding: 4px 12px;
border-radius: 9999px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-top: 8px;
}
.badge-system { background-color: #dbeafe; color: #1e40af; }
.badge-product { background-color: #d1fae5; color: #065f46; }
.badge-security { background-color: #e0e7ff; color: #3730a3; }
.badge-alert { background-color: #fee2e2; color: #991b1b; }
.badge-service { background-color: #f3e8ff; color: #6b21a8; }
.content {
padding: 24px;
line-height: 1.6;
font-size: 14px;
}
.content p {
margin: 0 0 16px 0;
}
.footer {
padding: 16px 24px;
background-color: #f8fafc;
border-top: 1px solid #e2e8f0;
font-size: 12px;
color: #64748b;
}
.action-button {
display: inline-block;
padding: 10px 20px;
background-color: #0f172a;
color: #ffffff;
text-decoration: none;
border-radius: 6px;
font-size: 13px;
font-weight: 500;
margin-top: 16px;
}
</style>
</head>
<body>
<div class="container">
<div class="card">
<div class="header">
<h1>{{ message.title }}</h1>
<span class="badge badge-{{ message.category }}">{{ message.get_category_display }}</span>
</div>
<div class="content">
<p>{{ message.content }}</p>
{% if message.action_link and message.action_text %}
<a href="{{ message.action_link }}" class="action-button">{{ message.action_text }}</a>
{% endif %}
</div>
<div class="footer">
<p>You received this notification because you have email alerts enabled in your Drycc Passport account.</p>
<p>To manage your notification preferences, visit your <a href="{{ domain }}/messages/preferences">Account Settings</a>.</p>
</div>
</div>
</div>
</body>
</html>