-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
67 lines (58 loc) · 2.25 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
<html lang="en">
<head>
<link rel="shortcut icon" type="image/png" href="assets/pen.png" />
<meta name="Description" content="Broider is a fun tool for designing border decorations!" />
<title>broider</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<link rel="stylesheet" type="text/css" href="./main.css" />
<body class="broider">
<div id="editor-frame">
<canvas id="guide"></canvas>
<canvas id="editor"></canvas>
<div id="tools">
<img alt="pen" id="pen" src="assets/pen.png" class="selected" />
<img alt="eraser" id="eraser" src="assets/eraser.png" />
<img alt="symmetry" id="symmetry" src="assets/symmetry.png" class="selected" />
<img alt="undo" id="undo" src="assets/undo.png" />
</div>
</div>
<div class="showcase">
<img alt="scale" id="scale" src="assets/4.png" class="selected broider" style="grid-area: 1/1" />
<input class="broider desktop" type="color" id="color" name="head" value="#000" style="grid-area: 1/3/1/3" />
<canvas id="render"></canvas>
<pre id="target" class="broider desktop" style="grid-area: 2/1/3/3"></pre>
<div class="broider blurb">
This a tool for making "9-patch" borders.
<br />
<br />
You can copy the css below to use with your own sites!
</div>
<div class="broider desktop" style="
grid-area: 2/3/4/3;
display: flex;
overflow: hidden;
padding: 1px;
">
<div class="broider desktop" style="display: flex; flex-grow: 1"></div>
</div>
<div class="broider" style="grid-area: 3/2/4/3">
<input type="text" id="title" placeholder="your name" class=" " style="
width: 60%;
padding: 0.5em;
background-color: transparent;
border: none;
" />
<button style="background-color: transparent; border: none; cursor: pointer" id="submit">
[submit to gallery]
</button>
</div>
</div>
<div id="gallery">
<div class="gallery-line">loading</div>
</div>
</body>
<script async defer src="https://cdn.simpleanalytics.io/hello.js"></script>
<noscript><img src="https://api.simpleanalytics.io/hello.gif" alt="" /></noscript>
<script type="module" src="./index.ts"></script>
</html>