welcome.template.ts122 lines, 6.3 KB
| 1 | import { baseEmailTemplate } from "./base.template"; |
| 2 | |
| 3 | export const welcomeEmailTemplate = (name: string): string => { |
| 4 | return baseEmailTemplate({ |
| 5 | title: "Welcome to AI Video Summarizer!", |
| 6 | body: ` |
| 7 | <p style="font-size: 18px; color: #1a1a1a;">Hi ${name},</p> |
| 8 | <p>Thank you for verifying your email address! We're thrilled to have you join our community of video enthusiasts.</p> |
| 9 | |
| 10 | <h2 style="color: #1a1a1a; font-size: 22px; margin: 32px 0 24px; text-align: center;"> |
| 11 | Unlock the Power of AI Video Analysis |
| 12 | </h2> |
| 13 | |
| 14 | <div class="feature-card"> |
| 15 | <div style="display: grid; gap: 24px;"> |
| 16 | <div style="display: flex; align-items: flex-start; gap: 16px;"> |
| 17 | <div style=" |
| 18 | background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%); |
| 19 | width: 48px; |
| 20 | height: 48px; |
| 21 | border-radius: 12px; |
| 22 | display: flex; |
| 23 | align-items: center; |
| 24 | justify-content: center; |
| 25 | flex-shrink: 0; |
| 26 | box-shadow: 0 2px 4px rgba(79, 70, 229, 0.1); |
| 27 | "> |
| 28 | <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 29 | <path d="M15 10L19.553 7.724C19.7054 7.64743 19.8748 7.60773 20.0466 7.60895C20.2184 7.61017 20.387 7.65227 20.5382 7.73197C20.6894 7.81167 20.8186 7.92673 20.9153 8.06832C21.012 8.20991 21.0734 8.37337 21.094 8.544L22 15.5" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> |
| 30 | <path d="M22 12V15.5C22 17.433 20.433 19 18.5 19L5.5 19C3.567 19 2 17.433 2 15.5L2 8.5C2 6.567 3.567 5 5.5 5L18.5 5C20.433 5 22 6.567 22 8.5V9" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> |
| 31 | </svg> |
| 32 | </div> |
| 33 | <div> |
| 34 | <strong style="color: #1a1a1a; display: block; margin-bottom: 4px; font-size: 16px;">Transcribe Videos</strong> |
| 35 | <span style="color: #6b7280;">Upload any YouTube video and get accurate transcriptions powered by advanced AI.</span> |
| 36 | </div> |
| 37 | </div> |
| 38 | |
| 39 | <div style="display: flex; align-items: flex-start; gap: 16px;"> |
| 40 | <div style=" |
| 41 | background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%); |
| 42 | width: 48px; |
| 43 | height: 48px; |
| 44 | border-radius: 12px; |
| 45 | display: flex; |
| 46 | align-items: center; |
| 47 | justify-content: center; |
| 48 | flex-shrink: 0; |
| 49 | box-shadow: 0 2px 4px rgba(79, 70, 229, 0.1); |
| 50 | "> |
| 51 | <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 52 | <path d="M8 5H6C4.89543 5 4 5.89543 4 7V19C4 20.1046 4.89543 21 6 21H18C19.1046 21 20 20.1046 20 19V7C20 5.89543 19.1046 5 18 5H16M8 5V3H16V5M8 5H16M12 11H16M12 16H16M8 11H8.01M8 16H8.01" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> |
| 53 | </svg> |
| 54 | </div> |
| 55 | <div> |
| 56 | <strong style="color: #1a1a1a; display: block; margin-bottom: 4px; font-size: 16px;">Generate Summaries</strong> |
| 57 | <span style="color: #6b7280;">Get concise, intelligent summaries of your videos' content.</span> |
| 58 | </div> |
| 59 | </div> |
| 60 | |
| 61 | <div style="display: flex; align-items: flex-start; gap: 16px;"> |
| 62 | <div style=" |
| 63 | background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%); |
| 64 | width: 48px; |
| 65 | height: 48px; |
| 66 | border-radius: 12px; |
| 67 | display: flex; |
| 68 | align-items: center; |
| 69 | justify-content: center; |
| 70 | flex-shrink: 0; |
| 71 | box-shadow: 0 2px 4px rgba(79, 70, 229, 0.1); |
| 72 | "> |
| 73 | <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 74 | <path d="M15.7955 15.8111L21 21M18 10.5C18 14.6421 14.6421 18 10.5 18C6.35786 18 3 14.6421 3 10.5C3 6.35786 6.35786 3 10.5 3C14.6421 3 18 6.35786 18 10.5Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> |
| 75 | </svg> |
| 76 | </div> |
| 77 | <div> |
| 78 | <strong style="color: #1a1a1a; display: block; margin-bottom: 4px; font-size: 16px;">Extract Key Points</strong> |
| 79 | <span style="color: #6b7280;">Automatically identify and extract the most important points from your videos.</span> |
| 80 | </div> |
| 81 | </div> |
| 82 | |
| 83 | <div style="display: flex; align-items: flex-start; gap: 16px;"> |
| 84 | <div style=" |
| 85 | background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%); |
| 86 | width: 48px; |
| 87 | height: 48px; |
| 88 | border-radius: 12px; |
| 89 | display: flex; |
| 90 | align-items: center; |
| 91 | justify-content: center; |
| 92 | flex-shrink: 0; |
| 93 | box-shadow: 0 2px 4px rgba(79, 70, 229, 0.1); |
| 94 | "> |
| 95 | <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 96 | <path d="M9.568 3H5.25C4.007 3 3 4.007 3 5.25V9.568M3 14.432V18.75C3 19.993 4.007 21 5.25 21H9.568M14.432 21H18.75C19.993 21 21 19.993 21 18.75V14.432M21 9.568V5.25C21 4.007 19.993 3 18.75 3H14.432" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> |
| 97 | <path d="M12 8V16M8 12H16" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> |
| 98 | </svg> |
| 99 | </div> |
| 100 | <div> |
| 101 | <strong style="color: #1a1a1a; display: block; margin-bottom: 4px; font-size: 16px;">Smart Tagging</strong> |
| 102 | <span style="color: #6b7280;">Get AI-powered topic detection and tag suggestions for your videos.</span> |
| 103 | </div> |
| 104 | </div> |
| 105 | </div> |
| 106 | </div> |
| 107 | |
| 108 | <div style=" |
| 109 | background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%); |
| 110 | border-radius: 12px; |
| 111 | padding: 24px; |
| 112 | margin-top: 32px; |
| 113 | text-align: center; |
| 114 | "> |
| 115 | <p style="font-size: 18px; color: #1a1a1a; margin-bottom: 16px;">Ready to transform your videos?</p> |
| 116 | <p style="color: #6b7280; margin-bottom: 0;">Click the button below to start your first video transcription!</p> |
| 117 | </div> |
| 118 | `, |
| 119 | buttonText: "Start Transcribing", |
| 120 | buttonUrl: `${process.env.API_URL}/dashboard`, |
| 121 | }); |
| 122 | }; |