fix terminal (#8748)

Co-authored-by: Rich Harris <git@rich-harris.dev>
pull/8754/head
Rich Harris 1 year ago committed by GitHub
parent e964254f6d
commit 312f94443a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,16 +6,19 @@
<div class="try-container"> <div class="try-container">
<Section --background="var(--background-2)"> <Section --background="var(--background-2)">
<div class="grid" style="--columns: 2"> <div class="grid" style="--columns: 2">
<div class="try">
<TryTerminal />
</div>
<div class="copy"> <div class="copy">
<h2>see for yourself</h2> <h2>see for yourself</h2>
<div> <div>
Try it locally, <a target="_blank" rel="noreferrer" href="https://sveltekit.new">on StackBlitz</a>, or<br /> Try it locally, <a target="_blank" rel="noreferrer" href="https://sveltekit.new"
with <a target="_blank" href="https://learn.svelte.dev">the interactive tutorial</a>. >on StackBlitz</a
>, or with
<a target="_blank" href="https://learn.svelte.dev">the interactive tutorial</a>.
</div> </div>
</div> </div>
<div class="try">
<TryTerminal />
</div>
</div> </div>
</Section> </Section>
</div> </div>
@ -41,7 +44,7 @@
.grid { .grid {
display: grid; display: grid;
gap: 1em; gap: 2em;
margin: 0 0 4rem 0; margin: 0 0 4rem 0;
} }
@ -49,13 +52,6 @@
margin-bottom: 0; margin-bottom: 0;
} }
@media (min-width: 900px) {
.grid {
grid-template-columns: repeat(var(--columns), 1fr);
gap: 7rem;
}
}
.try { .try {
width: 100%; width: 100%;
margin: 0 auto; margin: 0 auto;
@ -64,20 +60,38 @@
} }
.copy { .copy {
text-align: center; text-align: left;
margin: 0 0 8rem;
} }
h2 { h2 {
display: inline-block; display: inline-block;
width: 25rem; width: 25rem;
margin: 4rem 0 1rem; margin: 0 0 1rem;
font-size: var(--sk-text-xl); font-size: var(--sk-text-xl);
text-align: justify;
} }
a { a {
color: inherit; color: inherit;
text-decoration: underline; 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> </style>

@ -5,5 +5,9 @@ import adapter from '@sveltejs/adapter-vercel';
export default { export default {
kit: { kit: {
adapter: adapter() adapter: adapter()
},
vitePlugin: {
inspector: true
} }
}; };

Loading…
Cancel
Save