-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
79 lines (68 loc) · 3.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Etch-A-Sketch</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header><h1>Etch-A-Sketch</h1></header>
<main>
<div class="pen-input">
<h3 class="tool-labels" id="h3-pen-color">Pen Colors</h3>
<div class="pen-color">
<button class="pen" id="blackColor">Black</button>
<button class="pen" id="whiteColor">White</button>
<button class="pen" id="rgbColor">RGB</button>
<div class="col-picker">
<label class="sub-labels" for="custom-color">Custom</label>
<input class="color-input" type="color" id="custom-color" value="#ff0000">
</div>
</div>
<h3 class="tool-labels">Pen Tools</h3>
<div class="pen-tools">
<button class="pen" id="tint">Lighten</button>
<button class="pen" id="shade">Darken</button>
<button class="pen" id="trans">Fade</button>
<button class="pen" id="opacity">Opacify</button>
<button class="pen" id="erase">Erase</button>
</div>
</div>
<div class="grid-input">
<h3 class="tool-labels">Grid Tools</h3>
<label class="sub-labels trans" for="canvas-trans">Canvas Transparency: <span id="trans-label"></span></label>
<input class="range-slider" name="canvas-trans" id="canvas-trans" type="range" min="0" max="1" step=".1" value="1">
<div class="grid-tools">
<div class="slider">
<label class="sub-labels" for="gridSlider">Grid Size: <span id="sliderLabel"></span></label>
<input name="gridSlider" id="gridSlider" type="range" min="1" max="60" value="16">
<div class="knob-container">
<div class="knob" id="range-knob">
<div class="knotch" id="range-knotch"></div>
</div>
<div class="knob-shadow"></div>
</div>
</div>
<div class="knobless-grid-tools">
<div class="background-col-picker">
<label class="sub-labels" for="back-col-picker">Canvas color:</label>
<input class="color-input" type="color" id="back-col-picker" value="#ff0000">
</div>
<div class="grid-buttons">
<button id="gridToggle">Grid</button>
<button id="reset">Reset</button>
</div>
</div>
</div>
</div>
<div class="container"></div>
</main>
<footer>
Created by <a href="https://andrindie.com" target="_blank" rel="noreferrer">Octavia Nichols</a>
for <a href="https://www.theodinproject.com/lessons/foundations-etch-a-sketch" target="_blank" rel="noreferrer">The Odin Project</a>.
Check out the code on <a href="https://github.com/Lolabird/odin-etch-a-sketch" target="_blank" rel="noreferrer">GitHub</a>.
</footer>
<script src="script.js"></script>
</body>
</html>