Skip to content

Commit ecec0da

Browse files
committed
Merge branch 'main' into mobile-styles
2 parents 47bf604 + 9ba7bf7 commit ecec0da

File tree

9 files changed

+23
-45
lines changed

9 files changed

+23
-45
lines changed
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 1 deletion
Loading

apps/svelte.dev/src/lib/icons/discord-white.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading

apps/svelte.dev/src/routes/+layout.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
background: no-repeat 50% 50%;
8484
background-size: calc(100% - 1rem) auto;
8585
padding: 0 0.5rem;
86-
opacity: 0.6;
86+
height: 100%;
8787
8888
:global(.dark) & {
8989
opacity: 0.8;
@@ -103,19 +103,19 @@
103103
104104
[data-icon='discord'] {
105105
width: 3.4rem;
106-
background-image: url($lib/icons/discord-black.svg);
106+
background-image: url($lib/icons/discord-light.svg);
107107
108108
:global(.dark) & {
109-
background-image: url($lib/icons/discord-white.svg);
109+
background-image: url($lib/icons/discord-dark.svg);
110110
}
111111
}
112112
113113
[data-icon='github'] {
114114
width: 3rem;
115-
background-image: url($lib/icons/github-black.svg);
115+
background-image: url($lib/icons/github-light.svg);
116116
117117
:global(.dark) & {
118-
background-image: url($lib/icons/github-white.svg);
118+
background-image: url($lib/icons/github-dark.svg);
119119
}
120120
}
121121
}

apps/svelte.dev/src/routes/_home/Companies.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<enhanced:img src="./companies/apple.svg" alt="Apple logo" />
1010
</div>
1111
</div>
12-
<h2>used by companies you've heard of</h2>
12+
<h2>used by companies youve heard of</h2>
1313
<div class="wing">
1414
<div class="logos">
1515
<enhanced:img src="./companies/spotify.svg" alt="Spotify logo" />

apps/svelte.dev/src/routes/_home/Testimonials.svelte

Lines changed: 9 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,56 +10,31 @@
1010
<p>
1111
Svelte is a UI framework that uses a compiler to let you write breathtakingly concise
1212
components that do minimal work in the browser, using languages you already know — HTML, CSS
13-
and JavaScript. <strong>It's a love letter to web development.</strong>
13+
and JavaScript. <strong>Its a love letter to web development.</strong>
1414
</p>
1515

1616
<p>
17-
But don't take our word for it. Developers consistently rank Svelte as the framework they're
18-
<a
19-
target="_blank"
20-
rel="noreferrer"
21-
href="https://survey.stackoverflow.co/2023/#section-admired-and-desired-web-frameworks-and-technologies"
22-
>
23-
most
24-
</a>
25-
<a
26-
target="_blank"
27-
rel="noreferrer"
28-
href="https://tsh.io/state-of-frontend/#which-of-the-following-frameworks-would-you-like-to-learn-in-the-future"
29-
>
30-
excited
31-
</a>
32-
<a
33-
target="_blank"
34-
rel="noreferrer"
35-
href="https://2023.stateofjs.com/en-US/libraries/front-end-frameworks/"
36-
>
37-
about
38-
</a>
39-
40-
<a
41-
target="_blank"
42-
rel="noreferrer"
43-
href="https://twitter.com/Rich_Harris/status/1589675637195042817"
44-
>
45-
using</a
46-
>.
17+
But don’t take our word for it. Developers consistently rank Svelte as the framework they’re
18+
most excited about using.
4719
</p>
4820
</div>
4921

5022
<!-- svelte-ignore a11y_consider_explicit_label (the <enhanced:img> alt takes care of it)-->
5123
<div class="screenshots">
5224
<a href="https://survey.stackoverflow.co/2024/technology#2-web-frameworks-and-technologies">
53-
<enhanced:img alt="Stack Overflow 2024 Developer Survey" src="./stack-overflow.png"
25+
<enhanced:img
26+
alt="Stack Overflow 2024 Developer Survey"
27+
src="./stack-overflow.png?w=1200,1600"
5428
></enhanced:img>
5529
</a>
5630

5731
<a href="https://2023.stateofjs.com/en-US/libraries/front-end-frameworks/">
58-
<enhanced:img alt="State of JavaScript 2023" src="./state-of-js-chart.png"></enhanced:img>
32+
<enhanced:img alt="State of JavaScript 2023" src="./state-of-js-chart.png?w=1000,1400"
33+
></enhanced:img>
5934
</a>
6035

6136
<a href="https://x.com/flaviocopes/status/1730895911864189299">
62-
<enhanced:img alt="Tweet from @flaviocopes" src="./flavio-light.png"></enhanced:img>
37+
<enhanced:img alt="Tweet from @flaviocopes" src="./flavio-light.png?w=800"></enhanced:img>
6338
</a>
6439
</div>
6540
</div>

apps/svelte.dev/src/routes/tutorial/[...slug]/Sidebar.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,16 @@
4747

4848
if (node.nodeName === 'CODE') {
4949
const { file } = node.dataset;
50+
5051
if (file) {
5152
dispatch('select', { file });
5253
}
5354
}
5455

5556
if (node.nodeName === 'SPAN' && node.classList.contains('filename')) {
56-
const file = exercise.scope.prefix + node.textContent;
57+
const ext = node.dataset.ext || '';
58+
const file = exercise.scope.prefix + node.textContent + ext;
59+
5760
dispatch('select', { file });
5861
}
5962
}}

0 commit comments

Comments
 (0)