Skip to content

Commit

Permalink
site: specify width/height and fix prettier (#8917)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Jul 10, 2023
1 parent a11bc21 commit 85d4940
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion sites/svelte.dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
16 changes: 7 additions & 9 deletions sites/svelte.dev/src/lib/db/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})
);
}

Expand Down
5 changes: 3 additions & 2 deletions sites/svelte.dev/src/routes/_components/Hero.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -114,6 +114,7 @@
.logotype {
width: min(45vw, 40em);
height: auto;
}
@media (min-width: 800px) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'}>
Expand Down

0 comments on commit 85d4940

Please sign in to comment.