Tweaked email layout
This commit is contained in:
parent
7272b24eaf
commit
189c592a44
BIN
public/email/header-logo.png
Normal file
BIN
public/email/header-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.6 KiB |
@ -3,6 +3,7 @@ import React from 'react';
|
||||
import EmailTemplate from './components/EmailLayout';
|
||||
import Body from './components/Body';
|
||||
import Button from './components/Button';
|
||||
import Header from './components/Header';
|
||||
import Footer from './components/Footer';
|
||||
import EmptySpace from './components/EmptySpace';
|
||||
|
||||
@ -21,6 +22,8 @@ ${process.env.URL}/dashboard
|
||||
export const WelcomeEmail = () => {
|
||||
return (
|
||||
<EmailTemplate>
|
||||
<Header />
|
||||
|
||||
<Body>
|
||||
<p>
|
||||
<strong>Welcome to Outline!</strong>
|
||||
|
@ -14,7 +14,7 @@ export default ({ children }: Props) => {
|
||||
<TBody>
|
||||
<TR>
|
||||
<TD>
|
||||
<EmptySpace height={40} />
|
||||
<EmptySpace height={20} />
|
||||
{children}
|
||||
<EmptySpace height={40} />
|
||||
</TD>
|
||||
|
24
server/emails/components/Header.js
Normal file
24
server/emails/components/Header.js
Normal file
@ -0,0 +1,24 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import { Table, TBody, TR, TD } from 'oy-vey';
|
||||
import EmptySpace from './EmptySpace';
|
||||
import { color } from '../../../shared/styles/constants';
|
||||
|
||||
export default () => {
|
||||
return (
|
||||
<Table width="100%">
|
||||
<TBody>
|
||||
<TR>
|
||||
<TD>
|
||||
<EmptySpace height={40} />
|
||||
<img
|
||||
src={`${process.env.URL}/email/header-logo.png`}
|
||||
height="55"
|
||||
width="32"
|
||||
/>
|
||||
</TD>
|
||||
</TR>
|
||||
</TBody>
|
||||
</Table>
|
||||
);
|
||||
};
|
Reference in New Issue
Block a user