-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
167 lines (167 loc) · 7.53 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
rel="stylesheet"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="style.css" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap"
rel="stylesheet"
/>
<title>Sketchpad</title>
</head>
<body>
<main>
<aside class="toolbar" id="toolbar">
<h1>
SKETCH-UP! <br /><br /><br /><br /><br /><br /><br />
Tools and Settings
</h1>
<div class="toolbar__pen-colors container">
<h2>Stroke Colors</h2>
<div class="pen-colors__container">
<button
data-color="red"
class="color red-paint selected-color"
></button>
<button
data-color="green"
class="color green-paint"
></button>
<button
data-color="blue"
class="color blue-paint"
></button>
<button
data-color="black"
class="color black-paint"
></button>
</div>
</div>
<div class="toolbar__pen-tool container">
<h2>Pen and Pen Size</h2>
<div class="pen-tool__container">
<button data-tool="pen" class="tool selected-tool">
<i class="fa fa-pencil" aria-hidden="true"></i>
</button>
<div class="tool-size">
<div class="tool-slider-container">
<span class="smallest-size"></span>
<input
type="range"
class="tool-slider"
min="3"
max="30"
value="10"
id="pen-slider"
/>
<span class="largest-size"></span>
</div>
</div>
</div>
</div>
<div class="toolbar__eraser-tool container">
<h2>Eraser and Eraser Size</h2>
<div class="eraser-tool__container">
<button data-tool="eraser" class="tool">
<i class="fa fa-eraser" aria-hidden="true"></i>
</button>
<div class="tool-size">
<div class="tool-slider-container">
<span class="smallest-size"></span>
<input
class="tool-slider"
type="range"
min="3"
max="60"
value="10"
id="eraser-slider"
/>
<span class="largest-size"></span>
</div>
</div>
</div>
</div>
<div class="toolbar__text-tool container">
<h2>Text</h2>
<button data-tool="text" class="tool">
<i class="fa fa-font" aria-hidden="true"></i>
</button>
<div class="tool-size">
<select name="font-size" id="font-size">
<option value="16">16px</option>
<option value="18">18px</option>
<option value="24">24px</option>
<option value="32">32px</option>
</select>
<select name="font-family" id="font-family">
<option value="Arial">Arial</option>
<option value="Times New Roman">
Times New Roman
</option>
<option value="Monospace">Monospace</option>
</select>
</div>
</div>
<div class="toolbar__shapes-tools container">
<h2>Shape Tools and Size</h2>
<div class="shapes-container">
<button data-tool="rectangle" class="tool">
<i
style="vertical-align: bottom"
class="fa fa-square-o"
aria-hidden="true"
></i>
</button>
<button data-tool="circle" class="tool">
<i class="fa fa-circle-thin" aria-hidden="true"></i>
</button>
<button data-tool="line" class="tool">/</button>
</div>
<div class="tool-size shapes-size">
<div class="tool-slider-container">
<span class="smallest-size"></span>
<input
class="tool-slider"
type="range"
min="3"
max="30"
value="10"
id="shapes-slider"
/>
<span class="largest-size"></span>
</div>
</div>
</div>
<div class="misc-actions-container">
<div class="grid-toggle-container">
<label for="grid-toggle">Grid</label>
<input type="checkbox" id="grid-toggle" />
</div>
<button class="action undo-btn" id="undo">
<i class="fa fa-undo" aria-hidden="true"></i>
</button>
<button class="action trash-btn" id="trash">
<i class="fa fa-trash" aria-hidden="true"></i>
</button>
</div>
<button id="changeBgColorBtn">Change Background Color</button>
</aside>
<canvas id="canvas"></canvas>
<!-- absolutely positioned elements -->
<span
contenteditable="true"
id="text-tool-input"
type="text"
></span>
<div id="grid"></div>
</main>
<script src="script.js"></script>
</body>
</html>