-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (71 loc) · 3.83 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Etch-A-Sketch</title>
<link rel="stylesheet" href="css/style.css">
<script src="js/script.js" defer></script>
</head>
<body>
<!-----
<header>
<p>The Odin Project Curriculum</p>
<p>Etch A Sketch Project</p>
</header>
--->
<main>
<div class="container">
<div class="main__header">
<div class="header__title">Etch A Sketch</div>
<div class="header__clear">
<input class="clear__slider" type="range" step="1" value="0" min="0" max="16" oninput="eraseDisplay()">
</div>
<div class="help__button">
<button class="button__help">?</button>
</div>
</div>
<div class="main__middle">
<div class="middle__left">
</div>
<div class="middle__display">
<div class="display__help">
<h1>Welcome to my home project from The Odin Project Foundations curriculum, Etch-A-Sketch like app.</h1>
<p>You can draw in two different modes: using the mouse (Mouse button) or the wheels below the screen (Wheels button).</p>
<p>In Mouse mode, right-click erases the color of one cell.</p>
<p>For drawing in Wheels mode, use the A and Z buttons for horizontal drawing and the K and M buttons for vertical drawing. You can also try controlling the wheels with the mouse.</p>
<p>A cell can be filled with black color (Black button) or a random color from the RGB palette (Color button).</p>
<p>If you color the grid again, it will become darker towards black by about 10%.</p>
<p>To clear the screen, use the top slider. Slide it all the way to the right and back to start draw again.</p>
<p>The right slider changes the screen resolution.</p>
</div>
</div>
<div class="middle__right">
<div class="size__slider">
<input class="vertical__slider" type="range" step="16" orient="vertical" value="16" min="16" max="96" oninput="sizeChange()">
</div>
<div class="size__info">
<span class="resolution__width">16</span><span> x </span><span class="resolution__height">9</span>
</div>
</div>
</div>
<div class="main__bottom">
<div class="left__wheel wheel"></div>
<div class="bottom__left">
<button class="black__button active">black</button>
<button class="color__button">color</button>
</div>
<div class="bottom__title">Etch A Sketch</div>
<div class="bottom__right">
<button class="hover__button active">mouse</button>
<button class="wheels__button">wheels</button>
</div>
<div class="right__wheel wheel"></div>
</div>
<div class="mobile__buttons"></div>
</div>
</main>
<footer>Designed by Barister © 2023<a href="https://github.com/Barister/etch-a-sketch"><img class="github__logo" src="img/github-mark.svg" alt=""></a></footer>
</body>
</html>