|
57 | 57 | </script>
|
58 | 58 |
|
59 | 59 | <div class="page">
|
60 |
| - <div> |
61 |
| - <h2>Svelte</h2> |
62 |
| - <p>Svelte is a compiler-based framework for creating fast and efficient UIs.</p> |
63 |
| - <a href="/docs/svelte">read the docs</a> |
64 |
| - </div> |
65 |
| - <div> |
66 |
| - <h2>SvelteKit</h2> |
67 |
| - <p> |
68 |
| - SvelteKit is a framework for rapidly developing robust, performant web applications using |
69 |
| - Svelte |
70 |
| - </p> |
71 |
| - <a href="/docs/kit">read the docs</a> |
| 60 | + <h1>Documentation</h1> |
| 61 | + <p> |
| 62 | + Head to the <a href="/docs/svelte">Svelte</a> or <a href="/docs/kit">SvelteKit</a> reference docs, |
| 63 | + or choose your adventure: |
| 64 | + </p> |
| 65 | + |
| 66 | + <div class="options"> |
| 67 | + <a href="/tutorial"> |
| 68 | + <h2>I’m brand new here</h2> |
| 69 | + <p> |
| 70 | + We recommend starting with the interactive tutorial, which will teach you how to use Svelte |
| 71 | + right here in your browser. |
| 72 | + </p> |
| 73 | + </a> |
| 74 | + |
| 75 | + <a href="/docs/svelte/migrating"> |
| 76 | + <h2>I’m migrating an app from Svelte 4</h2> |
| 77 | + <p> |
| 78 | + If you’re already experienced with an older version of Svelte, the migration guide |
| 79 | + will bring you up to speed on the changes in Svelte 5. |
| 80 | + </p> |
| 81 | + </a> |
| 82 | + |
| 83 | + <a href="/playground"> |
| 84 | + <h2>I just want to try it out</h2> |
| 85 | + <p> |
| 86 | + Head over to the playground to see examples, create your own Svelte apps in the browser, and |
| 87 | + share them with other people. |
| 88 | + </p> |
| 89 | + </a> |
| 90 | + |
| 91 | + <a href="/chat" class="external"> |
| 92 | + <h2>Help! I'm stuck</h2> |
| 93 | + <p> |
| 94 | + Join our Discord server where you can hang out with fellow Svelte users and ask them |
| 95 | + questions. It's like an LLM but with people. |
| 96 | + </p> |
| 97 | + </a> |
72 | 98 | </div>
|
73 | 99 | </div>
|
74 | 100 |
|
75 | 101 | <style>
|
76 | 102 | .page {
|
77 | 103 | padding: var(--sk-page-padding-top) var(--sk-page-padding-side);
|
78 |
| - display: grid; |
79 |
| - grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); |
80 |
| - justify-items: center; |
81 |
| - max-width: 100rem; |
| 104 | + max-width: var(--sk-page-main-width); |
| 105 | + box-sizing: content-box; |
82 | 106 | margin: auto;
|
| 107 | + text-wrap: balance; |
| 108 | + } |
| 109 | +
|
| 110 | + .options a { |
| 111 | + display: block; |
| 112 | + color: var(--sk-text-2); |
| 113 | + margin: 1em -2em; |
| 114 | + padding: 2em; |
| 115 | + background-color: var(--sk-back-1); |
| 116 | + border-radius: var(--sk-border-radius); |
83 | 117 |
|
84 |
| - & > div { |
85 |
| - padding: 2rem; |
86 |
| - max-width: 50rem; |
| 118 | + &:hover { |
| 119 | + background-color: var(--sk-back-2); |
| 120 | + filter: drop-shadow(1px 2px 4px rgb(0 0 0 / 0.1)); |
| 121 | + text-decoration: none; |
| 122 | +
|
| 123 | + h2 { |
| 124 | + text-decoration: underline; |
| 125 | + } |
87 | 126 | }
|
88 |
| - } |
89 | 127 |
|
90 |
| - a { |
91 |
| - font-size: var(--sk-font-size-body-small); |
| 128 | + h2 { |
| 129 | + padding-right: 4rem; |
| 130 | + background: url(./arrow-right.svg) no-repeat 100% 50%; |
| 131 | + background-size: 3rem; |
| 132 | +
|
| 133 | + .external & { |
| 134 | + background-image: url(./external-link.svg); |
| 135 | + background-size: 3rem; |
| 136 | + } |
| 137 | + } |
| 138 | +
|
| 139 | + p:last-child { |
| 140 | + margin-bottom: 0; |
| 141 | + } |
92 | 142 | }
|
93 | 143 | </style>
|
0 commit comments