Skip to content

Commit 312f944

Browse files
Rich-HarrisRich Harris
andauthored
fix terminal (#8748)
Co-authored-by: Rich Harris <[email protected]>
1 parent e964254 commit 312f944

File tree

2 files changed

+35
-17
lines changed

2 files changed

+35
-17
lines changed

sites/svelte.dev/src/routes/_components/Try.svelte

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@
66
<div class="try-container">
77
<Section --background="var(--background-2)">
88
<div class="grid" style="--columns: 2">
9-
<div class="try">
10-
<TryTerminal />
11-
</div>
129
<div class="copy">
1310
<h2>see for yourself</h2>
1411
<div>
15-
Try it locally, <a target="_blank" rel="noreferrer" href="https://sveltekit.new">on StackBlitz</a>, or<br />
16-
with <a target="_blank" href="https://learn.svelte.dev">the interactive tutorial</a>.
12+
Try it locally, <a target="_blank" rel="noreferrer" href="https://sveltekit.new"
13+
>on StackBlitz</a
14+
>, or with
15+
<a target="_blank" href="https://learn.svelte.dev">the interactive tutorial</a>.
1716
</div>
1817
</div>
18+
19+
<div class="try">
20+
<TryTerminal />
21+
</div>
1922
</div>
2023
</Section>
2124
</div>
@@ -41,21 +44,14 @@
4144
4245
.grid {
4346
display: grid;
44-
gap: 1em;
47+
gap: 2em;
4548
margin: 0 0 4rem 0;
4649
}
4750
4851
.grid:last-child {
4952
margin-bottom: 0;
5053
}
5154
52-
@media (min-width: 900px) {
53-
.grid {
54-
grid-template-columns: repeat(var(--columns), 1fr);
55-
gap: 7rem;
56-
}
57-
}
58-
5955
.try {
6056
width: 100%;
6157
margin: 0 auto;
@@ -64,20 +60,38 @@
6460
}
6561
6662
.copy {
67-
text-align: center;
68-
margin: 0 0 8rem;
63+
text-align: left;
6964
}
7065
7166
h2 {
7267
display: inline-block;
7368
width: 25rem;
74-
margin: 4rem 0 1rem;
69+
margin: 0 0 1rem;
7570
font-size: var(--sk-text-xl);
76-
text-align: justify;
7771
}
7872
7973
a {
8074
color: inherit;
8175
text-decoration: underline;
8276
}
77+
78+
@media (min-width: 900px) {
79+
.grid {
80+
grid-template-columns: repeat(var(--columns), 1fr);
81+
gap: 7rem;
82+
}
83+
84+
.copy {
85+
display: flex;
86+
flex-direction: column;
87+
align-items: center;
88+
justify-content: center;
89+
order: 2;
90+
}
91+
92+
.copy div {
93+
max-width: 15em;
94+
text-align: center;
95+
}
96+
}
8397
</style>

sites/svelte.dev/svelte.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@ import adapter from '@sveltejs/adapter-vercel';
55
export default {
66
kit: {
77
adapter: adapter()
8+
},
9+
10+
vitePlugin: {
11+
inspector: true
812
}
913
};

0 commit comments

Comments
 (0)