-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
148 lines (148 loc) · 4.85 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
<!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" />
<meta name="title" content="Paint app" />
<meta name="description" content="Paint app by Saksham Gupta" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Paint app" />
<meta property="og:url" content="https://sakshamgupta.vercel.app/" />
<meta property="og:description" content="Paint app by Saksham Gupta" />
<meta
property="og:image"
content="https://sakshamgupta.vercel.app/assets/images/manOnTable.svg"
/>
<meta property="og:site_name" content="Paint app" />
<meta name="twitter:title" content="Paint app by Saksham Gupta" />
<meta name="twitter:description" content="Paint app by Saksham Gupta" />
<meta
name="twitter:image"
content="https://sakshamgupta.vercel.app/assets/images/manOnTable.svg"
/>
<title>Paint app</title>
<link rel="shortcut icon" href="/assets/favicon.ico" type="image/x-icon" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="/styles/styles.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"
integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
</head>
<body>
<header class="header flex items-center justify-center">
<!-- Brush -->
<div
id="brush"
title="Brush"
class="tool tool--active flex justify-center items-center rounded w-12 h-12 text-xl cursor-pointer"
>
<i class="fas fa-pencil"></i>
</div>
<!-- Pen color picker -->
<div class="ml-3">
<input
type="color"
value="#ef4444"
id="brushColor"
class="cursor-pointer"
/>
</div>
<!-- Pen size -->
<div
title="Pen size"
class="tool flex justify-center items-center rounded w-12 h-12 text-xl ml-3 cursor-pointer"
id="brushSizeValue"
>
10
</div>
<!-- Pen size range slider -->
<div class="ml-3">
<input
type="range"
min="1"
max="50"
value="10"
id="brushSize"
class="slider"
/>
</div>
<!-- Whiteboard background -->
<div
title="Whiteboard colour"
class="tool flex justify-center items-center rounded w-12 h-12 text-xl ml-3"
>
<i class="fas fa-fill-drip"></i>
</div>
<!-- Whiteboard background color picker -->
<div class="ml-3">
<input
type="color"
value="#ffffff"
id="bgColorPicker"
class="cursor-pointer"
/>
</div>
<!-- Eraser -->
<div
title="Eraser"
id="eraser"
class="tool flex justify-center items-center rounded w-12 h-12 text-xl ml-3 cursor-pointer"
>
<i class="fas fa-eraser"></i>
</div>
<!-- Clear all -->
<div
id="clearCanvas"
title="Clear all"
class="tool flex justify-center items-center rounded w-12 h-12 text-xl ml-3 cursor-pointer"
>
<i class="fas fa-undo-alt"></i>
</div>
<!-- Save change to local storage -->
<div
id="saveCanvas"
title="Save to local storage"
class="tool flex justify-center items-center rounded w-12 h-12 text-xl ml-3 cursor-pointer"
>
<i class="fas fa-download"></i>
</div>
<!-- Fetch changes from local storage -->
<div
id="loadCanvas"
title="Fetch last saved paint"
class="tool flex justify-center items-center rounded w-12 h-12 text-xl ml-3 cursor-pointer"
>
<i class="fas fa-upload"></i>
</div>
<!-- Delete saved paint -->
<div
id="deleteSavedCanvas"
title="Delete saved paint"
class="tool flex justify-center items-center rounded w-12 h-12 text-xl ml-3 cursor-pointer"
>
<i class="fas fa-trash-alt"></i>
</div>
<!-- Download paint as image -->
<a
id="downloadCanvas"
title="Download paint as image"
class="tool flex justify-center items-center rounded w-12 h-12 text-xl ml-3 cursor-pointer"
>
<i class="far fa-save"></i>
</a>
</header>
<canvas class="canvas" id="canvas"></canvas>
<script type="module" src="/utils/throttle.js"></script>
<script type="module" src="/scripts/index.js"></script>
</body>
</html>