Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Columns to utilize Sections (tables) #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
81 changes: 44 additions & 37 deletions src/routes/docs/[...6]examples/[...1]airbnb-review/Email.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts">
import {
Button,
Column,
Container,
Head,
Heading,
Expand Down Expand Up @@ -107,42 +108,48 @@
<Head />
<Preview preview={previewText} />
<Section style={main}>
<Container style={container}>
<Img src={`${baseUrl}/airbnb-logo.png`} width="96" height="30" alt="Airbnb" />
<Section>
<Img src={authorImage} width="96" height="96" alt={authorName} style={userImage} />
</Section>
<Heading style={heading}>Here's what {authorName} wrote</Heading>
<Text style={review}>{reviewText}</Text>
<Text style={paragraph}>
Now that the review period is over, we’ve posted {authorName}’s review to your Airbnb
profile.
</Text>
<Text style={paragraph}>
While it’s too late to write a review of your own, you can send your feedback to {authorName}
using your Airbnb message thread.
</Text>
<Section style={{ padding: '16px 0 20px' }}>
<Button pY={19} style={button} href="https://airbnb.com/">Send My Feedback</Button>
</Section>
<Hr style={hr} />
<Text style={{ ...paragraph, fontWeight: '700' }}>Common questions</Text>
<Text>
<Link href="https://airbnb.com/help/article/13" style={link}>How do reviews work?</Link>
</Text>
<Text>
<Link href="https://airbnb.com/help/article/1257" style={link}>
How do star ratings work?
</Link>
</Text>
<Text>
<Link href="https://airbnb.com/help/article/995" style={link}>
Can I leave a review after 14 days?
</Link>
</Text>
<Hr style={hr} />
<Text style={footer}>Airbnb, Inc., 888 Brannan St, San Francisco, CA 94103</Text>
<Link href="https://airbnb.com" style={reportLink}>Report unsafe behavior</Link>
</Container>
<Column>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like I've changed a lot, but most of them are due to new indentations. What I actually did is adding <Column> after <Section>

<Container style={container}>
<Img src={`${baseUrl}/airbnb-logo.png`} width="96" height="30" alt="Airbnb" />
<Section>
<Column>
<Img src={authorImage} width="96" height="96" alt={authorName} style={userImage} />
</Column>
</Section>
<Heading style={heading}>Here's what {authorName} wrote</Heading>
<Text style={review}>{reviewText}</Text>
<Text style={paragraph}>
Now that the review period is over, we’ve posted {authorName}’s review to your Airbnb
profile.
</Text>
<Text style={paragraph}>
While it’s too late to write a review of your own, you can send your feedback to {authorName}
using your Airbnb message thread.
</Text>
<Section style={{ padding: '16px 0 20px' }}>
<Column>
<Button pY={19} style={button} href="https://airbnb.com/">Send My Feedback</Button>
</Column>
</Section>
<Hr style={hr} />
<Text style={{ ...paragraph, fontWeight: '700' }}>Common questions</Text>
<Text>
<Link href="https://airbnb.com/help/article/13" style={link}>How do reviews work?</Link>
</Text>
<Text>
<Link href="https://airbnb.com/help/article/1257" style={link}>
How do star ratings work?
</Link>
</Text>
<Text>
<Link href="https://airbnb.com/help/article/995" style={link}>
Can I leave a review after 14 days?
</Link>
</Text>
<Hr style={hr} />
<Text style={footer}>Airbnb, Inc., 888 Brannan St, San Francisco, CA 94103</Text>
<Link href="https://airbnb.com" style={reportLink}>Report unsafe behavior</Link>
</Container>
</Column>
</Section>
</Html>
Loading