Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update homepage #7908

Merged
merged 59 commits into from
Dec 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
b41fc7b
WIP
Rich-Harris Dec 2, 2022
a93de73
oops
Rich-Harris Dec 2, 2022
f36ce6b
lockfile
Rich-Harris Dec 2, 2022
c778d24
fix
Rich-Harris Dec 2, 2022
78d4e7b
remove logging
Rich-Harris Dec 2, 2022
6dfb3a6
remove more detailed geometry
Rich-Harris Dec 2, 2022
beb0706
tweak features section
Rich-Harris Dec 2, 2022
98c3761
tweaks
Rich-Harris Dec 2, 2022
e1ff8bd
merge master
Rich-Harris Dec 2, 2022
d6c69c6
add a couple of showcase apps, to get us started
Rich-Harris Dec 2, 2022
49d277b
oops
Rich-Harris Dec 2, 2022
2f681fc
tweaks
Rich-Harris Dec 2, 2022
f8cafcd
update link
Rich-Harris Dec 3, 2022
13c36c8
tweak hero
Rich-Harris Dec 7, 2022
ff8f86c
apply edits
Rich-Harris Dec 7, 2022
932317e
globe styles
Rich-Harris Dec 7, 2022
81a77fb
add to the wall of text
Rich-Harris Dec 7, 2022
4ee494c
merge
Rich-Harris Dec 7, 2022
8e0086a
tweak wall
Rich-Harris Dec 7, 2022
fa0ebb9
use international phonetic alphabet
Rich-Harris Dec 7, 2022
cbc7f59
add a footer
Rich-Harris Dec 7, 2022
7ba72c5
cache globe
Rich-Harris Dec 7, 2022
d5e549e
start redoing deployment section
Rich-Harris Dec 7, 2022
8d0ae51
update deploy anywhere section
Rich-Harris Dec 7, 2022
a0ed498
fix font
Rich-Harris Dec 7, 2022
fee87d0
more showcase
Rich-Harris Dec 7, 2022
88f8824
add a label
Rich-Harris Dec 7, 2022
3c58075
dark mode fixes
Rich-Harris Dec 7, 2022
c8a6426
fix logos
Rich-Harris Dec 7, 2022
45a3871
terminal
Rich-Harris Dec 7, 2022
8b7bc93
noreferrer links
Rich-Harris Dec 7, 2022
cf92215
apply tagline
Rich-Harris Dec 7, 2022
731d860
and title
Rich-Harris Dec 7, 2022
3d45ba2
fix globe
Rich-Harris Dec 7, 2022
8a3d424
pointer-events: none on hero image
Rich-Harris Dec 7, 2022
5d26740
update link
Rich-Harris Dec 7, 2022
d655f3e
host video externally
Rich-Harris Dec 7, 2022
7cd30ec
tweak copy
Rich-Harris Dec 7, 2022
d8b4d89
remove drop shadow
Rich-Harris Dec 7, 2022
dbedbe3
tweak copy
Rich-Harris Dec 7, 2022
c2ba37c
add subtitles
Rich-Harris Dec 8, 2022
9d5d4db
use visually-hidden
Rich-Harris Dec 8, 2022
fd1e649
opacity: 1 on focus
Rich-Harris Dec 8, 2022
3e50b69
dont autoplay if prefers-reduced-motion
Rich-Harris Dec 8, 2022
ae01728
role=img
Rich-Harris Dec 8, 2022
88ab3b7
links
Rich-Harris Dec 8, 2022
e6bd3a3
tweak terminal text size
Rich-Harris Dec 8, 2022
0f1c4ea
reenable autoplay
Rich-Harris Dec 8, 2022
3b739c8
add a play/pause button, add focus rings
Rich-Harris Dec 8, 2022
6b08518
playsinline
Rich-Harris Dec 8, 2022
f5a4190
add links
Rich-Harris Dec 8, 2022
06f492e
update showcase
Rich-Harris Dec 8, 2022
7ddda50
remove giant pngs
Rich-Harris Dec 8, 2022
1f2c0eb
tweak hero
Rich-Harris Dec 8, 2022
4043129
tweak
Rich-Harris Dec 8, 2022
1171ded
increase contrast on logotype
Rich-Harris Dec 8, 2022
b5187c9
turns out we can use an image after all
Rich-Harris Dec 8, 2022
606d95b
make logos colourful again
Rich-Harris Dec 8, 2022
9ed1bd7
fix dropzone link
Rich-Harris Dec 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion sites/kit.svelte.dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@sveltejs/amp": "workspace:*",
"@sveltejs/kit": "workspace:*",
"@sveltejs/site-kit": "^2.1.4",
"@types/d3-geo": "^3.0.2",
"@types/node": "^16.18.6",
"flexsearch": "^0.7.31",
"magic-string": "^0.27.0",
Expand All @@ -29,5 +30,11 @@
"vite": "^3.2.4",
"vite-imagetools": "^4.0.11"
},
"type": "module"
"type": "module",
"dependencies": {
"@vercel/edge": "^0.1.2",
"d3-geo": "^3.0.1",
"d3-geo-projection": "^4.0.0",
"topojson-client": "^3.1.0"
}
}
11 changes: 11 additions & 0 deletions sites/kit.svelte.dev/src/lib/icons/left-small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions sites/kit.svelte.dev/src/lib/icons/pause.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions sites/kit.svelte.dev/src/lib/icons/play.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions sites/kit.svelte.dev/src/lib/icons/plus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions sites/kit.svelte.dev/src/lib/icons/up-small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion sites/kit.svelte.dev/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import { Icon, Icons, Nav, NavItem, PreloadingIndicator, SkipLink } from '@sveltejs/site-kit';
import Search from '$lib/search/Search.svelte';
import SearchBox from '$lib/search/SearchBox.svelte';
import Logo from './svelte-logo.svg';
import Logo from './home/svelte-logo.svg';
</script>

<Icons />
Expand Down
130 changes: 39 additions & 91 deletions sites/kit.svelte.dev/src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,110 +1,58 @@
<script>
import { Blurb } from '@sveltejs/site-kit';
import Hero from './Hero.svelte';
import Logotype from './svelte-kit-logotype.svg';
import Machine from './svelte-kit-machine.webp?w=1440;800;600;480&format=avif;webp;png&picture';
import Section from '@sveltejs/site-kit/components/Section.svelte';
import Features from './home/Features.svelte';
import Hero from './home/Hero.svelte';
import Showcase from './home/Showcase.svelte';
import Try from './home/Try.svelte';
import Video from './home/Video.svelte';
import './home/common.css';
import Deployment from './home/Deployment.svelte';
import Svelte from './home/Svelte.svelte';
import Intro from './home/Intro.svelte';
</script>

<svelte:head>
<title>SvelteKit • The fastest way to build Svelte apps</title>
<title>SvelteKit • Web development, streamlined</title>

<meta name="twitter:title" content="SvelteKit" />
<meta name="twitter:description" content="The fastest way to build Svelte apps" />
<meta name="twitter:description" content="Web development, streamlined" />
<meta name="description" content="SvelteKit is the official Svelte application framework" />
</svelte:head>

<h1 class="visually-hidden">SvelteKit</h1>
<Hero
title="SvelteKit"
logotype={Logotype}
tagline="The fastest way to build svelte apps"
background={Machine}
alt="SvelteKit illustration"
/>

<div class="blurb-shifter">
<Blurb>
<div slot="one">
<h2>Powered by Svelte</h2>
<p>
SvelteKit is an application framework powered by Svelte — build bigger apps with a smaller
footprint
</p>

<a href="https://svelte.dev" class="cta">learn Svelte</a>
</div>

<div slot="two">
<h2>Best of both worlds</h2>
<p>
All the SEO and progressive enhancement of a server-rendered app, with the slick navigation
of an SPA
</p>

<a data-sveltekit-preload-data href="/docs" class="cta">read the docs</a>
</div>

<div slot="three">
<h2>Build fast</h2>
<p>
Hit the ground running with advanced routing, server-side rendering, code-splitting, offline
support and more
</p>

<a data-sveltekit-preload-data href="/docs" class="cta">read the docs</a>
</div>

<div class="description" slot="what">
<p>
SvelteKit is a framework for building web applications of all sizes, with a beautiful
development experience and flexible filesystem-based routing.
</p>

<p>
Unlike single-page apps, SvelteKit 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>

<p>
<a href="https://node.new/sveltekit">Try it on StackBlitz</a> or create a project locally.
</p>
</div>

<div slot="how">
<pre><code
>npm create <span class="orange-highlight">svelte</span>@latest my-app
cd my-app
npm install
npm run dev -- --open</code
></pre>
<a data-sveltekit-preload-data href="/docs" class="cta">get started</a>
</div>
</Blurb>
<div class="home">
<h1 class="visually-hidden">SvelteKit</h1>

<Hero />
<Intro />
<Try />
<Svelte />
<Features />
<Deployment />
<Showcase />

<footer>
<p>
SvelteKit is <a target="_blank" rel="noreferrer" href="https://github.com/sveltejs/kit"
>free and open source software</a
> released under the MIT license.
</p>
</footer>
</div>

<style>
:global(.hero-container:dir(rtl)) {
max-width: 116rem;
}

pre {
height: 100%;
display: flex;
flex-direction: column;
}

.orange-highlight {
color: var(--sk-theme-1);
footer {
padding: 1em var(--sk-page-padding-side);
text-align: center;
}

.blurb-shifter {
margin-top: calc(-10rem + var(--sk-page-padding-side));
footer p {
max-width: 20em;
margin: 0 auto;
}

@media (min-width: 900px) {
.blurb-shifter {
margin-top: -12em;
@media (min-width: 680px) {
footer p {
max-width: none;
}
}
</style>
Loading