habulaj commited on
Commit
dbdbb84
·
verified ·
1 Parent(s): 9f860ba

Update routes/emails.py

Browse files
Files changed (1) hide show
  1. routes/emails.py +212 -0
routes/emails.py CHANGED
@@ -200,6 +200,218 @@ def generate_email_html(email_type: str, to: str) -> str:
200
  </div>
201
  </div>
202
  </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
203
  </html>
204
  """
205
  elif email_type == "goodbye":
 
200
  </div>
201
  </div>
202
  </body>
203
+ </html>
204
+ """
205
+ elif email_type == "stylistwelcome":
206
+ return """
207
+ <!DOCTYPE html>
208
+ <html lang="en">
209
+ <head>
210
+ <meta charset="UTF-8">
211
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
212
+ <title>Welcome to ClosetCoach</title>
213
+ <style>
214
+ * {
215
+ margin: 0;
216
+ padding: 0;
217
+ box-sizing: border-box;
218
+ }
219
+
220
+ body {
221
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
222
+ background-color: #ffffff;
223
+ color: #1d1d1f;
224
+ line-height: 1.6;
225
+ }
226
+
227
+ .email-container {
228
+ max-width: 600px;
229
+ margin: 0 auto;
230
+ background-color: #ffffff;
231
+ }
232
+
233
+ .header {
234
+ text-align: center;
235
+ padding: 60px 40px 40px;
236
+ }
237
+
238
+ .logo {
239
+ font-size: 28px;
240
+ font-weight: 700;
241
+ color: #6b46c1;
242
+ letter-spacing: -0.5px;
243
+ }
244
+
245
+ .hero-section {
246
+ text-align: center;
247
+ padding: 0 40px 60px;
248
+ }
249
+
250
+ .hero-image {
251
+ width: 100%;
252
+ max-width: 280px;
253
+ height: 200px;
254
+ object-fit: cover;
255
+ margin: 0 auto 50px;
256
+ border-radius: 20px;
257
+ box-shadow: 0 20px 40px rgba(107, 70, 193, 0.1);
258
+ }
259
+
260
+ .headline {
261
+ font-size: 36px;
262
+ font-weight: 700;
263
+ color: #1d1d1f;
264
+ margin-bottom: 24px;
265
+ line-height: 1.2;
266
+ letter-spacing: -0.8px;
267
+ }
268
+
269
+ .subheadline {
270
+ font-size: 20px;
271
+ font-weight: 400;
272
+ color: #6e6e73;
273
+ margin-bottom: 30px;
274
+ line-height: 1.4;
275
+ max-width: 480px;
276
+ margin-left: auto;
277
+ margin-right: auto;
278
+ }
279
+
280
+ .status-box {
281
+ background-color: #fef3c7;
282
+ border: 1px solid #fbbf24;
283
+ border-radius: 12px;
284
+ padding: 20px;
285
+ margin: 30px 0;
286
+ max-width: 480px;
287
+ margin-left: auto;
288
+ margin-right: auto;
289
+ }
290
+
291
+ .status-title {
292
+ font-size: 18px;
293
+ font-weight: 600;
294
+ color: #92400e;
295
+ margin-bottom: 8px;
296
+ }
297
+
298
+ .status-text {
299
+ font-size: 16px;
300
+ color: #92400e;
301
+ line-height: 1.5;
302
+ }
303
+
304
+ .next-steps {
305
+ font-size: 18px;
306
+ font-weight: 400;
307
+ color: #6e6e73;
308
+ margin: 30px 0;
309
+ line-height: 1.4;
310
+ max-width: 480px;
311
+ margin-left: auto;
312
+ margin-right: auto;
313
+ }
314
+
315
+ .cta-button {
316
+ display: inline-block;
317
+ background: linear-gradient(135deg, #6b46c1 0%, #8b5cf6 100%);
318
+ color: #ffffff;
319
+ text-decoration: none;
320
+ padding: 16px 40px;
321
+ border-radius: 50px;
322
+ font-size: 18px;
323
+ font-weight: 600;
324
+ letter-spacing: 0.2px;
325
+ transition: all 0.3s ease;
326
+ box-shadow: 0 8px 24px rgba(107, 70, 193, 0.3);
327
+ margin-bottom: 60px;
328
+ }
329
+
330
+ .cta-button:hover {
331
+ transform: translateY(-2px);
332
+ box-shadow: 0 12px 32px rgba(107, 70, 193, 0.4);
333
+ }
334
+
335
+ .footer {
336
+ text-align: center;
337
+ padding: 40px;
338
+ border-top: 1px solid #f5f5f7;
339
+ margin-top: 40px;
340
+ }
341
+
342
+ .footer-text {
343
+ font-size: 14px;
344
+ color: #86868b;
345
+ margin-bottom: 16px;
346
+ }
347
+
348
+ @media (max-width: 480px) {
349
+ .header {
350
+ padding: 40px 20px 20px;
351
+ }
352
+
353
+ .hero-section {
354
+ padding: 0 20px 40px;
355
+ }
356
+
357
+ .headline {
358
+ font-size: 28px;
359
+ }
360
+
361
+ .subheadline {
362
+ font-size: 18px;
363
+ }
364
+
365
+ .footer {
366
+ padding: 30px 20px;
367
+ }
368
+ }
369
+ </style>
370
+ </head>
371
+ <body>
372
+ <div class="email-container">
373
+ <!-- Header -->
374
+ <div class="header">
375
+ <div class="logo">ClosetCoach</div>
376
+ </div>
377
+
378
+ <!-- Hero Section -->
379
+ <div class="hero-section">
380
+ <img src="https://huggingface.co/spaces/habulaj/connect/resolve/main/brazuca.jpg" alt="Style transformation illustration" class="hero-image">
381
+
382
+ <h1 class="headline">Welcome to ClosetCoach</h1>
383
+
384
+ <p class="subheadline">
385
+ Thank you for joining our community of professional stylists! We're excited to have you on board.
386
+ </p>
387
+
388
+ <div class="status-box">
389
+ <div class="status-title">📋 Account Under Review</div>
390
+ <div class="status-text">
391
+ Your stylist profile is currently being reviewed by our team. We'll notify you via email once your account is approved and ready to connect with clients.
392
+ </div>
393
+ </div>
394
+
395
+ <p class="next-steps">
396
+ In the meantime, feel free to explore the platform and familiarize yourself with our community guidelines. We'll be in touch soon!
397
+ </p>
398
+
399
+ <a href="https://ameddes.com/dashboard" class="cta-button">View Your Dashboard</a>
400
+ </div>
401
+
402
+ <!-- Footer -->
403
+ <div class="footer">
404
+ <p class="footer-text">
405
+ You're receiving this email because you signed up as a stylist on ClosetCoach.<br>
406
+ We'll update you on your account status soon!
407
+ </p>
408
+
409
+ <p class="footer-text" style="margin-top: 24px;">
410
+ © 2025 ClosetCoach. All rights reserved.
411
+ </p>
412
+ </div>
413
+ </div>
414
+ </body>
415
  </html>
416
  """
417
  elif email_type == "goodbye":