Skip to content
Open
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
38 changes: 33 additions & 5 deletions apps/demo/emails/reviews/amazon-review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,24 @@ export const AmazonReviewEmail = ({
}: AmazonReviewEmailProps) => {
return (
<Html>
<Head />
<Head>
<style>
{`
@media only screen and (max-width: 600px) {
.stack-column {
display: block !important;
width: 100% !important;
max-width: 100% !important;
}

.rating-content {
padding-left: 0px !important;
text-align: center !important;
}
}
`}
</style>
</Head>

<Body style={main}>
<Preview>Amazon Review</Preview>
Expand Down Expand Up @@ -67,16 +84,25 @@ export const AmazonReviewEmail = ({

<Section>
<Row>
<Column>
<Column
className="stack-column"
style={{
width: '50%',
}}
>
<Img
src={`${baseUrl}/static/amazon-book.jpg`}
alt="Amazon Book"
width="274"
height="350"
style={{ display: 'block', margin: '0 auto' }}
/>
</Column>

<Column style={ratingContent}>
<Column
className="stack-column rating-content"
style={ratingContent}
>
<Text>
14 Habits of Highly Productive Developers (English Edition)
</Text>
Expand All @@ -92,7 +118,7 @@ export const AmazonReviewEmail = ({
))}

<Text>
Your reviews will be posted on Amazon using your public name.
Your reviews will be posted on Amazon using your public name.{' '}
<Link>Check your public name.</Link>
</Text>
</Column>
Expand Down Expand Up @@ -172,7 +198,7 @@ export const AmazonReviewEmail = ({
export default AmazonReviewEmail;

const main = {
fontFamily: 'Ember,Helvetica,Arial,sans-seri',
fontFamily: 'Ember,Helvetica,Arial,sans-serif',
backgroundColor: '#ffffff',
};

Expand All @@ -181,6 +207,7 @@ const container = {
margin: '0 auto',
padding: '20px',
width: '640px',
maxWidth: '100%',
};

const title = {
Expand All @@ -193,6 +220,7 @@ const title = {

const ratingContent = {
paddingLeft: '30px',
width: '50%',
};

const rating = {
Expand Down
Loading