| 1 | import { Section, Text } from '@react-email/components' |
| 2 | import { env } |
| 3 | import { |
| 4 | ActionButton, |
| 5 | EmailLayout, |
| 6 | InfoCard, |
| 7 | InfoRow, |
| 8 | text, |
| 9 | } from '../components/layout' |
| 10 | |
| 11 | const baseUrl = env |
| 12 | |
| 13 | interface StakeholderAddedToProjectEmailProps { |
| 14 | addedByName: string |
| 15 | organizationName: string |
| 16 | orgSlug: string |
| 17 | projectName: string |
| 18 | projectSlug: string |
| 19 | recipientName: string |
| 20 | } |
| 21 | |
| 22 | export default function StakeholderAddedToProjectEmail |
| 23 | recipientName = 'Jane Smith' |
| 24 | projectName = 'Website Redesign' |
| 25 | organizationName = 'Acme Studio' |
| 26 | addedByName = 'John Doe' |
| 27 | orgSlug = 'acme' |
| 28 | projectSlug = 'website-redesign' |
| 29 | }: StakeholderAddedToProjectEmailProps) |
| 30 | return ( |
| 31 | <EmailLayout |
| 32 | heading={`Welcome to ${projectName |
| 33 | preview={`You've been added to ${projectName |
| 34 | > |
| 35 | <Text style={ |
| 36 | Hi {recipientName}, <span |
| 37 | added you to a project in {organizationName}. Here's what you can |
| 38 | expect: |
| 39 | </Text> |
| 40 | <InfoCard> |
| 41 | <InfoRow label=' |
| 42 | <InfoRow label=' |
| 43 | </InfoCard> |
| 44 | <Section style={ |
| 45 | <Text style={ |
| 46 | <span style={bullet |
| 47 | requirements |
| 48 | </Text> |
| 49 | <Text style={ |
| 50 | <span style={bullet |
| 51 | conversations |
| 52 | </Text> |
| 53 | <Text style={ |
| 54 | <span style={bullet |
| 55 | completed work |
| 56 | </Text> |
| 57 | </Section> |
| 58 | <ActionButton href={ |
| 59 | View Project |
| 60 | </ActionButton> |
| 61 | </EmailLayout> |
| 62 | ) |
| 63 | } |
| 64 | |
| 65 | const whatToExpect = { |
| 66 | margin: '0 0 8px', |
| 67 | } |
| 68 | |
| 69 | const whatToExpectItem = { |
| 70 | fontSize: '13px', |
| 71 | color: '#52525b', |
| 72 | lineHeight: '20px', |
| 73 | margin: '0 0 8px', |
| 74 | paddingLeft: '4px', |
| 75 | } |
| 76 | |
| 77 | const bullet = { |
| 78 | display: 'inline-block' as |
| 79 | width: '20px', |
| 80 | height: '20px', |
| 81 | lineHeight: '20px', |
| 82 | textAlign: 'center' as |
| 83 | borderRadius: '50%', |
| 84 | backgroundColor: '#f4f4f5', |
| 85 | color: '#71717a', |
| 86 | fontSize: '11px', |
| 87 | fontWeight: '600' as |
| 88 | marginRight: '8px', |
| 89 | } |