1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
<html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
3
+ <head>
4
+ <meta charset="UTF-8" / >
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" / >
6
6
<title>{{ .Labels._subject }}</title>
7
- </head>
8
- <body style="font-family: Arial, sans-serif; background-color: #1d1d20; margin: 0; padding: 0;">
9
- <div style="max-width: 600px; margin: 20px auto; background-color: #3f556d; border: 1px solid #34495E; padding: 20px; border-radius: 8px;">
10
- <div style="text-align: center; padding: 20px 0; border-bottom: 1px solid #34495E;">
11
- <img width="215" height="47" src="https://coder.com/logo-wide-white.png"/>
12
- </div>
13
- <div style="padding: 20px; color: #ECF0F1; line-height: 1.6;">
14
- <h1 style="color: #ECF0F1;">{{ .Labels._subject }}</h1>
15
- {{ .Labels._body }}
7
+ <style type="text/css">
8
+ body {
9
+ font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI",
10
+ "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
11
+ "Helvetica Neue", sans-serif;
12
+ margin: 0;
13
+ padding: 0;
14
+ color: #000;
15
+ }
16
+
17
+ .card {
18
+ max-width: 600px;
19
+ margin: 20px auto;
20
+ border: 1px solid #eaeaea;
21
+ padding: 60px;
22
+ border-radius: 8px;
23
+ line-height: 1.5;
24
+ font-size: 14px;
25
+ }
26
+
27
+ .logo {
28
+ width: 60px;
29
+ }
30
+
31
+ .title {
32
+ text-align: center;
33
+ font-weight: 400;
34
+ font-size: 24px;
35
+ margin: 8px 0 32px;
36
+ line-height: 1.5;
37
+ }
38
+
39
+ .actions {
40
+ display: flex;
41
+ align-items: center;
42
+ justify-content: center;
43
+ gap: 8px;
44
+ margin-top: 32px;
45
+ }
16
46
47
+ .action {
48
+ display: inline-block;
49
+ padding: 13px 24px;
50
+ background-color: #000;
51
+ color: #ffffff;
52
+ text-decoration: none;
53
+ border-radius: 8px;
54
+ }
55
+
56
+ .footer {
57
+ border-top: 1px solid #eaeaea;
58
+ color: #666;
59
+ font-size: 12px;
60
+ margin-top: 64px;
61
+ padding-top: 24px;
62
+ line-height: 1.6;
63
+ }
64
+
65
+ .link {
66
+ color: #067df7;
67
+ text-decoration: none;
68
+ }
69
+ </style>
70
+ </head>
71
+ <body>
72
+ <div class="card">
73
+ <img class="logo" src="https://coder.com/coder-logo-300x300.png" />
74
+ <h1 class="title">{{ .Labels._subject }}</h1>
75
+ {{ .Labels._body }}
76
+
77
+ <div class="actions">
17
78
{{ range $action := .Actions }}
18
- <a href="{{ $action.URL }}" style="display: inline-block; padding: 10px 20px; background-color: #3D74DB; color: #ffffff; text-decoration: none; border-radius: 4px; margin-top: 20px; ">{{ $action.Label }}</a><br >
79
+ <a href="{{ $action.URL }}" class="action ">{{ $action.Label }}</a>
19
80
{{ end }}
20
- </div>
21
- <div style="text-align: center; padding: 10px 0; border-top: 1px solid #34495E; margin-top: 20px; color: #BDC3C7;">
81
+ </div>
82
+
83
+ <div class="footer">
22
84
<!-- TODO: dynamic copyright -->
23
- © 2024 Coder. All rights reserved.
85
+ <p>© 2024 Coder. All rights reserved.</p>
86
+ <p>
87
+ <a href="" class="link"
88
+ >Click here to manage your notification settings</a
89
+ >
90
+ </p>
91
+ </div>
24
92
</div>
25
- </div>
26
- </body>
27
- </html>
93
+ </body>
94
+ </html>
0 commit comments