|
2 | 2 | import { Hero, Blurb } from '@sveltejs/site-kit';
|
3 | 3 | </script>
|
4 | 4 |
|
5 |
| -<style> |
6 |
| -
|
7 |
| -</style> |
8 |
| - |
9 | 5 | <svelte:head>
|
10 |
| - <title>Sapper • The next small thing in web development</title> |
| 6 | + <title>Sapper • The predecessor of SvelteKit</title> |
11 | 7 | </svelte:head>
|
12 | 8 |
|
13 | 9 | <Hero
|
14 | 10 | title="Sapper"
|
15 |
| - tagline="The next small thing in web development" |
| 11 | + tagline="The predecessor of SvelteKit" |
16 | 12 | outline="sapper-logo-outline.svg"
|
17 | 13 | logotype="sapper-logotype.svg"
|
18 | 14 | />
|
19 | 15 |
|
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> |
48 | 20 | </div>
|
| 21 | +</section> |
49 | 22 |
|
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