Skip to content

Commit 76e3da0

Browse files
PalashGarg007Palash garg
andauthored
Template for TeamShiksha Welcome Email (#52)
* Added Welcome template for teamshiksha * changed celebration image * template with getStartedToday section * template without getStartedToday section * resolved sonar suggestion * removed .DS_Store --------- Co-authored-by: Palash garg <palashgarg@Palashs-MacBook-Pro.local>
1 parent 5867f1f commit 76e3da0

File tree

4 files changed

+136
-0
lines changed

4 files changed

+136
-0
lines changed

app/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
6: "rsvp/update.html",
3333
7: "rsvp/invite.html",
3434
8: "teamshiksha/ForgotPassword.html",
35+
9: "teamshiksha/Welcome.html",
3536
}
3637

3738

app/schemas/email.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def check_body_for_id(cls, body: dict, values: ValidationInfo) -> dict:
5454
6: {"eventName", "updatesText", "updatesLink"},
5555
7: {"inviteeName", "eventName", "inviteText", "inviteLink"},
5656
8: {"url","email"},
57+
9: {},
5758
}
5859

5960
required_keys = required_keys_map.get(data.get("id"))

images/celebration.png

191 KB
Loading

templates/teamshiksha/Welcome.html

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Welcome to TeamShiksha!</title>
8+
</head>
9+
10+
<body
11+
style="margin: 0; font-family: Arial, sans-serif; background: linear-gradient(to bottom, #f0fdf4, #dcfce7); padding: 20px;">
12+
<div
13+
style="max-width: 550px; margin: 40px auto; background: white; border-radius: 16px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); overflow: hidden;">
14+
15+
<!-- Header -->
16+
<div style="text-align: center; padding: 40px 32px 32px; border-bottom: 1px solid #f3f4f6;">
17+
<div style="margin-bottom: 12px;">
18+
<img src="https://raw.githubusercontent.com/TeamShiksha/email-service/refs/heads/prod/images/teamshiksha.png"
19+
alt="TeamShiksha" style="width: 200px; height: auto; display: block; margin: 0 auto;">
20+
</div>
21+
<p
22+
style="color: #6b7280; font-size: 16px; font-weight: 500; margin: 0; line-height: 1.4; font-family: Arial, sans-serif;">
23+
A Growth Community For Everyone Who Wants To Learn
24+
</p>
25+
</div>
26+
27+
<!-- Main Content -->
28+
<div style="padding: 32px 24px; text-align: center;">
29+
<!-- Welcome Message -->
30+
<h1
31+
style="color: #2d4884; font-size: 28px; font-weight: 700; margin: 0 0 16px 0; font-family: Arial, sans-serif; display: flex; align-items: center; justify-content: center; gap: 8px;">
32+
Welcome to TeamShiksha!
33+
<img src="https://raw.githubusercontent.com/TeamShiksha/email-service/refs/heads/prod/images/celebration.png"
34+
alt="🎉" style="width: 32px; height: 32px; vertical-align: middle; display: inline-block;">
35+
</h1>
36+
37+
<p
38+
style="color: #6b7280; font-size: 16px; margin: 0 0 24px 0; line-height: 1.6; font-family: Arial, sans-serif;">
39+
We're thrilled to have you join our growing community of learners, contributors, and innovators. Your
40+
journey to accelerate your career starts now!
41+
</p>
42+
43+
<!-- Feature Highlights -->
44+
<div
45+
style="background: #f9fafb; border-radius: 12px; padding: 24px; margin-bottom: 32px; text-align: left;">
46+
<h2
47+
style="color: #111827; font-size: 18px; font-weight: 600; margin: 0 0 16px 0; font-family: Arial, sans-serif;">
48+
What You Get Access To:
49+
</h2>
50+
<ul style="margin: 0; padding: 0 0 0 20px; color: #4b5563; font-size: 15px; line-height: 1.8;">
51+
<li style="margin-bottom: 8px;"><strong>Expert-Led Cohorts</strong> - Learn from industry
52+
professionals</li>
53+
<li style="margin-bottom: 8px;"><strong>Live Sessions & Events</strong> - Interactive learning
54+
experiences</li>
55+
<li style="margin-bottom: 8px;"><strong>Real-World Projects</strong> - Build your portfolio with
56+
hands-on work</li>
57+
<li style="margin-bottom: 8px;"><strong>Supportive Community</strong> - Connect with like-minded
58+
learners</li>
59+
<li style="margin-bottom: 0;"><strong>Career Growth</strong> - Get feedback, earn badges, and unlock
60+
opportunities</li>
61+
</ul>
62+
</div>
63+
64+
<!-- Discord Steps -->
65+
<div
66+
style="background: #eef2ff; border: 2px solid #818cf8; border-radius: 12px; padding: 24px; margin-bottom: 24px; text-align: left;">
67+
<div style="text-align: center; margin-bottom: 16px;">
68+
<img src="https://raw.githubusercontent.com/TeamShiksha/email-service/refs/heads/prod/images/discord-chat.png"
69+
alt="💬" style="width: 48px; height: 48px;">
70+
</div>
71+
<p
72+
style="font-weight: 600; color: #3730a3; font-size: 16px; margin: 0 0 12px 0; font-family: Arial, sans-serif; text-align: center;">
73+
Join Our Discord Community
74+
</p>
75+
<p
76+
style="color: #4c1d95; font-size: 14px; margin: 0 0 16px 0; line-height: 1.5; font-family: Arial, sans-serif; text-align: center;">
77+
Connect with thousands of learners, ask questions, and participate in live discussions!
78+
</p>
79+
80+
<div style="margin-top: 20px;">
81+
<p
82+
style="color: #3730a3; font-size: 15px; font-weight: 600; margin: 0 0 12px 0; font-family: Arial, sans-serif;">
83+
How to Join:
84+
</p>
85+
<ol style="margin: 0; padding: 0 0 0 20px; color: #4c1d95; font-size: 14px; line-height: 1.8;">
86+
<li style="margin-bottom: 8px;">Visit <a href="https://team.shiksha"
87+
style="color: #5865f2; text-decoration: none; font-weight: 500;">team.shiksha</a>
88+
</li>
89+
<li style="margin-bottom: 8px;">Click the "Join Discord" button</li>
90+
<li style="margin-bottom: 8px;">Accept the invite to join our server</li>
91+
<li style="margin-bottom: 8px;">Introduce yourself in the #introductions channel</li>
92+
<li style="margin-bottom: 0;">Start exploring and connecting with the community!</li>
93+
</ol>
94+
</div>
95+
</div>
96+
</div>
97+
98+
<!-- Footer -->
99+
<div
100+
style="padding: 24px 32px; text-align: center; color: #9ca3af; font-size: 12px; line-height: 1.5; border-top: 1px solid #f3f4f6;">
101+
102+
<!-- Social Media Links -->
103+
<div style="margin: 16px 0;">
104+
<p
105+
style="color: #6b7280; font-size: 13px; font-weight: 500; margin: 0 0 10px 0; font-family: Arial, sans-serif;">
106+
Follow us on:
107+
</p>
108+
<div style="display: inline-block;">
109+
<a href="https://www.linkedin.com/company/teamshiksha"
110+
style="text-decoration: none; margin: 0 8px; display: inline-block;">
111+
<img src="https://raw.githubusercontent.com/TeamShiksha/email-service/refs/heads/prod/images/linkedin.png"
112+
alt="LinkedIn" style="width: 24px; height: 24px; vertical-align: middle;">
113+
</a>
114+
<a href="https://github.com/TeamShiksha"
115+
style="text-decoration: none; margin: 0 8px; display: inline-block;">
116+
<img src="https://raw.githubusercontent.com/TeamShiksha/email-service/refs/heads/prod/images/github.png"
117+
alt="GitHub" style="width: 24px; height: 24px; vertical-align: middle;">
118+
</a>
119+
<a href="https://x.com/teamshiksha"
120+
style="text-decoration: none; margin: 0 8px; display: inline-block;">
121+
<img src="https://raw.githubusercontent.com/TeamShiksha/email-service/refs/heads/prod/images/x-twitter.png"
122+
alt="X" style="width: 24px; height: 24px; vertical-align: middle;">
123+
</a>
124+
</div>
125+
</div>
126+
127+
<p style="margin: 16px 0 8px 0; font-family: Arial, sans-serif;">
128+
© 2025 TeamShiksha. All rights reserved.
129+
</p>
130+
</div>
131+
</div>
132+
</body>
133+
134+
</html>

0 commit comments

Comments
 (0)