|
| 1 | +import { |
| 2 | + Body, |
| 3 | + Button, |
| 4 | + Column, |
| 5 | + Container, |
| 6 | + Head, |
| 7 | + Hr, |
| 8 | + Html, |
| 9 | + Img, |
| 10 | + Link, |
| 11 | + Preview, |
| 12 | + Row, |
| 13 | + Section, |
| 14 | + Text, |
| 15 | +} from '@react-email/components'; |
| 16 | +import * as CSS from 'csstype'; |
| 17 | +import * as React from 'react'; |
| 18 | + |
| 19 | +/** |
| 20 | + * Template to be used for FUTOPay project |
| 21 | + * Variable is {{LICENSEKEY}} |
| 22 | + * */ |
| 23 | +export const LicenseEmail = () => ( |
| 24 | + <Html> |
| 25 | + <Head /> |
| 26 | + <Preview>Your Immich Server License</Preview> |
| 27 | + <Body |
| 28 | + style={{ |
| 29 | + margin: 0, |
| 30 | + padding: 0, |
| 31 | + backgroundColor: '#f4f4f4', |
| 32 | + color: 'rgb(28,28,28)', |
| 33 | + fontFamily: 'Overpass, sans-serif', |
| 34 | + fontSize: '18px', |
| 35 | + lineHeight: '24px', |
| 36 | + }} |
| 37 | + > |
| 38 | + <Container |
| 39 | + style={{ |
| 40 | + width: '540px', |
| 41 | + maxWidth: '100%', |
| 42 | + padding: '10px', |
| 43 | + margin: '0 auto', |
| 44 | + }} |
| 45 | + > |
| 46 | + <Section |
| 47 | + style={{ |
| 48 | + padding: '36px', |
| 49 | + tableLayout: 'fixed', |
| 50 | + backgroundColor: '#fefefe', |
| 51 | + borderRadius: '16px', |
| 52 | + textAlign: 'center' as const, |
| 53 | + }} |
| 54 | + > |
| 55 | + <Img |
| 56 | + src="https://immich.app/img/immich-logo-inline-light.png" |
| 57 | + alt="Immich" |
| 58 | + style={{ |
| 59 | + height: 'auto', |
| 60 | + margin: '0 auto 48px auto', |
| 61 | + width: '50%', |
| 62 | + alignSelf: 'center', |
| 63 | + color: 'white', |
| 64 | + }} |
| 65 | + /> |
| 66 | + |
| 67 | + <Text style={text}>Thank you for supporting Immich and open-source software</Text> |
| 68 | + |
| 69 | + <Text style={text}> |
| 70 | + Your <strong>Immich</strong> license key is |
| 71 | + </Text> |
| 72 | + |
| 73 | + <Section |
| 74 | + style={{ |
| 75 | + textAlign: 'center', |
| 76 | + background: 'rgb(225, 225, 225)', |
| 77 | + borderRadius: '16px', |
| 78 | + marginBottom: '25px', |
| 79 | + }} |
| 80 | + > |
| 81 | + <Text style={{ fontFamily: 'monospace', fontWeight: 600, color: 'rgb(66, 80, 175)' }}> |
| 82 | + {'{{LICENSEKEY}}'} |
| 83 | + </Text> |
| 84 | + </Section> |
| 85 | + |
| 86 | + {/* <Text style={text}> |
| 87 | + To activate your instance, you can click the following button or copy and paste the link below to your |
| 88 | + browser |
| 89 | + </Text> |
| 90 | +
|
| 91 | + <Row> |
| 92 | + <Column align="center"> |
| 93 | + <Button |
| 94 | + style={button} |
| 95 | + href={`https://my.immich.app/link?target=activate_license&licenseKey={{LICENSEKEY}}&activationKey={{ACTIVATIONKEY}}`} |
| 96 | + > |
| 97 | + Activate |
| 98 | + </Button> |
| 99 | + </Column> |
| 100 | + </Row> |
| 101 | +
|
| 102 | + <Row> |
| 103 | + <Column align="center"> |
| 104 | + <a |
| 105 | + style={{ marginTop: '50px', color: 'rgb(66, 80, 175)', fontSize: '0.9rem' }} |
| 106 | + href={`https://my.immich.app/link?target=activate_license&licenseKey={{LICENSEKEY}}&activationKey={{ACTIVATIONKEY}}`} |
| 107 | + > |
| 108 | + https://my.immich.app/link?target=activate_license&licenseKey={'{{LICENSEKEY}}'}&activationKey= |
| 109 | + {'{{ACTIVATIONKEY}}'} |
| 110 | + </a> |
| 111 | + </Column> |
| 112 | + </Row> */} |
| 113 | + </Section> |
| 114 | + |
| 115 | + <Section style={{ textAlign: 'center' }}> |
| 116 | + <Row> |
| 117 | + <Column align="center"> |
| 118 | + <Link href="https://futo.org"> |
| 119 | + <Img |
| 120 | + src="https://futo.org/images/FutoMainLogo.svg" |
| 121 | + alt="FUTO" |
| 122 | + style={{ |
| 123 | + height: '24px', |
| 124 | + marginTop: '25px', |
| 125 | + marginBottom: '25px', |
| 126 | + }} |
| 127 | + /> |
| 128 | + </Link> |
| 129 | + </Column> |
| 130 | + </Row> |
| 131 | + </Section> |
| 132 | + |
| 133 | + <Hr style={{ color: 'rgb(66, 80, 175)', marginTop: '0' }} /> |
| 134 | + |
| 135 | + <Section style={{ textAlign: 'center' }}> |
| 136 | + <Column align="center"> |
| 137 | + <Link href="https://apps.apple.com/sg/app/immich/id1613945652"> |
| 138 | + <Img |
| 139 | + src={`https://immich.app/img/ios-app-store-badge.png`} |
| 140 | + alt="Immich" |
| 141 | + style={{ height: '72px', padding: '14px' }} |
| 142 | + /> |
| 143 | + </Link> |
| 144 | + <Link href="https://play.google.com/store/apps/details?id=app.alextran.immich"> |
| 145 | + <Img src={`https://immich.app/img/google-play-badge.png`} height="96px" alt="Immich" /> |
| 146 | + </Link> |
| 147 | + </Column> |
| 148 | + </Section> |
| 149 | + |
| 150 | + <Text |
| 151 | + style={{ |
| 152 | + color: '#6a737d', |
| 153 | + fontSize: '0.8rem', |
| 154 | + textAlign: 'center' as const, |
| 155 | + marginTop: '14px', |
| 156 | + }} |
| 157 | + > |
| 158 | + <Link href="https://immich.app">Immich</Link> project is available under GNU AGPL v3 license. |
| 159 | + </Text> |
| 160 | + </Container> |
| 161 | + </Body> |
| 162 | + </Html> |
| 163 | +); |
| 164 | + |
| 165 | +LicenseEmail.PreviewProps = {}; |
| 166 | + |
| 167 | +export default LicenseEmail; |
| 168 | + |
| 169 | +const text = { |
| 170 | + margin: '0 0 24px 0', |
| 171 | + textAlign: 'left' as const, |
| 172 | + fontSize: '16px', |
| 173 | + lineHeight: '24px', |
| 174 | +}; |
| 175 | + |
| 176 | +const button: CSS.Properties = { |
| 177 | + backgroundColor: 'rgb(66, 80, 175)', |
| 178 | + margin: '1em 0', |
| 179 | + padding: '0.75em 3em', |
| 180 | + color: '#fff', |
| 181 | + fontSize: '1em', |
| 182 | + fontWeight: 600, |
| 183 | + lineHeight: 1.5, |
| 184 | + textTransform: 'uppercase', |
| 185 | + borderRadius: '9999px', |
| 186 | +}; |
0 commit comments