Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit abd4a45

Browse files
committed
refactor(email): Redesign "remember-to-login" template
1 parent 36cbfb8 commit abd4a45

File tree

4 files changed

+53
-58
lines changed

4 files changed

+53
-58
lines changed

templates/email/mjml/_partials/footer.mjml.twig

Lines changed: 0 additions & 9 deletions
This file was deleted.

templates/email/mjml/_partials/header-situation.mjml.twig

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<mjml>
2+
<mj-head>
3+
<mj-preview>資料庫練功房 | 情況報告</mj-preview>
4+
<mj-style inline="inline">
5+
.highlight { color: #E74C3C; font-weight: bold; }
6+
.button { background-color: #3498DB; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; }
7+
</mj-style>
8+
</mj-head>
9+
<mj-body>
10+
<mj-section background-color="#F4F4F4" padding="20px 0">
11+
<mj-column>
12+
<mj-image src="https://s3.dbplay.pan93.com/icon.svg" alt="資料庫練功房" align="center" width="24px" />
13+
<mj-text font-size="20px" font-weight="bold" color="#2C3E50" align="center">
14+
資料庫練功房|情況報告
15+
</mj-text>
16+
</mj-column>
17+
</mj-section>
18+
19+
<mj-section background-color="#FFFFFF" padding="20px" border-radius="8px" border="1px solid #E0E0E0">
20+
<mj-column width="100%">
21+
<mj-text font-size="18px" color="#2C3E50">
22+
📉 登入天數 <span class="highlight">減少 ⬇</span>
23+
</mj-text>
24+
25+
<mj-divider border-color="#E0E0E0" />
26+
27+
<mj-text font-size="14px" color="#34495E" line-height="1.6">
28+
⚠️ 我注意到這週你沒有登入,記得持續學習和練習對進步非常重要!
29+
提醒你一下,如果這週做題數量未達 <b>5 題</b>,每少做一題將會扣 <b>4 分</b>,
30+
希望你能儘快投入學習,保持進度,這樣才能持續提升自己的 SQL 能力。
31+
加油!
32+
</mj-text>
33+
34+
<mj-button background-color="#4154F1" color="#FFFFFF" font-size="16px" font-weight="bold" href="https://dbplay.pan93.com">
35+
立刻登入
36+
</mj-button>
37+
38+
<mj-text font-size="12px" color="#95A5A6" align="center" line-height="1.5">
39+
如果對信件有任何問題,<a href="https://dbplay.pan93.com/feedback?url=mail://html" style="color:#3498DB; text-decoration:none;">請與我們回報</a>。
40+
</mj-text>
41+
</mj-column>
42+
</mj-section>
43+
44+
<mj-section background-color="#F4F4F4" padding="10px">
45+
<mj-column width="100%">
46+
<mj-text font-size="12px" color="#BDC3C7" align="center">
47+
&copy; 2024 資料庫練功房
48+
</mj-text>
49+
</mj-column>
50+
</mj-section>
51+
</mj-body>
52+
</mjml>
Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,5 @@
11
{% block email_content %}
22
{% mjml %}
3-
<mjml>
4-
<mj-head>
5-
<mj-preview>
6-
⚠️ 我注意到這週你沒有登入,記得持續學習和練習對進步非常重要!提醒你一下,如果這週做題數量未達 5
7-
題,每少做一題將會扣 4 分,希望你能儘快投入學習,保持進度,這樣才能持續提升自己的 SQL 能力。加油!
8-
</mj-preview>
9-
</mj-head>
10-
<mj-body>
11-
<!-- <header> -->
12-
{{ include('email/mjml/_partials/header-situation.mjml.twig') }}
13-
<!-- </header> -->
14-
15-
<!-- <section> -->
16-
<mj-wrapper padding="20px 12px">
17-
<!-- <article> -->
18-
<mj-section padding="0" text-align="center">
19-
<mj-column width="500px">
20-
<mj-image src="https://s3.dbplay.pan93.com/email-assets/section-login-recency-decrease.png"
21-
alt="登入天數 – 減少" padding="0" padding-bottom="10px"/>
22-
<mj-text line-height="1.4" padding="0px 24px">
23-
⚠️ 我注意到這週你沒有登入,記得持續學習和練習對進步非常重要!提醒你一下,如果這週做題數量未達
24-
5
25-
題,每少做一題將會扣 4 分,希望你能儘快投入學習,保持進度,這樣才能持續提升自己的 SQL 能力。加油!
26-
</mj-text>
27-
<mj-button href="https://dbplay.pan93.com" font-size="12px" background-color="#4154F1"
28-
color="#ffffff" border-radius="12px" align="left" inner-padding="8px 14px">
29-
立即登入
30-
</mj-button>
31-
</mj-column>
32-
</mj-section>
33-
<!-- </article> -->
34-
</mj-wrapper>
35-
<!-- </section> -->
36-
37-
<!-- <footer> -->
38-
{{ include('email/mjml/_partials/footer.mjml.twig') }}
39-
<!-- </footer> -->
40-
</mj-body>
41-
</mjml>
3+
{{ include('email/mjml/remember-to-login.mjml') }}
424
{% endmjml %}
435
{% endblock %}

0 commit comments

Comments
 (0)