Skip to content

Commit 9ce1443

Browse files
authored
site: update terminal section, move survey text lower, lowercase headings (#8745)
1 parent bdf10f1 commit 9ce1443

File tree

4 files changed

+53
-63
lines changed

4 files changed

+53
-63
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</svelte:head>
3737

3838
<Section --background="var(--sk-back-2)">
39-
<h3>Why Svelte?</h3>
39+
<h3>build with ease</h3>
4040

4141
<div class="container">
4242
<div class="controls">

sites/svelte.dev/src/routes/_components/Supporters/index.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
<Section --background="var(--sk-back-2">
88
<p class="intro">
9-
Svelte is free and open source software, made possible <br /> by the work of hundreds of supporters.
9+
Svelte is free and open source software, made possible by the work of hundreds of supporters.
1010
</p>
1111

1212
<div class="layout">
1313
<div class="contributors blurb">
14-
<h3>Contributors</h3>
14+
<h3>contributors</h3>
1515
<p>
1616
<a href="https://github.com/sveltejs/svelte/graphs/contributors">Join us on GitHub</a>
1717
</p>
@@ -30,7 +30,7 @@
3030
</div>
3131

3232
<div class="donors blurb">
33-
<h3>Donors</h3>
33+
<h3>donors</h3>
3434
<p><a href="https://opencollective.com/svelte">Support us on OpenCollective</a></p>
3535
</div>
3636

@@ -53,7 +53,7 @@
5353
}
5454
5555
.intro {
56-
max-width: 25em; /* text balancing */
56+
max-width: 28em; /* text balancing */
5757
margin: 0 0 3.2rem 0;
5858
}
5959
@@ -148,7 +148,7 @@
148148
149149
@media (min-width: 1200px) {
150150
.intro {
151-
max-width: none;
151+
max-width: 600px;
152152
}
153153
}
154154
</style>

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

Lines changed: 19 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,13 @@
88
<div class="grid" style="--columns: 2">
99
<div class="try">
1010
<TryTerminal />
11-
12-
<p class="create-an-app">
13-
...or
14-
<a target="_blank" rel="noreferrer" href="https://sveltekit.new"> create an app </a>
15-
on StackBlitz.
16-
</p>
1711
</div>
18-
19-
<div class="description">
20-
<p>
21-
Svelte is a radical new approach to building user interfaces. Whereas traditional
22-
frameworks like React and Vue do the bulk of their work in the <em>browser</em>, Svelte
23-
shifts that work into a
24-
<em>compile step</em> that happens when you build your app. No more virtual DOM!
25-
</p>
26-
27-
<p>
28-
We're proud that Svelte was recently voted the <a
29-
href="https://insights.stackoverflow.com/survey/2021#section-most-loved-dreaded-and-wanted-web-frameworks"
30-
>most loved web framework</a
31-
>
32-
with the
33-
<a href="https://2020.stateofjs.com/en-US/technologies/front-end-frameworks/"
34-
>most satisfied developers</a
35-
>
36-
drawing the
37-
<a
38-
href="https://tsh.io/state-of-frontend/#which-of-the-following-frameworks-would-you-like-to-learn-in-the-future"
39-
>most interest in learning it</a
40-
>
41-
in a trio of industry surveys. We think you'll love it too.
42-
<a href="/blog/svelte-3-rethinking-reactivity" class="cta"
43-
>Read the introductory blog post</a
44-
>
45-
to learn more.
46-
</p>
12+
<div class="copy">
13+
<h2>see for yourself</h2>
14+
<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>.
17+
</div>
4718
</div>
4819
</div>
4920
</Section>
@@ -85,30 +56,26 @@
8556
}
8657
}
8758
88-
.create-an-app {
89-
font-size: 0.75em;
90-
}
91-
92-
.grid *::selection {
93-
background: hsl(15, 100%, 65%);
94-
color: white;
95-
}
96-
97-
.description {
98-
color: var(--sk-text-1);
99-
}
100-
101-
.description p:first-child {
102-
margin-top: 0;
103-
}
104-
10559
.try {
10660
width: 100%;
10761
margin: 0 auto;
10862
font-size: var(--sk-text-m);
10963
color: var(--sk-text-1);
11064
}
11165
66+
.copy {
67+
text-align: center;
68+
margin: 0 0 8rem;
69+
}
70+
71+
h2 {
72+
display: inline-block;
73+
width: 25rem;
74+
margin: 4rem 0 1rem;
75+
font-size: var(--sk-text-xl);
76+
text-align: justify;
77+
}
78+
11279
a {
11380
color: inherit;
11481
text-decoration: underline;

sites/svelte.dev/src/routes/_components/WhosUsingSvelte/index.svelte

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,20 @@
77
</script>
88

99
<Section --background={$theme.current === 'light' ? 'var(--sk-back-4)' : '#222'}>
10+
<h3>loved by developers</h3>
11+
12+
<p>
13+
We're proud that Svelte was recently voted the <a
14+
href="https://survey.stackoverflow.co/2023/#section-admired-and-desired-web-frameworks-and-technologies"
15+
>most admired JS web framework</a
16+
>
17+
in one industry survey while drawing the most interest in learning it in <a
18+
href="https://tsh.io/state-of-frontend/#which-of-the-following-frameworks-would-you-like-to-learn-in-the-future"
19+
>two</a> <a href="https://2022.stateofjs.com/en-US/libraries/front-end-frameworks/"
20+
>others</a>. We think you'll love it too.
21+
</p>
22+
1023
<section class="whos-using-svelte-container" class:dark={$theme.current === 'dark'}>
11-
<h3>Who's using Svelte?</h3>
1224
<div class="logos">
1325
{#each sorted as { href, filename, alt, style, invert, width, height }}
1426
<a target="_blank" rel="noreferrer" {href} class:invert style={style || ''}>
@@ -25,6 +37,17 @@
2537
h3 {
2638
font-size: var(--sk-text-xl);
2739
}
40+
41+
p {
42+
max-width: 28em; /* text balancing */
43+
}
44+
45+
@media (min-width: 1200px) {
46+
p {
47+
max-width: 600px;
48+
}
49+
}
50+
2851
.logos {
2952
display: flex;
3053
margin: 6rem 0 0 0;
@@ -38,7 +61,7 @@
3861
width: calc(100% / calc(2 * var(--row-size) - 1));
3962
}
4063
41-
a {
64+
.logos a {
4265
width: calc(100% / calc(2 * var(--row-size) - 1));
4366
height: auto;
4467
display: flex;
@@ -50,12 +73,12 @@
5073
grid-column: span 2;
5174
}
5275
53-
a:last-of-type {
76+
.logos a:last-of-type {
5477
/* hide last item at this screen size, it ruins wrapping */
5578
display: none;
5679
}
5780
58-
a.invert {
81+
.logos a.invert {
5982
--invert: 1;
6083
}
6184
@@ -73,7 +96,7 @@
7396
--row-size: 4;
7497
}
7598
76-
a:last-of-type {
99+
.logos a:last-of-type {
77100
/* show 14 items instead of 13 — wraps better */
78101
display: flex;
79102
}

0 commit comments

Comments
 (0)