File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments