-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that we explicitly set the color property because some email clients (icloud) will not render text properly if not set Increased email verification code to 48 hours Ensure code is populated in form from url query params Work towards #1076
- Loading branch information
Showing
16 changed files
with
73 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,8 @@ import Link from 'next/link'; | |
|
||
const footerNavigation = { | ||
support: [ | ||
{ name: 'Documentation', href: 'https://docs.getjetstream.app/', target: '_blank' }, | ||
{ name: 'Documentation', href: 'https://docs.getjetstream.app', target: '_blank' }, | ||
{ name: 'Status', href: 'https://status.getjetstream.app', target: '_blank' }, | ||
{ name: 'Ask a question', href: 'https://discord.gg/sfxd', target: '_blank' }, | ||
{ name: 'File an issue', href: 'https://github.com/jetstreamapp/jetstream/issues', target: '_blank' }, | ||
{ name: 'Contact Us', href: 'mailto:[email protected]', target: '_blank' }, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export const PASSWORD_RESET_DURATION_MINUTES = 30; | ||
export const TOKEN_DURATION_MINUTES = 15; | ||
export const EMAIL_VERIFICATION_TOKEN_DURATION_HOURS = 48; | ||
|
||
export const DELETE_ACTIVITY_DAYS = 30; | ||
export const DELETE_TOKEN_DAYS = 3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ export const EmailFooter = () => { | |
fontSize: 14, | ||
lineHeight: '18px', | ||
fontWeight: 600, | ||
color: 'rgb(17,24,39)', | ||
textTransform: 'uppercase', | ||
}} | ||
> | ||
|
@@ -49,7 +48,6 @@ export const EmailFooter = () => { | |
lineHeight: '18px', | ||
fontWeight: 600, | ||
color: 'rgb(107,114,128)', | ||
textTransform: 'uppercase', | ||
}} | ||
> | ||
[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Img } from '@react-email/components'; | ||
import * as React from 'react'; | ||
import { EMAIL_STYLES } from '../shared-styles'; | ||
|
||
export const EmailLogo = () => { | ||
return ( | ||
<Img | ||
src="https://res.cloudinary.com/getjetstream/image/upload/v1634516631/public/jetstream-logo-200w.png" | ||
width="200" | ||
alt="Jetstream logo" | ||
style={EMAIL_STYLES.logo} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,21 @@ | ||
import { Body, Column, Container, Head, Heading, Hr, Html, Img, Link, Preview, Row, Section, Text } from '@react-email/components'; | ||
import * as React from 'react'; | ||
import { EmailFooter } from '../../components/EmailFooter'; | ||
import { EmailLogo } from '../../components/EmailLogo'; | ||
import { EMAIL_STYLES } from '../../shared-styles'; | ||
|
||
export const WelcomeEmail = () => ( | ||
<Html> | ||
<Head /> | ||
<Preview>Welcome to Jetstream 🚀</Preview> | ||
<Body style={main}> | ||
<Container style={container}> | ||
<Img | ||
src="https://res.cloudinary.com/getjetstream/image/upload/v1634516631/public/jetstream-logo-200w.png" | ||
width="200" | ||
alt="Jetstream" | ||
style={EMAIL_STYLES.logo} | ||
/> | ||
<Heading style={title}>We’re excited to welcome you to Jetstream!</Heading> | ||
<Body style={EMAIL_STYLES.main}> | ||
<Container style={EMAIL_STYLES.container}> | ||
<EmailLogo /> | ||
<Heading style={EMAIL_STYLES.title}>We’re excited to welcome you to Jetstream!</Heading> | ||
|
||
<Text style={description}>We’d love to hear from you! Share your thoughts on Jetstream.</Text> | ||
|
||
<ul style={{ paddingLeft: '15px', fontSize: '14px' }}> | ||
<ul style={{ paddingLeft: '15px', fontSize: '14px', listStyle: 'none' }}> | ||
<li> | ||
Send us an <Link href="mailto:[email protected]">email</Link> | ||
</li> | ||
|
@@ -165,27 +161,6 @@ function getFeatures() { | |
]; | ||
} | ||
|
||
const main: React.CSSProperties = { | ||
backgroundColor: '#ffffff', | ||
fontFamily: | ||
'-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol', | ||
}; | ||
|
||
const container: React.CSSProperties = { | ||
backgroundColor: '#ffffff', | ||
border: '1px solid #ddd', | ||
borderRadius: '5px', | ||
marginTop: '20px', | ||
width: '710px', | ||
maxWidth: '100%', | ||
margin: '0 auto', | ||
padding: '5% 3%', | ||
}; | ||
|
||
const title: React.CSSProperties = { | ||
textAlign: 'center' as const, | ||
}; | ||
|
||
const description: React.CSSProperties = { | ||
textAlign: 'left' as const, | ||
fontSize: 16, | ||
|
Oops, something went wrong.