File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 5
5
< meta charset ="utf-8 " />
6
6
< link rel ="icon " href ="%sveltekit.assets%/favicon.png " />
7
7
< meta name ="viewport " content ="width=device-width, initial-scale=1 " />
8
+ < title > Write With Harper</ title >
8
9
%sveltekit.head%
9
10
</ head >
10
11
Original file line number Diff line number Diff line change 1
1
<script >
2
2
import Editor from ' $lib/Editor.svelte' ;
3
+
4
+ let width = window .innerWidth ;
5
+
6
+ window .addEventListener (' resize' , () => {
7
+ width = window .innerWidth ;
8
+ });
3
9
</script >
4
10
5
11
<div class =" w-full h-screen flex flex-col items-center m-0 p-0" >
17
23
</div >
18
24
</div >
19
25
<div class =" w-full 2xl:w-3/4 flex-shrink flex-grow overflow-hidden" >
20
- <Editor />
26
+ {#if width > 768 }
27
+ <Editor />
28
+ {:else }
29
+ <p class =" italic text-lg w-full text-center" >
30
+ Open this page on a bigger screen to start checking your work.
31
+ </p >
32
+ {/if }
21
33
</div >
22
34
</div >
You can’t perform that action at this time.
0 commit comments