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", "start": "node build",
"check": "node scripts/update.js && pnpm generate && svelte-kit sync && svelte-check", "check": "node scripts/update.js && pnpm generate && svelte-kit sync && svelte-check",
"check:watch": "svelte-kit sync && svelte-check --watch", "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=." "check:format": "prettier --check . --ignore-path .gitignore --plugin-search-dir=."
}, },
"dependencies": { "dependencies": {

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

@ -11,9 +11,9 @@
<div class="hero"> <div class="hero">
<div class="hero-content"> <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> <strong>
<span style="white-space: nowrap;">Cybernetically enhanced</span> <br /> web apps <span style="white-space: nowrap">Cybernetically enhanced</span> <br /> web apps
</strong> </strong>
<div class="buttons"> <div class="buttons">
<a href="https://learn.svelte.dev" rel="external" class="cta"> <a href="https://learn.svelte.dev" rel="external" class="cta">
@ -28,21 +28,42 @@
srcset={srcset(MachineDesktop.sources.avif)} srcset={srcset(MachineDesktop.sources.avif)}
type="image/avif" type="image/avif"
media="(min-width: 800px)" media="(min-width: 800px)"
width="3795"
height="993"
/> />
<source <source
srcset={srcset(MachineDesktop.sources.webp)} srcset={srcset(MachineDesktop.sources.webp)}
type="image/webp" type="image/webp"
media="(min-width: 800px)" media="(min-width: 800px)"
width="3795"
height="993"
/> />
<source <source
srcset={srcset(MachineDesktop.sources.png)} srcset={srcset(MachineDesktop.sources.png)}
type="image/png" type="image/png"
media="(min-width: 800px)" 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> </picture>
</div> </div>

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

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

Loading…
Cancel
Save