forked from OindrilaDas27/Plot
-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
121 lines (121 loc) · 3.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- meta -->
<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 -->
<title>Plot</title>
<!-- styles -->
<link rel="stylesheet" href="./assets/css/index.css" />
<link
rel="icon"
type="image/x-icon"
href="https://cdn-icons-png.flaticon.com/512/2400/2400603.png"
/>
<!-- scripts -->
<script src="./assets/js/utils.js" defer></script>
<script src="./assets/js/app.js" defer></script>
<script src="./assets/js/index.js" defer></script>
</head>
<body>
<!-- top action bar -->
<section id="action-bar">
<!-- group 1: tools -->
<div class="action-group">
<div id="actions">
<div class="action">
<button id="clear-canvas">clear canvas</button>
</div>
<div class="action">
<select class="selectFormat" name="fileFormat" id="fileFormat">
<option value="png">.png</option>
<option value="jpg">.jpg</option>
</select>
<button id="save-canvas">Save Image</button>
</div>
</div>
</div>
<!-- group 2: tools -->
<div class="action-group">
<!-- tools -->
<div class="tools">
<!-- pencil -->
<div class="tool active" id="pencil">
<img src="./assets/images/pencil.png" alt="pencil" />
</div>
<!-- brush -->
<div class="tool" id="brush">
<img src="./assets/images/brush.png" alt="brush" />
</div>
<!-- eraser -->
<!-- TODO: https://github.com/GDSC-IIIT-Kalyani/Plot/issues/17 -->
<div class="tool" id="eraser">
<img src="./assets/images/eraser.png" alt="eraser" />
</div>
<!-- bucket -->
<div class="tool" id="bucket">
<img src="./assets/images/bucket.svg" alt="bucket" />
</div>
</div>
<!-- group title -->
<p class="title">tools</p>
</div>
<!-- group 3: shapes -->
<div class="action-group">
<!-- shapes -->
<div class="tools">
<!-- rectangle -->
<div class="tool" id="rectangle">
<img src="./assets/images/rectangle.svg" alt="rectangle" />
</div>
<!-- circle -->
<div class="tool" id="circle">
<img src="./assets/images/circle.svg" alt="circle" />
</div>
<!-- triangle -->
<div class="tool" id="triangle">
<img src="./assets/images/triangle.svg" alt="triangle" />
</div>
</div>
<!-- group title -->
<p class="title">shapes</p>
</div>
<!-- group 4: colors -->
<div class="action-group">
<!-- colors -->
<div id="colors-wrapper">
<div id="colors">
<div class="color"></div>
<div class="color selected"></div>
<div class="color"></div>
<div class="color"></div>
</div>
<div id="color-picker-wrapper">
<input type="color" id="color-picker" value="#04a9f7" />
<label for="color-picker">pick</label>
</div>
</div>
<!-- group title -->
<p class="title">colors</p>
</div>
<div class="action-group">
<input
type="range"
id="brush-width-slider"
min="1"
max="30"
value="2"
disabled
/>
<!-- group title -->
<p class="title">thickness</p>
</div>
</section>
<!-- drawing-board -->
<section id="drawing-board">
<canvas></canvas>
</section>
</body>
</html>