-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
88 lines (75 loc) · 3.08 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
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Pixel Art Maker!</title>
<link href="https://fonts.googleapis.com/css?family=Bungee|Roboto:300,400" rel="stylesheet">
<link rel="stylesheet" href="resources/css/normalize.css">
<link rel="stylesheet" href="resources/css/master.css">
<link rel="stylesheet" href="resources/css/spectrum.css">
<link rel="shortcut icon" href="resources/graphics/favicon.ico">
</head>
<body>
<header>
<h1>Pixel Art Maker</h1>
</header>
<main>
<!-- Form for creating the grid canvas -->
<form id="size-picker" class="size-picker">
<button id="clear-grid" class="button green-button">clear</button>
<div class="size-wrap">
<h2>Canvas Size</h2>
Height: <input type="number" id="input-height" name="height" min="1" max="64" value="16">
Width: <input type="number" id="input-width" name="width" min="1" max="64" value="16">
</div>
<div class="button-wrap">
<input type="submit" class="button blue-button" value="Build">
</div>
</form>
<div class="break">
</div>
<div id="tool-bar" class="toolbar">
<div class="section">
<input type="text" title="active color" id="color-picker">
<input type="radio" id="picker" name="tool" value="picker">
<label for="picker" title="color picker" class="tile">
<i class="fas fa-eye-dropper"></i>
</label>
<h3>color picker</h3>
</div>
<span class="tool-divider"></span>
<div class="section">
<input type="radio" id="pen" name="tool" value="pen" checked>
<label for="pen" title="pen" class="tile">
<i class="fas fa-pencil-alt" ></i>
</label>
<input type="radio" id="eraser" name="tool" value="eraser">
<label for="eraser" title="eraser" class="tile">
<i class="fas fa-eraser"></i>
</label>
<h3>tools</h3>
</div>
<span class="tool-divider"></span>
<div class="section">
<input type="radio" id="off" name="lines" value="">
<label for="off" title="turn grid lines off" class="tile wider"> off </label>
<input type="radio" id="on" name="lines" value="true" checked>
<label for="on" title="turn grid lines on" class="tile wider"> on </label>
<h3>grid lines</h3>
</div>
</div>
<!-- grid is populated using javascript -->
<table id="pixel-canvas"></table>
</main>
<footer>
<a href="https://grahammatt.github.io"><i class="far fa-copyright"></i> 2018 Matthew Graham</a>
<a href="https://github.com/grahammatt/pixel-art-maker" class="git-link">View on GitHub <i class="fab fa-github"></i></a>
</footer>
<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="resources/js/spectrum.js"></script>
<script src="resources/js/designs.js"></script>
</body>
</html>