Added email templating, and user welcome email
This commit is contained in:
26
server/emails/components/EmailLayout.js
Normal file
26
server/emails/components/EmailLayout.js
Normal file
@ -0,0 +1,26 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import { Table, TBody, TR, TD } from 'oy-vey';
|
||||
import { fonts } from '../../../shared/styles/constants';
|
||||
|
||||
type Props = {
|
||||
children: React$Element<*>,
|
||||
};
|
||||
|
||||
export default (props: Props) => (
|
||||
<Table width="550" padding="40">
|
||||
<TBody>
|
||||
<TR>
|
||||
<TD align="left">{props.children}</TD>
|
||||
</TR>
|
||||
</TBody>
|
||||
</Table>
|
||||
);
|
||||
|
||||
export const baseStyles = `
|
||||
#__bodyTable__ {
|
||||
font-family: ${fonts.regular};
|
||||
font-size: 16px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
`;
|
Reference in New Issue
Block a user