Rust trial: port interface to Sycamore

Now we have a reactive web app written entirely in Rust. The Trunk build
tool compiles it to WebAssembly and generates a little JavaScript glue.
This commit is contained in:
Aaron Fenyes 2024-07-29 05:30:16 -07:00
parent 12abef4076
commit 42bdfabd91
10 changed files with 178 additions and 220 deletions

View file

@ -2,20 +2,7 @@
<html>
<head>
<title>Lattice circle</title>
<script type="module" src="app.js"></script>
<link rel="stylesheet" type="text/css" href="app.css"/>
<link data-trunk rel="css" href="main.css"/>
</head>
<body>
<canvas id="display" width=600, height=600></canvas>
<div id="data-panel">
<div>x</div>
<div>y</div>
<input type="number" id="data-input-0" value="-1"/>
<input type="number" id="data-input-1" value="0"/>
<input type="number" id="data-input-2" value="0"/>
<input type="number" id="data-input-3" value="-1"/>
<input type="number" id="data-input-4" value="1"/>
<input type="number" id="data-input-5" value="0"/>
</div>
</body>
<body></body>
</html>