File tree 6 files changed +38
-2
lines changed 6 files changed +38
-2
lines changed Original file line number Diff line number Diff line change 5
5
< link rel ="icon " href ="%sveltekit.assets%/favicon.png " />
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1 " />
7
7
< meta name ="color-scheme " content ="dark light " />
8
+ < meta name ="theme-color " media ="(prefers-color-scheme: light) " content ="#fff " />
9
+ < meta name ="theme-color " media ="(prefers-color-scheme: dark) " content ="#2e2e2e " />
10
+ < meta name ="description " content ="Learn Svelte and SvelteKit with an interactive browser-based tutorial " />
11
+ < link rel ="manifest " href ="/manifest.json " />
8
12
%sveltekit.head%
9
13
</ head >
10
14
< body data-sveltekit-preload-data ="hover ">
Original file line number Diff line number Diff line change 25
25
}}
26
26
/>
27
27
28
- <a {href } class =" new-tab icon" target =" _blank" aria-label =" open in new tab" tabindex =" 0" />
28
+ <a {href } class ="new-tab icon" target ="_blank" aria-label ={ href ? ' open in new tab' : undefined } tabindex =" 0" />
29
29
30
30
<button
31
31
disabled ={loading }
Original file line number Diff line number Diff line change 156
156
</div >
157
157
158
158
<header >
159
- <a href ={current .prev ? ` /tutorial/${current .prev .slug } ` : undefined } aria-label =" Previous" >
159
+ <a href ={current .prev ? ` /tutorial/${current .prev .slug } ` : undefined } aria-label ={ current . prev && ' Previous' } >
160
160
<Icon name ="arrow-left" size ={16 } />
161
161
</a >
162
162
351
351
box-sizing : border-box ;
352
352
}
353
353
354
+ header a {
355
+ height : 100% ;
356
+ display : flex ;
357
+ align-items : center ;
358
+ justify-content : center ;
359
+ padding : 0 1rem ;
360
+ }
361
+
354
362
a :focus-visible ,
355
363
.exercises button :focus-visible {
356
364
outline : none ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "short_name" : " Learn Svelte" ,
3
+ "name" : " learn.svelte.dev" ,
4
+ "description" : " An interactive Svelte/SvelteKit tutorial" ,
5
+ "icons" : [
6
+ {
7
+ "src" : " /svelte-logo-square.svg" ,
8
+ "type" : " image/svg+xml" ,
9
+ "sizes" : " 512x512"
10
+ },
11
+ {
12
+ "src" : " /svelte-logo-square.png" ,
13
+ "type" : " image/png" ,
14
+ "sizes" : " 512x512" ,
15
+ "purpose" : " any maskable"
16
+ }
17
+ ],
18
+ "start_url" : " /" ,
19
+ "background_color" : " #383838" ,
20
+ "theme_color" : " #383838" ,
21
+ "display" : " minimal-ui" ,
22
+ "scope" : " /"
23
+ }
You can’t perform that action at this time.
0 commit comments