Skip to content

Commit 68b40ef

Browse files
authored
site: runes banner (#9228)
* site: runes banner * well I should get the title right, shouldnt I? * padding * fix typo * tweak
1 parent c50ad34 commit 68b40ef

File tree

4 files changed

+65
-23
lines changed

4 files changed

+65
-23
lines changed

documentation/blog/2023-09-20-runes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function createCounter() {
124124
return {
125125
- subscribe,
126126
- increment: () => update((n) => n + 1)
127-
+ get count { return count },
127+
+ get count() { return count },
128128
+ increment: () => count += 1
129129
};
130130
}

pnpm-lock.yaml

Lines changed: 46 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sites/svelte.dev/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@resvg/resvg-js": "^2.4.1",
3131
"@sveltejs/adapter-vercel": "^3.0.3",
3232
"@sveltejs/kit": "^1.24.1",
33-
"@sveltejs/site-kit": "6.0.0-next.46",
33+
"@sveltejs/site-kit": "6.0.0-next.47",
3434
"@sveltejs/vite-plugin-svelte": "^2.4.6",
3535
"@types/cookie": "^0.5.2",
3636
"@types/node": "^20.5.9",

sites/svelte.dev/src/routes/+layout.svelte

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@
3232
</svelte:head>
3333
3434
<div style:display={$page.url.pathname !== '/docs' ? 'contents' : 'none'}>
35-
<Shell nav_visible={$page.url.pathname !== '/repl/embed'} bind:snapshot={shell_snapshot}>
35+
<Shell
36+
nav_visible={$page.url.pathname !== '/repl/embed'}
37+
bind:snapshot={shell_snapshot}
38+
banner_bottom_height="42px"
39+
>
3640
<Nav slot="top-nav" title={data.nav_title} links={data.nav_links}>
3741
<svelte:fragment slot="home-large">
3842
<strong>svelte</strong>.dev
@@ -68,6 +72,10 @@
6872
</Nav>
6973
7074
<slot />
75+
76+
<div slot="banner-bottom" class="banner-bottom">
77+
<a href="/blog/runes" class="banner-bottom">Introducing the upcoming Svelte 5 API: Runes</a>
78+
</div>
7179
</Shell>
7280
</div>
7381
@@ -84,4 +92,12 @@
8492
height: 100%;
8593
width: 100%;
8694
}
95+
96+
.banner-bottom {
97+
text-align: center;
98+
background: var(--sk-theme-1-variant);
99+
color: white;
100+
text-decoration: underline;
101+
padding: 8px;
102+
}
87103
</style>

0 commit comments

Comments
 (0)