Repository navigation
Expand file tree
/
Copy pathdemo.html
More file actions
35 lines (35 loc) · 2.12 KB
/
Copy pathdemo.html
File metadata and controls
35 lines (35 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pytml — Demos</title>
<style>
body { font-family: system-ui, sans-serif; margin: 0; background: #070a12; color: #eef2ff; }
main { max-width: 1100px; margin: auto; padding: 50px 24px; }
a { color: inherit; text-decoration: none; }
.back { color: #93c5fd; }
h1 { font-size: 48px; margin: 16px 0 8px; }
.lead { color: #9ca8bc; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 18px; margin-top: 32px; }
.card { border: 1px solid #202941; background: #0e1322; border-radius: 16px; padding: 22px; }
.card h2 { margin-top: 0; }
.card p { color: #9ca8bc; line-height: 1.55; min-height: 48px; }
.open { display: inline-block; margin-top: 10px; background: #3b82f6; padding: 10px 14px; border-radius: 10px; }
</style>
</head>
<body>
<main>
<a class="back" href="index.html">← Back to Pytml</a>
<h1>Pytml Demos</h1>
<p class="lead">Runnable examples using the public Pytml runtime at https://pytml.vercel.app/pytml.js.</p>
<div class="grid">
<article class="card"><h2>Calculator</h2><p>A simple calculator using numbered Pytml buttons inside <py1>.</p><a class="open" href="examples/calculator.html">Open demo →</a></article>
<article class="card"><h2>Counter</h2><p>Small state example showing Python event handlers and DOM updates.</p><a class="open" href="examples/counter.html">Open demo →</a></article>
<article class="card"><h2>Greeting</h2><p>Use browser input and Python to build a tiny interactive page.</p><a class="open" href="examples/greeting.html">Open demo →</a></article>
<article class="card"><h2>Joystick</h2><p>Pointer/touch joystick controls exposed to Python.</p><a class="open" href="examples/joystick.html">Open demo →</a></article>
<article class="card"><h2>Packages</h2><p>Install Python packages through micropip and use them in the browser.</p><a class="open" href="examples/packages.html">Open demo →</a></article>
</div>
</main>
</body>
</html>