folk-canvas/website/canvas/morph/spreadsheet-shape-projectio...

49 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Shapes</title>
<style>
html {
width: 100%;
height: 100%;
position: fixed;
overflow: hidden;
}
body {
min-height: 100%;
position: relative;
margin: 0;
}
folk-shape {
background: rgb(187, 178, 178);
}
h1 {
margin: 0;
width: fit-content;
}
</style>
</head>
<body>
<folk-space-projector>
<h1>Spatial projection into a spreadsheet</h1>
<folk-shape x="100" y="100" width="50" height="50"></folk-shape>
<folk-shape x="100" y="200" width="50" height="50"></folk-shape>
<folk-shape x="100" y="300" width="50" height="50" rotation="45"></folk-shape>
<folk-shape x="200" y="200" width="50" height="50" rotation="45"></folk-shape>
<folk-shape x="400" y="100" width="50" height="50"></folk-shape>
<folk-shape x="300" y="200" width="50" height="50"></folk-shape>
<folk-shape x="500" y="300" width="50" height="50" rotation="45"></folk-shape>
</folk-space-projector>
<script type="module">
import '@labs/standalone/folk-shape.ts';
import '@labs/standalone/folk-space-projector.ts';
</script>
</body>
</html>