Skip to content

Commit

Permalink
fix terminal (#8748)
Browse files Browse the repository at this point in the history
Co-authored-by: Rich Harris <git@rich-harris.dev>
  • Loading branch information
Rich-Harris and Rich Harris authored Jun 16, 2023
1 parent e964254 commit 312f944
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 17 deletions.
48 changes: 31 additions & 17 deletions sites/svelte.dev/src/routes/_components/Try.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,19 @@
<div class="try-container">
<Section --background="var(--background-2)">
<div class="grid" style="--columns: 2">
<div class="try">
<TryTerminal />
</div>
<div class="copy">
<h2>see for yourself</h2>
<div>
Try it locally, <a target="_blank" rel="noreferrer" href="https://sveltekit.new">on StackBlitz</a>, or<br />
with <a target="_blank" href="https://learn.svelte.dev">the interactive tutorial</a>.
Try it locally, <a target="_blank" rel="noreferrer" href="https://sveltekit.new"
>on StackBlitz</a
>, or with
<a target="_blank" href="https://learn.svelte.dev">the interactive tutorial</a>.
</div>
</div>

<div class="try">
<TryTerminal />
</div>
</div>
</Section>
</div>
Expand All @@ -41,21 +44,14 @@
.grid {
display: grid;
gap: 1em;
gap: 2em;
margin: 0 0 4rem 0;
}
.grid:last-child {
margin-bottom: 0;
}
@media (min-width: 900px) {
.grid {
grid-template-columns: repeat(var(--columns), 1fr);
gap: 7rem;
}
}
.try {
width: 100%;
margin: 0 auto;
Expand All @@ -64,20 +60,38 @@
}
.copy {
text-align: center;
margin: 0 0 8rem;
text-align: left;
}
h2 {
display: inline-block;
width: 25rem;
margin: 4rem 0 1rem;
margin: 0 0 1rem;
font-size: var(--sk-text-xl);
text-align: justify;
}
a {
color: inherit;
text-decoration: underline;
}
@media (min-width: 900px) {
.grid {
grid-template-columns: repeat(var(--columns), 1fr);
gap: 7rem;
}
.copy {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
order: 2;
}
.copy div {
max-width: 15em;
text-align: center;
}
}
</style>
4 changes: 4 additions & 0 deletions sites/svelte.dev/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@ import adapter from '@sveltejs/adapter-vercel';
export default {
kit: {
adapter: adapter()
},

vitePlugin: {
inspector: true
}
};

0 comments on commit 312f944

Please sign in to comment.