-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (49 loc) · 2.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bordy</title>
<meta name="Description" content="Bordy is a fun tool for designing border decorations!" />
<link rel="shortcut icon" type="image/png" href="assets/pen.png" />
<link rel="stylesheet" type="text/css" href="./main.css" />
</head>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6F1EGJW85Q"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-6F1EGJW85Q");
</script>
<body class="bordy">
<main id="editor-frame">
<canvas id="guide"></canvas>
<canvas id="editor"></canvas>
<div id="tools">
<img alt="Pen tool" id="pen" src="assets/pen.png" class="selected" role="button" />
<img alt="Eraser tool" id="eraser" src="assets/eraser.png" role="button" />
<img alt="Symmetry tool" id="symmetry" src="assets/symmetry.png" class="selected" role="button" />
<img alt="Undo last action" id="undo" src="assets/undo.png" role="button" />
</div>
</main>
<section class="showcase">
<img alt="Scale pattern" id="scale" src="assets/4.png" class="selected bordy" />
<input type="color" id="color" name="head" value="#000000" class="bordy desktop" />
<canvas id="render"></canvas>
<div id="vector-target"></div>
<pre id="target" class="bordy desktop" style="grid-area: 2/1/3/3"></pre>
<p class="bordy blurb">Draw on the grid above to design your pattern.</p>
<div class="bordy desktop" style="grid-area: 2/3/4/3; display: flex; overflow: hidden; padding: 1px">
<div class="bordy desktop" style="display: flex; flex-grow: 1"></div>
</div>
<footer class="bordy desktop" style="grid-area: 3/2/4/3">
When you're done, you can copy the css above to use with your own sites!<br />
<br />
made by <a href="https://gornall.tech">joshua gornall</a>
</footer>
</section>
</body>
<script type="module" src="./index.ts"></script>
</html>