site: specify width/height and fix prettier (#8917)

pull/8955/head
Ben McCann 1 year ago committed by GitHub
parent a11bc21549
commit 85d49404d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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="300" height="56" />
<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">
@ -114,6 +114,7 @@
.logotype {
width: min(45vw, 40em);
height: auto;
}
@media (min-width: 800px) {

@ -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