mirror of
https://github.com/pyscript/pyscript.git
synced 2022-05-01 19:47:48 +03:00
Refactor the demo page
1. Rename simple script into hello world 2. Rename simple script 2 into simple clock 3. Group demos into categories, starting with simple examples towards more complex ones
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||||
|
|
||||||
<title>Simple script</title>
|
<title>PyScript Hello World</title>
|
||||||
|
|
||||||
<link rel="icon" type="image/png" href="favicon.png" />
|
<link rel="icon" type="image/png" href="favicon.png" />
|
||||||
<link rel="stylesheet" href="../build/pyscript.css" />
|
<link rel="stylesheet" href="../build/pyscript.css" />
|
||||||
@@ -12,18 +12,53 @@
|
|||||||
|
|
||||||
<body class="container font-mono">
|
<body class="container font-mono">
|
||||||
|
|
||||||
<h1 class="text-3xl font-bold">PyScript demos</h1>
|
<h1 class="text-4xl font-bold">PyScript demos</h1>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<h2 class="text-3xl font-bold">Basic examples</h2>
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
|
<h2 class="text-2xl font-bold text-blue-600"><a href="./hello_world.html" target=”_blank”>Hello world</a></h2>
|
||||||
|
<p>A static demo of the <code><py-script></code> tag</p>
|
||||||
|
|
||||||
|
<h2 class="text-2xl font-bold text-blue-600"><a href="./simple_clock.html" target=”_blank”>Simple clock</a></h2>
|
||||||
|
<p>A dynamic demo of the <code><py-script></code> tag</p>
|
||||||
|
|
||||||
|
<h2 class="text-2xl font-bold text-blue-600"><a href="./repl.html" target=”_blank”>REPL</a></h2>
|
||||||
|
<p>A Python REPL (Read Eval Print Loop). </p>
|
||||||
|
|
||||||
|
<h2 class="text-2xl font-bold text-blue-600"><a href="./repl2.html" target=”_blank”>REPL2</a></h2>
|
||||||
|
<p>A Python REPL (Read Eval Print Loop) with slightly better formatting.</p>
|
||||||
|
|
||||||
|
<h2 class="text-2xl font-bold text-blue-600"><a href="./todo.html" target=”_blank”>TODO App</a></h2>
|
||||||
|
<p>Demo showing how would a Simple TODO App would look like in PyScript</code> tag</p>
|
||||||
|
|
||||||
|
<h2 class="text-2xl font-bold text-blue-600"><a href="./todo-pylist.html" target=”_blank”>PyScript Native TODO App</a></h2>
|
||||||
|
<p>Demo showing how would a Simple TODO App would look like only using PyScript native elements</code> tag</p>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<h2 class="text-3xl font-bold">JS Interaction</h2>
|
||||||
|
<hr/>
|
||||||
|
|
||||||
|
<h2 class="text-2xl font-bold text-blue-600"><a href="./d3.html" target=”_blank”>Simple d3 visualization</a></h2>
|
||||||
|
<p>Minimal d3 demo demonstrating how to create a visualization</p>
|
||||||
|
|
||||||
|
<h2 class="text-2xl font-bold text-blue-600"><a href="./webgl/raycaster/index.html" target=”_blank”>Webgl Icosahedron Example</a></h2>
|
||||||
|
<p>Demo showing how a Simple Webgl scene would work in PyScript</code> tag</p>
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<h2 class="text-3xl font-bold">Visualizations & Dashboards</h2>
|
||||||
|
<hr/>
|
||||||
|
<h2 class="text-2xl font-bold text-blue-600"><a href="./bokeh.html" target=”_blank”>Simple Static Bokeh Plot</a></h2>
|
||||||
|
<p>Minimal Bokeh demo demonstrating how to create a simple bokeh plot from code</p>
|
||||||
|
|
||||||
<h2 class="text-2xl font-bold text-blue-600"><a href="./bokeh_interactive.html" target=”_blank”>Bokeh Interactive</a></h2>
|
<h2 class="text-2xl font-bold text-blue-600"><a href="./bokeh_interactive.html" target=”_blank”>Bokeh Interactive</a></h2>
|
||||||
<p>Interactive demo using a Bokeh slider widget to dynamically change a value in the page
|
<p>Interactive demo using a Bokeh slider widget to dynamically change a value in the page
|
||||||
|
|
||||||
WARNING: This examples takes a little longer to load. So be patient :)
|
WARNING: This examples takes a little longer to load. So be patient :)
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h2 class="text-2xl font-bold text-blue-600"><a href="./bokeh.html" target=”_blank”>Simple Static Bokeh Plot</a></h2>
|
|
||||||
<p>Minimal Bokeh demo demonstrating how to create a simple bokeh plot from code</p>
|
|
||||||
|
|
||||||
<h2 class="text-2xl font-bold text-blue-600"><a href="./panel_kmeans.html" target=”_blank”>KMeans Demo in Panel</a></h2>
|
<h2 class="text-2xl font-bold text-blue-600"><a href="./panel_kmeans.html" target=”_blank”>KMeans Demo in Panel</a></h2>
|
||||||
<p>Interactive KMeans Chart using Panel
|
<p>Interactive KMeans Chart using Panel
|
||||||
|
|
||||||
@@ -45,31 +80,8 @@
|
|||||||
<h2 class="text-2xl font-bold text-blue-600"><a href="./toga/freedom.html" target=”_blank”>Freedom Units!</a></h2>
|
<h2 class="text-2xl font-bold text-blue-600"><a href="./toga/freedom.html" target=”_blank”>Freedom Units!</a></h2>
|
||||||
<p>A Toga application (a Fahrenheit to Celsius converter), rendered as a Single Page App</p>
|
<p>A Toga application (a Fahrenheit to Celsius converter), rendered as a Single Page App</p>
|
||||||
|
|
||||||
<h2 class="text-2xl font-bold text-blue-600"><a href="./d3.html" target=”_blank”>Simple d3 visualization</a></h2>
|
|
||||||
<p>Minimal d3 demo demonstrating how to create a visualization</p>
|
|
||||||
|
|
||||||
<h2 class="text-2xl font-bold text-blue-600"><a href="./numpy_canvas_fractals.html" target=”_blank”>Fractals with NumPy and canvas</a></h2>
|
<h2 class="text-2xl font-bold text-blue-600"><a href="./numpy_canvas_fractals.html" target=”_blank”>Fractals with NumPy and canvas</a></h2>
|
||||||
<p>Visualization of Mandelbrot and Julia sets with NumPy and HTML5 canvas</p>
|
<p>Visualization of Mandelbrot and Julia sets with NumPy and HTML5 canvas</p>
|
||||||
|
|
||||||
<h2 class="text-2xl font-bold text-blue-600"><a href="./repl.html" target=”_blank”>REPL</a></h2>
|
|
||||||
<p>A Python REPL (Read Eval Print Loop). </p>
|
|
||||||
|
|
||||||
<h2 class="text-2xl font-bold text-blue-600"><a href="./repl2.html" target=”_blank”>REPL2</a></h2>
|
|
||||||
<p>A Python REPL (Read Eval Print Loop) with slightly better formatting.</p>
|
|
||||||
|
|
||||||
<h2 class="text-2xl font-bold text-blue-600"><a href="./simple_script.html" target=”_blank”>Simple script</a></h2>
|
|
||||||
<p>A static demo of the <code><py-script></code> tag</p>
|
|
||||||
|
|
||||||
<h2 class="text-2xl font-bold text-blue-600"><a href="./simple_script2.html" target=”_blank”>Simple script 2</a></h2>
|
|
||||||
<p>A dynamic demo of the <code><py-script></code> tag</p>
|
|
||||||
|
|
||||||
<h2 class="text-2xl font-bold text-blue-600"><a href="./todo.html" target=”_blank”>TODO App</a></h2>
|
|
||||||
<p>Demo showing how would a Simple TODO App would look like in PyScript</code> tag</p>
|
|
||||||
|
|
||||||
<h2 class="text-2xl font-bold text-blue-600"><a href="./todo-pylist.html" target=”_blank”>PyScript Native TODO App</a></h2>
|
|
||||||
<p>Demo showing how would a Simple TODO App would look like only using PyScript native elements</code> tag</p>
|
|
||||||
|
|
||||||
<h2 class="text-2xl font-bold text-blue-600"><a href="./webgl/raycaster/index.html" target=”_blank”>Webgl Icosahedron Example</a></h2>
|
|
||||||
<p>Demo showing how a Simple Webgl scene would work in PyScript</code> tag</p>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user