-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (39 loc) · 1.97 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="styles.css" />
<title>Document</title>
</head>
<body>
<div id="canvas">
<div class="flex">
<input class="deco" type="color" id="color" value="white">
<div class="color-option" style="background-color: #eb3b5a;" data-color="#eb3b5a"></div>
<div class="color-option" style="background-color: #fa8231;" data-color="#fa8231"></div>
<div class="color-option" style="background-color: #f7b731;" data-color="#f7b731"></div>
<div class="color-option" style="background-color: #20bf6b;" data-color="#20bf6b"></div>
<div class="color-option" style="background-color: #0fb9b1;" data-color="#0fb9b1"></div>
<div class="color-option" style="background-color: #2d98da;" data-color="#2d98da"></div>
<div class="color-option" style="background-color: #3867d6;" data-color="#3867d6"></div>
<div class="color-option" style="background-color: #8854d0;" data-color="#8854d0"></div>
<div class="color-option" style="background-color: #a5b1c2;" data-color="#a5b1c2"></div>
<div class="color-option" style="background-color: #4b6584;" data-color="#4b6584"></div>
</div>
<canvas></canvas>
<div class="btns">
<input id="line-width" type="range" max="10" min="1" value="5" step="1"> <!-- step은 증가나 감소되는 정도를 정할수 있다 -->
<button id="mode-btn">🖊 Draw</button>
<button id="destroy-btn">💣 Destroy</button>
<button id="eraser-btn">❌ Eraser</button>
<label for="file"> 📄 Add Photo
<input type="file" accept="image/*" id="file">
</label>
<input type="text" placeholder="write anything" id="text">
<button id="save">📁 Save Image</button>
</div>
</div>
<script src="app.js"></script>
</body>
</html>