-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
87 lines (85 loc) · 3.05 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Sketch</title>
<link rel="stylesheet" href="styles/style.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap"
rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
rel="stylesheet">
</head>
<body class="grid">
<div id="left-col" class="grid">
<div class="shadow">
<h2>Paint</h2>
<div class="grid">
<!-- The paint button is selected by default. -->
<button id="select-pen" class="btn paint selected shadow">pen</button>
<button id="select-pencil" class="btn paint shadow">pencil</button>
<button id="select-erase" class="btn paint shadow">erase</button>
</div>
<form id="paint-form">
<div id="paint-preview" class="color-preview"></div>
<label>color</label>
<input type="text" id="paint-color" placeholder="CSS color value">
</form>
</div>
<div class="shadow">
<h2>Canvas</h2>
<form id="canvas-form">
<label>size</label>
<input type="number" id="resolution"
placeholder="# from 2-150">
<div id="background-preview" class="color-preview"></div>
<label>color</label>
<input type="text" id="background-color"
placeholder="CSS color value">
<input type="button" id="submit" class="btn shadow" value="reset canvas">
</form>
</div>
</div>
<table id="canvas" class="shadow"></table>
<div id="right-col" class="grid">
<div class="shadow">
<h1>
Sketch
</h1>
</div>
<div class="shadow">
<h2 id="instructions">Instructions</h2>
<h3>Painting</h3>
<ol>
<li>Select pen, pencil, or eraser</li>
<li>
Choose a paint color
<ul>
<li>ex)</li>
<ul>
<li>rainbow</li>
<li>#ADD8E6</li>
<li>pink</li>
<li>rgb(1,80,99)</li>
</ul>
</ul>
</li>
<li>Click and drag across canvas</li>
</ol>
<h3>Changing the canvas</h3>
<ol>
<li>Choose the size</li>
<li>Choose a background color</li>
<li>Click "reset canvas"</li>
</ol>
</div>
<div class="shadow grid">
<button id="save" class="btn shadow">save as png</button>
</div>
</div>
<footer>
<a href="https://github.com/drew-chen/sketch" target="_blank">source code</a>
</footer>
</body>
<script src="libraries/html2canvas.min.js"></script>
<script src="scripts/script.js"></script>
</html>