diff --git a/sites/svelte.dev/src/routes/+page.svelte b/sites/svelte.dev/src/routes/+page.svelte index 295b543b15..4cc2c3cd39 100644 --- a/sites/svelte.dev/src/routes/+page.svelte +++ b/sites/svelte.dev/src/routes/+page.svelte @@ -1,11 +1,12 @@ @@ -21,7 +22,7 @@
- +

Write less code

@@ -50,7 +51,7 @@ learn more

- +
+ +
@@ -127,10 +130,6 @@ npm run dev max-width: 120rem; } - .blurb-shifter { - margin-top: calc(-10rem + var(--side-nav)); - } - footer { display: flex; flex-wrap: wrap; diff --git a/sites/svelte.dev/src/routes/_components/Demo.svelte b/sites/svelte.dev/src/routes/_components/Demo.svelte index 39dad28649..c4acad6f0f 100644 --- a/sites/svelte.dev/src/routes/_components/Demo.svelte +++ b/sites/svelte.dev/src/routes/_components/Demo.svelte @@ -6,32 +6,32 @@ { id: 'hello-world', title: 'Hello World', - description: 'Svelte components are built on top of HTML. Just add data.', + description: 'Svelte components are built on top of HTML. Just add data.' }, { id: 'nested-components', title: 'Scoped CSS', description: - 'CSS is component-scoped by default — no more style collisions or specificity wars. Or you can use your favourite CSS-in-JS library.', + 'CSS is component-scoped by default — no more style collisions or specificity wars. Or you can use your favourite CSS-in-JS library.' }, { id: 'reactive-assignments', title: 'Reactivity', description: - 'Trigger efficient, granular updates by assigning to local variables. The compiler does the rest.', + 'Trigger efficient, granular updates by assigning to local variables. The compiler does the rest.' }, { id: 'svg-transitions', title: 'Transitions', description: - 'Build beautiful UIs with a powerful, performant transition engine built right into the framework.', - }, + 'Build beautiful UIs with a powerful, performant transition engine built right into the framework.' + } ]; let selected = examples[0]; -
+

Why Svelte?

@@ -58,11 +58,11 @@ diff --git a/sites/svelte.dev/src/routes/_components/Try.svelte b/sites/svelte.dev/src/routes/_components/Try.svelte new file mode 100644 index 0000000000..e88e9b4ee2 --- /dev/null +++ b/sites/svelte.dev/src/routes/_components/Try.svelte @@ -0,0 +1,108 @@ + + +
+
+
+
+ + +

+ ...or + create an app + on StackBlitz. +

+
+ +
+

+ 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 browser, Svelte + shifts that work into a + compile step that happens when you build your app. +

+ +

+ Instead of using techniques like virtual DOM diffing, Svelte writes code that surgically + updates the DOM when the state of your app changes. +

+ +

+ We're proud that Svelte was recently voted the most loved web framework + with the + most satisfied developers + drawing the + most interest in learning it + in a trio of industry surveys. We think you'll love it too. + Read the introductory blog post + to learn more. +

+
+
+
+
+ +