site: specify width/height and fix prettier

pull/8917/head
Ben McCann 3 years ago
parent bb5d3948ed
commit 3714907cc5

@ -13,7 +13,7 @@
"start": "node build",
"check": "node scripts/update.js && pnpm generate && svelte-kit sync && svelte-check",
"check:watch": "svelte-kit sync && svelte-check --watch",
"format": "pnpm run check:format -- --write",
"format": "prettier --check . --ignore-path .gitignore --plugin-search-dir=. --write",
"check:format": "prettier --check . --ignore-path .gitignore --plugin-search-dir=."
},
"dependencies": {

@ -47,16 +47,14 @@ export async function read(sessionid) {
if (!session_cache.get(sessionid)) {
session_cache.set(
sessionid,
await client
.rpc('get_user', { sessionid })
.then(({ data, error }) => {
if (error) {
session_cache.set(sessionid, null);
throw new Error(error.message);
}
await client.rpc('get_user', { sessionid }).then(({ data, error }) => {
if (error) {
session_cache.set(sessionid, null);
throw new Error(error.message);
}
return data.id && data;
})
return data.id && data;
})
);
}

@ -11,9 +11,9 @@
<div class="hero">
<div class="hero-content">
<img alt="Svelte logotype" class="logotype" src={SvelteLogotype} />
<img alt="Svelte logotype" class="logotype" src={SvelteLogotype} width="331" height="62" />
<strong>
<span style="white-space: nowrap;">Cybernetically enhanced</span> <br /> web apps
<span style="white-space: nowrap">Cybernetically enhanced</span> <br /> web apps
</strong>
<div class="buttons">
<a href="https://learn.svelte.dev" rel="external" class="cta">
@ -28,21 +28,42 @@
srcset={srcset(MachineDesktop.sources.avif)}
type="image/avif"
media="(min-width: 800px)"
width="3795"
height="993"
/>
<source
srcset={srcset(MachineDesktop.sources.webp)}
type="image/webp"
media="(min-width: 800px)"
width="3795"
height="993"
/>
<source
srcset={srcset(MachineDesktop.sources.png)}
type="image/png"
media="(min-width: 800px)"
width="3795"
height="993"
/>
<source
srcset={srcset(MachineMobile.sources.avif)}
type="image/avif"
width="2208"
height="936"
/>
<source
srcset={srcset(MachineMobile.sources.webp)}
type="image/webp"
width="2208"
height="936"
/>
<source srcset={srcset(MachineMobile.sources.png)} type="image/png" width="2208" height="936" />
<img
alt="The Svelte compiler packaging up your component code"
src={MachineMobile.img.src}
width="2208"
height="936"
/>
<source srcset={srcset(MachineMobile.sources.avif)} type="image/avif" />
<source srcset={srcset(MachineMobile.sources.webp)} type="image/webp" />
<source srcset={srcset(MachineMobile.sources.png)} type="image/png" />
<img alt="The Svelte compiler packaging up your component code" src={MachineMobile.img.src} />
</picture>
</div>

@ -5,9 +5,7 @@
</script>
<Section --background="var(--sk-back-2">
<p class="intro">
Svelte is made possible by the work of hundreds of supporters.
</p>
<p class="intro">Svelte is made possible by the work of hundreds of supporters.</p>
<div class="layout">
<div class="contributors blurb">

@ -14,10 +14,12 @@
href="https://survey.stackoverflow.co/2023/#section-admired-and-desired-web-frameworks-and-technologies"
>most admired JS web framework</a
>
in one industry survey while drawing the most interest in learning it in <a
href="https://tsh.io/state-of-frontend/#which-of-the-following-frameworks-would-you-like-to-learn-in-the-future"
>two</a> <a href="https://2022.stateofjs.com/en-US/libraries/front-end-frameworks/"
>others</a>. We think you'll love it too.
in one industry survey while drawing the most interest in learning it in
<a
href="https://tsh.io/state-of-frontend/#which-of-the-following-frameworks-would-you-like-to-learn-in-the-future"
>two</a
> <a href="https://2022.stateofjs.com/en-US/libraries/front-end-frameworks/">others</a>. We
think you'll love it too.
</p>
<section class="whos-using-svelte-container" class:dark={$theme.current === 'dark'}>

Loading…
Cancel
Save