mirror of https://github.com/sveltejs/svelte
parent
beb3f653ee
commit
da0441e75b
@ -0,0 +1,108 @@
|
||||
<script>
|
||||
import { Section } from '@sveltejs/site-kit/components';
|
||||
import TryTerminal from '@sveltejs/site-kit/components/home/TryTerminal.svelte';
|
||||
</script>
|
||||
|
||||
<div class="container">
|
||||
<Section --background="var(--background-2)">
|
||||
<div class="grid" style="--columns: 2">
|
||||
<div class="try">
|
||||
<TryTerminal />
|
||||
|
||||
<p class="create-an-app">
|
||||
...or
|
||||
<a target="_blank" rel="noreferrer" href="https://sveltekit.new"> create an app </a>
|
||||
on StackBlitz.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="description">
|
||||
<p>
|
||||
Svelte is a radical new approach to building user interfaces. Whereas traditional
|
||||
frameworks like React and Vue do the bulk of their work in the <em>browser</em>, Svelte
|
||||
shifts that work into a
|
||||
<em>compile step</em> that happens when you build your app.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Instead of using techniques like virtual DOM diffing, Svelte writes code that surgically
|
||||
updates the DOM when the state of your app changes.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
We're proud that Svelte was recently voted the <a
|
||||
href="https://insights.stackoverflow.com/survey/2021#section-most-loved-dreaded-and-wanted-web-frameworks"
|
||||
>most loved web framework</a
|
||||
>
|
||||
with the
|
||||
<a href="https://2020.stateofjs.com/en-US/technologies/front-end-frameworks/"
|
||||
>most satisfied developers</a
|
||||
>
|
||||
drawing the
|
||||
<a
|
||||
href="https://tsh.io/state-of-frontend/#which-of-the-following-frameworks-would-you-like-to-learn-in-the-future"
|
||||
>most interest in learning it</a
|
||||
>
|
||||
in a trio of industry surveys. We think you'll love it too.
|
||||
<a href="/blog/svelte-3-rethinking-reactivity" class="cta"
|
||||
>Read the introductory blog post</a
|
||||
>
|
||||
to learn more.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</Section>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
--background-1: radial-gradient(circle at top right, rgb(230, 233, 236), rgb(244, 245, 247));
|
||||
--background-2: var(--sk-back-4);
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: 1em;
|
||||
margin: 0 0 4rem 0;
|
||||
}
|
||||
|
||||
.grid:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
@media (min-width: 900px) {
|
||||
.grid {
|
||||
grid-template-columns: repeat(var(--columns), 1fr);
|
||||
gap: 7rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.container {
|
||||
/* --background-1: radial-gradient(circle at top right, rgb(49, 49, 49), rgb(77, 77, 77)); */
|
||||
--background-1: #222;
|
||||
--background-2: #444;
|
||||
}
|
||||
}
|
||||
|
||||
.grid *::selection {
|
||||
background: hsl(15, 100%, 65%);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.description {
|
||||
color: var(--sk-text-1);
|
||||
}
|
||||
|
||||
.try {
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
font-size: var(--sk-text-m);
|
||||
color: var(--sk-text-1);
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in new issue