Skip to content

Commit a6e6d96

Browse files
committed
remove fluff
1 parent 7ddd352 commit a6e6d96

File tree

5 files changed

+3
-125
lines changed

5 files changed

+3
-125
lines changed

packages/playground/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
65
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite + Svelte</title>
86
<!--app-head-->
97
</head>
108
<body>

packages/playground/public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/playground/src/App.svelte

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,7 @@
11
<script>
2-
import svelteLogo from './assets/svelte.svg'
3-
import Counter from './lib/Counter.svelte'
2+
let name = 'world';
43
</script>
54

6-
<main>
7-
<div>
8-
<a href="https://vitejs.dev" target="_blank" rel="noreferrer">
9-
<img src="/vite.svg" class="logo" alt="Vite Logo" />
10-
</a>
11-
<a href="https://svelte.dev" target="_blank" rel="noreferrer">
12-
<img src={svelteLogo} class="logo svelte" alt="Svelte Logo" />
13-
</a>
14-
</div>
15-
<h1>Vite + Svelte</h1>
5+
<h1>Hello {name}!</h1>
166

17-
<div class="card">
18-
<Counter />
19-
</div>
20-
21-
<p>
22-
Check out <a href="https://github.com/sveltejs/kit#readme" target="_blank" rel="noreferrer">SvelteKit</a>, the official Svelte app framework powered by Vite!
23-
</p>
24-
25-
<p class="read-the-docs">
26-
Click on the Vite and Svelte logos to learn more
27-
</p>
28-
</main>
29-
30-
<style>
31-
.logo {
32-
height: 6em;
33-
padding: 1.5em;
34-
will-change: filter;
35-
}
36-
.logo:hover {
37-
filter: drop-shadow(0 0 2em #646cffaa);
38-
}
39-
.logo.svelte:hover {
40-
filter: drop-shadow(0 0 2em #ff3e00aa);
41-
}
42-
.read-the-docs {
43-
color: #888;
44-
}
45-
</style>
7+
<input bind:value={name} />

packages/playground/src/app.css

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +0,0 @@
1-
:root {
2-
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
3-
line-height: 1.5;
4-
font-weight: 400;
5-
6-
color-scheme: light dark;
7-
color: rgba(255, 255, 255, 0.87);
8-
background-color: #242424;
9-
10-
font-synthesis: none;
11-
text-rendering: optimizeLegibility;
12-
-webkit-font-smoothing: antialiased;
13-
-moz-osx-font-smoothing: grayscale;
14-
-webkit-text-size-adjust: 100%;
15-
}
16-
17-
a {
18-
font-weight: 500;
19-
color: #646cff;
20-
text-decoration: inherit;
21-
}
22-
a:hover {
23-
color: #535bf2;
24-
}
25-
26-
body {
27-
margin: 0;
28-
display: flex;
29-
place-items: center;
30-
min-width: 320px;
31-
min-height: 100vh;
32-
}
33-
34-
h1 {
35-
font-size: 3.2em;
36-
line-height: 1.1;
37-
}
38-
39-
.card {
40-
padding: 2em;
41-
}
42-
43-
#app {
44-
max-width: 1280px;
45-
margin: 0 auto;
46-
padding: 2rem;
47-
text-align: center;
48-
}
49-
50-
button {
51-
border-radius: 8px;
52-
border: 1px solid transparent;
53-
padding: 0.6em 1.2em;
54-
font-size: 1em;
55-
font-weight: 500;
56-
font-family: inherit;
57-
background-color: #1a1a1a;
58-
cursor: pointer;
59-
transition: border-color 0.25s;
60-
}
61-
button:hover {
62-
border-color: #646cff;
63-
}
64-
button:focus,
65-
button:focus-visible {
66-
outline: 4px auto -webkit-focus-ring-color;
67-
}
68-
69-
@media (prefers-color-scheme: light) {
70-
:root {
71-
color: #213547;
72-
background-color: #ffffff;
73-
}
74-
a:hover {
75-
color: #747bff;
76-
}
77-
button {
78-
background-color: #f9f9f9;
79-
}
80-
}

packages/playground/src/assets/svelte.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)