Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 45ccb4d

Browse files
site: update to reflect SvelteKit 1.0 launch (#1828)
* site: update to reflect SvelteKit 1.0 launch * Update site/src/routes/index.svelte Co-authored-by: Rich Harris <[email protected]>
1 parent fa47dda commit 45ccb4d

File tree

3 files changed

+44
-53
lines changed

3 files changed

+44
-53
lines changed

site/content/docs/00-introduction.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ title: Introduction
44

55
### Before we begin
66

7-
> Sapper's successor, [SvelteKit](https://kit.svelte.dev), is currently available for use. All development efforts moving forward will be focused on [SvelteKit](https://kit.svelte.dev).
7+
> Sapper has been deprecated in favor of [SvelteKit](https://kit.svelte.dev). We recommend using [SvelteKit](https://kit.svelte.dev) for all projects moving forward. Sapper will no be receiving security fixes, bug fixes, or any type of improvements.
88
>
9-
> If you get stuck, reach out for help in the [Discord chatroom](https://svelte.dev/chat). See the [migration guides](migrating) for help upgrading from older versions.
9+
> See the [migration guide](https://kit.svelte.dev/docs/migrating) for help migrating from Sapper to SvelteKit. If you get stuck, reach out for help in the [Discord chatroom](https://svelte.dev/chat).
1010
1111
### What is Sapper?
1212

site/content/faq/100-version-numbers.md

-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ question: Sapper is not 1.0 yet. Should I use it? What about SvelteKit?
33
---
44

55
Sapper has been deprecated in favor of it's successor, [SvelteKit](https://kit.svelte.dev/). Please see the [migration guide](https://kit.svelte.dev/docs/migrating) for details on how to migrate to SvelteKit.
6-
7-
Sapper and SvelteKit are operationally stable and some of the Svelte maintainers run their businesses on them. However, there will be breaking API changes before 1.0. "production readiness" is subjective, and if your requirements are fulfilled, then it's production ready. As with any software, a major version number is not an indicator of whether something is suitable for your specific use-case.

site/src/routes/index.svelte

+42-49
Original file line numberDiff line numberDiff line change
@@ -2,63 +2,56 @@
22
import { Hero, Blurb } from '@sveltejs/site-kit';
33
</script>
44

5-
<style>
6-
7-
</style>
8-
95
<svelte:head>
10-
<title>Sapper • The next small thing in web development</title>
6+
<title>Sapper • The predecessor of SvelteKit</title>
117
</svelte:head>
128

139
<Hero
1410
title="Sapper"
15-
tagline="The next small thing in web development"
11+
tagline="The predecessor of SvelteKit"
1612
outline="sapper-logo-outline.svg"
1713
logotype="sapper-logotype.svg"
1814
/>
1915

20-
<Blurb>
21-
<a href="https://svelte.dev" slot="one">
22-
<h2>Powered by Svelte</h2>
23-
<p>Sapper is an application framework powered by Svelte — build bigger apps with a smaller footprint</p>
24-
25-
<span class="learn-more">learn more</span>
26-
</a>
27-
28-
<a href="docs" slot="two">
29-
<h2>Best of both worlds</h2>
30-
<p>All the SEO and progressive enhancement of a server-rendered app, with the slick navigation of an SPA</p>
31-
32-
<span class="learn-more">learn more</span>
33-
</a>
34-
35-
<a href="docs" slot="three">
36-
<h2>Build fast</h2>
37-
<p>Hit the ground running with advanced routing, server-side rendering, code-splitting, offline support and more</p>
38-
39-
<span class="learn-more">learn more</span>
40-
</a>
41-
42-
<div class="description" slot="what">
43-
<p>Sapper is a framework for building web applications of all sizes, with a beautiful development experience and flexible filesystem-based routing.</p>
44-
45-
<p>Unlike single-page apps, Sapper doesn't compromise on SEO, progressive enhancement or the initial load experience — but unlike traditional server-rendered apps, navigation is instantaneous for that app-like feel.</p>
46-
47-
<p><a href="https://svelte.dev/blog/sapper-towards-the-ideal-web-app-framework">Read the introductory blog post</a> to learn more.</p>
16+
<section>
17+
<div class="box">
18+
<h2>SvelteKit is now available</h2>
19+
<p><a href="https://kit.svelte.dev/">SvelteKit</a> is the successor to Sapper. <a href="https://kit.svelte.dev/">Learn more</a>.</p>
4820
</div>
21+
</section>
4922

50-
<div style="grid-area: start; display: flex; flex-direction: column; min-width: 0" slot="how">
51-
<pre class="language-bash" style="margin: 0 0 1em 0; min-width: 0; min-height: 0">
52-
# for Rollup
53-
npx degit "sveltejs/sapper-template#rollup" my-app
54-
# for webpack
55-
npx degit "sveltejs/sapper-template#webpack" my-app
56-
cd my-app
57-
58-
npm install
59-
npm run dev & open http://localhost:3000
60-
</pre>
61-
62-
<p class="cta"><a rel="prefetch" href="docs">Learn Sapper</a></p>
63-
</div>
64-
</Blurb>
23+
<style>
24+
.box {
25+
background: var(--prime);
26+
grid-area: one / one / one / one;
27+
padding: 1em;
28+
display: flex;
29+
flex-direction: column;
30+
border-bottom: none;
31+
border-radius: var(--border-r);
32+
color: white;
33+
}
34+
35+
.box a {
36+
color: white;
37+
}
38+
39+
.box h2 {
40+
padding: 0;
41+
margin: 0 0 0.5em 0;
42+
font-size: var(--h2);
43+
color: white;
44+
text-align: left;
45+
}
46+
47+
.box p {
48+
margin-bottom: 0;
49+
}
50+
51+
section {
52+
position: relative;
53+
margin: 10rem auto;
54+
padding: 0 var(--side-nav);
55+
max-width: 120rem;
56+
}
57+
</style>

0 commit comments

Comments
 (0)