({ userName }: WelcomeEmailProps)
| 9 | } |
| 10 | |
| 11 | export function WelcomeEmail({ userName }: WelcomeEmailProps) { |
| 12 | const brand = getBrandConfig() |
| 13 | const baseUrl = getBaseUrl() |
| 14 | |
| 15 | return ( |
| 16 | <EmailLayout preview={`Welcome to ${brand.name}`} showUnsubscribe={false}> |
| 17 | <Text style={{ ...baseStyles.paragraph, marginTop: 0 }}> |
| 18 | {userName ? `Hey ${userName},` : 'Hey,'} |
| 19 | </Text> |
| 20 | <Text style={baseStyles.paragraph}> |
| 21 | Welcome to {brand.name}! Your account is ready. Start building, testing, and deploying AI |
| 22 | workflows in minutes. |
| 23 | </Text> |
| 24 | |
| 25 | <Link href={`${baseUrl}/login`} style={{ textDecoration: 'none' }}> |
| 26 | <Text style={baseStyles.button}>Get Started</Text> |
| 27 | </Link> |
| 28 | |
| 29 | <Text style={baseStyles.paragraph}> |
| 30 | If you have any questions or feedback, just reply to this email. I read every message! |
| 31 | </Text> |
| 32 | |
| 33 | <Text style={baseStyles.paragraph}> |
| 34 | Want to chat?{' '} |
| 35 | <Link href={`${baseUrl}/team`} style={baseStyles.link}> |
| 36 | Schedule a call |
| 37 | </Link>{' '} |
| 38 | with our team. |
| 39 | </Text> |
| 40 | |
| 41 | <Text style={baseStyles.paragraph}>- Emir, co-founder of {brand.name}</Text> |
| 42 | |
| 43 | {/* Divider */} |
| 44 | <div style={baseStyles.divider} /> |
| 45 | |
| 46 | <Text style={{ ...baseStyles.footerText, textAlign: 'left' }}> |
| 47 | You're on the Community plan with 1,000 credits to get started. |
| 48 | </Text> |
| 49 | </EmailLayout> |
| 50 | ) |
| 51 | } |
| 52 | |
| 53 | export default WelcomeEmail |
no test coverage detected