-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (67 loc) · 1.62 KB
/
index.html
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link href="https://fonts.googleapis.com/css2?family=Recursive&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Blocks</title>
<style>
body {
background-color: #222;
}
#app {
margin-left: auto;
margin-right: auto;
width: 800px;
}
canvas {
width: 800px;
height: 800px;
image-rendering: pixelated;
}
#buttons {
display: flex;
width: 100%;
}
button {
display: block;
flex-grow: 1;
padding: 10px;
font-family: 'Recursive', monospace;
background: black;
color: white;
font-size: larger;
}
button.clicked, button:active {
background: white;
color: black;
}
input {
width: 100%;
font-family: 'Recursive', monospace;
background: black;
color: white;
outline: none;
margin: 0;
border: none;
font-size: larger;
}
</style>
</head>
<body>
<div id="app">
<canvas width="40" height="40"></canvas>
<br/>
<input type="text" value="0" autocomplete="off" />
<br/>
<div id="buttons">
<button id="auto">Auto</button>
<button id="reset">Reset</button>
<button id="grow">Grow</button>
<button id="change">Change</button>
<button id="shrink">Shrink</button>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>