Skip to content

Commit b667424

Browse files
chore: revert Vite workaround (#76)
fixes #64 Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 parent 70bf98d commit b667424

File tree

6 files changed

+110
-4
lines changed

6 files changed

+110
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
@font-face {
2+
font-family: 'Schlop';
3+
src: url('./fonts/shlop.woff2') format('woff2');
4+
}
5+
6+
body {
7+
display: flex;
8+
flex-direction: column;
9+
align-items: center;
10+
justify-content: center;
11+
background: url(./halloween.webp) no-repeat 50% 50% fixed;
12+
background-size: cover;
13+
}
14+
15+
h1 {
16+
font-size: min(8vw, 4rem);
17+
filter: drop-shadow(2px 2px 10px black);
18+
font-family: 'Schlop';
19+
background: linear-gradient(
20+
to bottom,
21+
hsl(0, 100%, 77%) 0%,
22+
hsl(0, 60%, 50%) 100%
23+
);
24+
-webkit-background-clip: text;
25+
-webkit-text-fill-color: transparent;
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@font-face {
2+
font-family: 'Casablanca Antique';
3+
src: url('./fonts/casablanca-antique.woff2') format('woff2');
4+
}
5+
6+
body {
7+
display: flex;
8+
flex-direction: column;
9+
align-items: center;
10+
justify-content: center;
11+
background: url(./margaritaville.webp) no-repeat 50% 50% fixed;
12+
background-size: cover;
13+
}
14+
15+
h1 {
16+
font-size: min(8vw, 4rem);
17+
filter: drop-shadow(1px 1px 4px black) drop-shadow(1px 1px 20px black);
18+
font-family: 'Casablanca Antique';
19+
font-variant: small-caps;
20+
color: rgb(255, 226, 131);
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
@font-face {
2+
font-family: 'Road Rage';
3+
src: url('./fonts/road-rage.woff2') format('woff2');
4+
}
5+
6+
body {
7+
display: flex;
8+
flex-direction: column;
9+
align-items: center;
10+
justify-content: center;
11+
/* https://www.wallpaperflare.com/music-stars-background-80s-neon-80-s-synth-retrowave-wallpaper-bdlfo */
12+
background: url(./retrowave.webp) no-repeat 50% 50% fixed;
13+
background-size: cover;
14+
}
15+
16+
h1 {
17+
font-size: min(8vw, 4rem);
18+
filter: drop-shadow(2px 2px 10px black);
19+
font-family: 'Road Rage';
20+
background: linear-gradient(
21+
to top,
22+
hsl(307, 74%, 63%) 1%, 0%,
23+
#0000 8%, 0%,
24+
hsl(317, 76%, 63%) 10%, 0%,
25+
#0000 16%, 0%,
26+
hsl(327, 78%, 63%) 19%, 0%,
27+
#0000 24%, 0%,
28+
hsl(337, 80%, 63%) 28%, 0%,
29+
#0000 32%, 0%,
30+
hsl(347, 82%, 63%) 37%, 0%,
31+
#0000 40%, 0%,
32+
hsl(357, 84%, 65%) 46%, 0%,
33+
#0000 48%, 0%,
34+
hsl(7, 86%, 65%) 55%, 0%,
35+
#0000 56%, 0%,
36+
hsl(17, 88%, 65%) 57%,
37+
hsl(40, 90%, 65%) 100%);
38+
-webkit-background-clip: text;
39+
-webkit-text-fill-color: transparent;
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@font-face {
2+
font-family: 'Edge of the Galaxy';
3+
src: url('./fonts/edge-of-the-galaxy.woff2') format('woff2');
4+
}
5+
6+
body {
7+
display: flex;
8+
flex-direction: column;
9+
align-items: center;
10+
justify-content: center;
11+
/* https://www.wallpaperflare.com/outer-space-illustration-nebula-stars-green-galaxy-tylercreatesworlds-wallpaper-qws */
12+
background: url(./spaaaaace.webp) no-repeat 50% 50% fixed;
13+
background-size: cover;
14+
}
15+
16+
h1 {
17+
font-size: min(8vw, 4rem);
18+
filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.5)) drop-shadow(2px 2px 10px rgb(100, 170, 150)) drop-shadow(2px 2px 30px white);
19+
font-family: 'Edge of the Galaxy';
20+
color: hsl(165, 100%, 95%);
21+
}

apps/svelte.dev/src/routes/tutorial/[slug]/content.server.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,11 @@ export async function load_exercise(slug: string): Promise<Exercise> {
114114
const b: Record<string, string> = {};
115115

116116
for (const key in assets.a) {
117-
// https://github.com/vitejs/vite/issues/17484 — need to replace `.css.x` with `.css`
118-
a[key.replace(/\.css\.x$/, '.css')] = await get(assets.a, key);
117+
a[key] = await get(assets.a, key);
119118
}
120119

121120
for (const key in assets.b) {
122-
b[key.replace(/\.css\.x$/, '.css')] = await get(assets.b, key);
121+
b[key] = await get(assets.b, key);
123122
}
124123

125124
for (const key in common) {

apps/svelte.dev/src/routes/tutorial/[slug]/shared.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export const text_files = new Set([
55
'.js',
66
'.ts',
77
'.css',
8-
'.x', // https://github.com/vitejs/vite/issues/17484
98
'.svg',
109
'.html',
1110
'.md',

0 commit comments

Comments
 (0)