Skip to content

Commit 85d4940

Browse files
authored
site: specify width/height and fix prettier (#8917)
1 parent a11bc21 commit 85d4940

File tree

5 files changed

+18
-19
lines changed

5 files changed

+18
-19
lines changed

sites/svelte.dev/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"start": "node build",
1414
"check": "node scripts/update.js && pnpm generate && svelte-kit sync && svelte-check",
1515
"check:watch": "svelte-kit sync && svelte-check --watch",
16-
"format": "pnpm run check:format -- --write",
16+
"format": "prettier --check . --ignore-path .gitignore --plugin-search-dir=. --write",
1717
"check:format": "prettier --check . --ignore-path .gitignore --plugin-search-dir=."
1818
},
1919
"dependencies": {

sites/svelte.dev/src/lib/db/session.js

+7-9
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,14 @@ export async function read(sessionid) {
4747
if (!session_cache.get(sessionid)) {
4848
session_cache.set(
4949
sessionid,
50-
await client
51-
.rpc('get_user', { sessionid })
52-
.then(({ data, error }) => {
53-
if (error) {
54-
session_cache.set(sessionid, null);
55-
throw new Error(error.message);
56-
}
50+
await client.rpc('get_user', { sessionid }).then(({ data, error }) => {
51+
if (error) {
52+
session_cache.set(sessionid, null);
53+
throw new Error(error.message);
54+
}
5755

58-
return data.id && data;
59-
})
56+
return data.id && data;
57+
})
6058
);
6159
}
6260

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
<div class="hero">
1313
<div class="hero-content">
14-
<img alt="Svelte logotype" class="logotype" src={SvelteLogotype} />
14+
<img alt="Svelte logotype" class="logotype" src={SvelteLogotype} width="300" height="56" />
1515
<strong>
16-
<span style="white-space: nowrap;">Cybernetically enhanced</span> <br /> web apps
16+
<span style="white-space: nowrap">Cybernetically enhanced</span> <br /> web apps
1717
</strong>
1818
<div class="buttons">
1919
<a href="https://learn.svelte.dev" rel="external" class="cta">
@@ -114,6 +114,7 @@
114114
115115
.logotype {
116116
width: min(45vw, 40em);
117+
height: auto;
117118
}
118119
119120
@media (min-width: 800px) {

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
</script>
66

77
<Section --background="var(--sk-back-2">
8-
<p class="intro">
9-
Svelte is made possible by the work of hundreds of supporters.
10-
</p>
8+
<p class="intro">Svelte is made possible by the work of hundreds of supporters.</p>
119

1210
<div class="layout">
1311
<div class="contributors blurb">

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

+6-4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
href="https://survey.stackoverflow.co/2023/#section-admired-and-desired-web-frameworks-and-technologies"
1515
>most admired JS web framework</a
1616
>
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.
17+
in one industry survey while drawing the most interest in learning it in
18+
<a
19+
href="https://tsh.io/state-of-frontend/#which-of-the-following-frameworks-would-you-like-to-learn-in-the-future"
20+
>two</a
21+
> <a href="https://2022.stateofjs.com/en-US/libraries/front-end-frameworks/">others</a>. We
22+
think you'll love it too.
2123
</p>
2224

2325
<section class="whos-using-svelte-container" class:dark={$theme.current === 'dark'}>

0 commit comments

Comments
 (0)