Skip to content

Commit 15b7724

Browse files
authored
Feat: Add "Add to Calendar" Section to Registered Event Email Template (#49)
* feat: Add Add to Calendar Section * fix: improve design of add to calendar section
1 parent 41990e6 commit 15b7724

File tree

2 files changed

+73
-1
lines changed

2 files changed

+73
-1
lines changed

app/schemas/email.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def check_body_for_id(cls, body: dict, values: ValidationInfo) -> dict:
4949
2: {"url"},
5050
3: {"query", "response"},
5151
4: {"email", "magicLink"},
52-
5: {"name", "eventName", "badgeNumber", "ticketLink"},
52+
5: {"name", "eventName", "badgeNumber", "ticketLink", "googleCalendarLink", "iCalendarLink", "outlookCalendarLink"},
5353
6: {"eventName", "updatesText", "updatesLink"},
5454
7: {"inviteeName", "eventName", "inviteText", "inviteLink"},
5555
8: {"url","email"},

templates/rsvp/ticket.html

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,78 @@
8383
</tr>
8484
</tbody>
8585
</table>
86+
<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
87+
<tbody>
88+
<tr>
89+
<td height="16" style="line-height: 16px; font-size: 0;">&nbsp;</td>
90+
</tr>
91+
</tbody>
92+
</table>
93+
<table align="center" width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation" style="margin-top: 0; margin-bottom: 16px;">
94+
<tbody>
95+
<tr>
96+
<td style="background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); padding: 10px 20px; text-align: center; border-radius: 20px 20px 0 0;">
97+
<span style="color: white; font-size: 14px;">Add to Calendar</span>
98+
</td>
99+
</tr>
100+
<tr>
101+
<td style="background-color: #1a1a1b; padding: 0; border-radius: 0 0 20px 20px;">
102+
<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
103+
<tbody>
104+
<tr>
105+
<td style="padding: 10px 20px; border-bottom: 1px solid #2d2d2f;">
106+
<a href="{{googleCalendarLink}}" target="_blank" style="text-decoration: none; display: block;">
107+
<table border="0" cellpadding="0" cellspacing="0" width="200" align="center">
108+
<tr>
109+
<td style="width: 32px; text-align: center; vertical-align: middle;">
110+
<img width="24" height="24" src="https://img.icons8.com/color/48/google-calendar--v2.png" style="display: inline-block;"/>
111+
</td>
112+
<td style="vertical-align: middle; text-align: left; padding-left: 12px;">
113+
<span style="color: #e5e5e7; font-size: 14px; font-weight: 500;">Google</span>
114+
</td>
115+
</tr>
116+
</table>
117+
</a>
118+
</td>
119+
</tr>
120+
<tr>
121+
<td style="padding: 10px 20px; border-bottom: 1px solid #2d2d2f;">
122+
<a href="{{iCalendarLink}}" target="_blank" style="text-decoration: none; display: block;">
123+
<table border="0" cellpadding="0" cellspacing="0" width="200" align="center">
124+
<tr>
125+
<td style="width: 32px; text-align: center; vertical-align: middle;">
126+
<img width="24" height="24" src="https://img.icons8.com/color/48/calendar-app.png" style="display: inline-block;"/>
127+
</td>
128+
<td style="vertical-align: middle; text-align: left; padding-left: 12px;">
129+
<span style="color: #e5e5e7; font-size: 14px; font-weight: 500;">iCal</span>
130+
</td>
131+
</tr>
132+
</table>
133+
</a>
134+
</td>
135+
</tr>
136+
<tr>
137+
<td style="padding: 10px 20px; border-radius: 0 0 20px 20px;">
138+
<a href="{{outlookCalendarLink}}" target="_blank" style="text-decoration: none; display: block;">
139+
<table border="0" cellpadding="0" cellspacing="0" width="200" align="center">
140+
<tr>
141+
<td style="width: 32px; text-align: center; vertical-align: middle;">
142+
<img width="24" height="24" src="https://img.icons8.com/fluency/48/windows-calendar.png" style="display: inline-block;"/>
143+
</td>
144+
<td style="vertical-align: middle; text-align: left; padding-left: 12px;">
145+
<span style="color: #e5e5e7; font-size: 14px; font-weight: 500;">Outlook</span>
146+
</td>
147+
</tr>
148+
</table>
149+
</a>
150+
</td>
151+
</tr>
152+
</tbody>
153+
</table>
154+
</td>
155+
</tr>
156+
</tbody>
157+
</table>
86158
<p
87159
style="font-size: 1.125rem; line-height: 1.75rem; margin: 16px 0 1.5rem 0; color: rgb(255, 255, 255);"
88160
>

0 commit comments

Comments
 (0)