Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions apps/demo/emails/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ export default {
theme: {
fontFamily: {
amazon: ['Ember', 'Helvetica', 'Arial', 'sans-serif'],
koala: [
'-apple-system',
'BlinkMacSystemFont',
'Segoe UI',
'Roboto',
'Oxygen-Sans',
'Ubuntu',
'Cantarell',
'Helvetica Neue',
'sans-serif',
],
raycast:
'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',
slack:
Expand Down Expand Up @@ -53,12 +64,12 @@ export default {
airbnb: [
'-apple-system',
'BlinkMacSystemFont',
'Segoe UI',
'"Segoe UI"',
'Roboto',
'Oxygen-Sans',
'Ubuntu',
'Cantarell',
'Helvetica Neue',
'"Helvetica Neue"',
'sans-serif',
],
apple: ['"Helvetica Neue"', 'Helvetica', 'Arial', 'sans-serif'],
Expand Down
121 changes: 43 additions & 78 deletions apps/demo/emails/welcome/koala-welcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import {
Img,
Preview,
Section,
Tailwind,
Text,
} from '@react-email/components';
import tailwindConfig from '../tailwind.config';

interface KoalaWelcomeEmailProps {
userFirstname: string;
Expand All @@ -24,39 +26,47 @@ export const KoalaWelcomeEmail = ({
}: KoalaWelcomeEmailProps) => (
<Html>
<Head />
<Body style={main}>
<Preview>
The sales intelligence platform that helps you uncover qualified leads.
</Preview>
<Container style={container}>
<Img
src={`${baseUrl}/static/koala-logo.png`}
width="170"
height="50"
alt="Koala"
style={logo}
/>
<Text style={paragraph}>Hi {userFirstname},</Text>
<Text style={paragraph}>
Welcome to Koala, the sales intelligence platform that helps you
uncover qualified leads and close deals faster.
</Text>
<Section style={btnContainer}>
<Button style={button} href="https://getkoala.com">
Get started
</Button>
</Section>
<Text style={paragraph}>
Best,
<br />
The Koala team
</Text>
<Hr style={hr} />
<Text style={footer}>
470 Noor Ave STE B #1148, South San Francisco, CA 94080
</Text>
</Container>
</Body>
<Tailwind config={tailwindConfig}>
<Body className="bg-white font-koala">
<Preview>
The sales intelligence platform that helps you uncover qualified
leads.
</Preview>
<Container className="mx-auto py-5 pb-12">
<Img
src={`${baseUrl}/static/koala-logo.png`}
width="170"
height="50"
alt="Koala"
className="mx-auto"
/>
<Text className="text-[16px] leading-[26px]">
Hi {userFirstname},
</Text>
<Text className="text-[16px] leading-[26px]">
Welcome to Koala, the sales intelligence platform that helps you
uncover qualified leads and close deals faster.
</Text>
<Section className="text-center">
<Button
className="bg-[#5F51E8] rounded-[3px] text-white text-[16px] no-underline text-center block p-3"
href="https://getkoala.com"
>
Get started
</Button>
</Section>
<Text className="text-[16px] leading-[26px]">
Best,
<br />
The Koala team
</Text>
<Hr className="border-[#cccccc] my-5" />
<Text className="text-[#8898aa] text-[12px]">
470 Noor Ave STE B #1148, South San Francisco, CA 94080
</Text>
</Container>
</Body>
</Tailwind>
</Html>
);

Expand All @@ -65,48 +75,3 @@ KoalaWelcomeEmail.PreviewProps = {
} as KoalaWelcomeEmailProps;

export default KoalaWelcomeEmail;

const main = {
backgroundColor: '#ffffff',
fontFamily:
'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',
};

const container = {
margin: '0 auto',
padding: '20px 0 48px',
};

const logo = {
margin: '0 auto',
};

const paragraph = {
fontSize: '16px',
lineHeight: '26px',
};

const btnContainer = {
textAlign: 'center' as const,
};

const button = {
backgroundColor: '#5F51E8',
borderRadius: '3px',
color: '#fff',
fontSize: '16px',
textDecoration: 'none',
textAlign: 'center' as const,
display: 'block',
padding: '12px',
};

const hr = {
borderColor: '#cccccc',
margin: '20px 0',
};

const footer = {
color: '#8898aa',
fontSize: '12px',
};
Loading
Loading