Skip to content

Commit c788e6f

Browse files
Label each section
1 parent 8c0c9b5 commit c788e6f

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

src/routes/+page.svelte

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ p.html(
3535
});
3636
</script>
3737

38-
<h1>Test out PyHTML</h1>
38+
<h1>Try out PyHTML</h1>
3939
{#if pyodideReady}
40-
<p>Pyodide loaded successfully!</p>
40+
<p class="status">Pyodide loaded successfully!</p>
4141
<main>
4242
<div class="editor">
43+
<h2>Write some code</h2>
4344
<CodeMirror
4445
bind:value={pyhtmlCode}
4546
lang={python()}
@@ -48,18 +49,32 @@ p.html(
4849
</div>
4950

5051
<div class="preview">
52+
<h2>Page preview</h2>
5153
<iframe srcdoc={htmlCode} title="PyHTML preview" frameborder="0"></iframe>
5254
</div>
5355

5456
<div class="html">
57+
<h2>HTML preview</h2>
5558
<pre><code>{htmlCode}</code></pre>
5659
</div>
5760
</main>
5861
{:else}
59-
<p>Pyodide is loading...</p>
62+
<p class="status">Pyodide is loading...</p>
6063
{/if}
6164

6265
<style>
66+
:root {
67+
font-family: Verdana, Geneva, Tahoma, sans-serif;
68+
}
69+
70+
h1 {
71+
text-align: center;
72+
}
73+
74+
.status {
75+
text-align: center;
76+
}
77+
6378
main {
6479
display: grid;
6580
grid-template-areas:

0 commit comments

Comments
 (0)