Skip to content

Commit 3db9c9c

Browse files
committed
feat: simplify magic link email templates by removing outer div and updating button styles
1 parent d7cce6d commit 3db9c9c

File tree

2 files changed

+11
-29
lines changed

2 files changed

+11
-29
lines changed

server/src/mailing/templates/magic-link-new-account.hbs

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@
1212
padding: 20px;
1313
}
1414
15-
.outer {
16-
background-image: url('cid:background-image');
17-
background-repeat: repeat;
18-
background-size: 268px 462px;
19-
width: 100%;
20-
height: 100%;
21-
}
22-
2315
.container {
2416
background-color: #ffffff;
2517
max-width: 500px;
@@ -40,13 +32,13 @@
4032
margin-top: 20px;
4133
font-size: 16px;
4234
color: #ffffff;
43-
background-color: #28a745;
35+
background-color: #007bff;
4436
text-decoration: none;
4537
border-radius: 5px;
4638
}
4739
4840
.btn:hover {
49-
background-color: #218838;
41+
background-color: #0056b3;
5042
}
5143
5244
.footer {
@@ -58,17 +50,15 @@
5850
</head>
5951

6052
<body>
61-
<div class="outer">
62-
<div class="container">
63-
<img src="cid:logo" alt="OpenNoteBlockWorld Logo" class="logo">
64-
<h1>Welcome, {{username}}!</h1>
65-
<p>Click the button below to log in to your account:</p>
66-
<a href="{{magicLink}}" class="btn">Login</a>
67-
<p>If you did not request this login link, please ignore this email.</p>
68-
<footer class="footer">
69-
<p>OpenNoteBlockWorld</p>
70-
</footer>
71-
</div>
53+
<div class="container">
54+
<img src="cid:logo" alt="OpenNoteBlockWorld Logo" class="logo">
55+
<h1>Welcome, {{username}}!</h1>
56+
<p>Click the button below to log in to your account:</p>
57+
<a href="{{magicLink}}" class="btn">Login</a>
58+
<p>If you did not request this login link, please ignore this email.</p>
59+
<footer class="footer">
60+
<p>OpenNoteBlockWorld</p>
61+
</footer>
7262
</div>
7363
</body>
7464

server/src/mailing/templates/magic-link.hbs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@
1212
padding: 20px;
1313
}
1414
15-
.outer {
16-
background-image: url('cid:background-image');
17-
background-repeat: repeat;
18-
background-size: 268px 462px;
19-
width: 100%;
20-
height: 100%;
21-
}
22-
2315
.container {
2416
background-color: #ffffff;
2517
max-width: 500px;

0 commit comments

Comments
 (0)