forked from ANSHIKA1806/PICSTAR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
103 lines (98 loc) · 4.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="//use.fontawesome.com/releases/v5.0.7/css/all.css">
<link rel="icon" href="public/favicon.ico" type="image/x-icon" />
<meta charset="UTF-8" />
<title>PicStar Image Editor</title>
<link rel="stylesheet" href="./style.css" />
<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=Lobster&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Lobster&family=Roboto:wght@100;400;700&display=swap" rel="stylesheet">
</head>
<body>
<div>
<div class="container">
<div class="main-display">
<h1 class="title">PicStar</h1>
<p id="">Photo Editing. Simplified</p>
<!-- <img src="/public/sample.jpeg" class="viewport"/> -->
<canvas id="canvas" class="viewport"></canvas>
<div class="button-row">
<label class="custom-file-upload">
<input
type="file"
id="imageLoader"
name="imageLoader"
value="upload picture"
/>
<span><i class="fas fa-cloud-upload-alt"></i>Upload New</span>
</label>
<button class="download-button" id="download-button"><span><i class="fas fa-cloud-download-alt"></i>Download</span></button>
</div>
</div>
<div class="right">
<div class="tools-help"><h2>Tools </h2><button id="myBtn"><span class="help"><i class="fas fa-info-circle"></i>How to Use</span></button></div>
<div class="tools">
<div class="tool">
<div class='tool-toggle'><input type="checkbox" id="bri_check" />
<p class="tool-name">Brightness</p>
</div>
<input type="range" min="0" max="1" step="0.01" id="bright" />
</div>
<div class="tool">
<div class='tool-toggle'><input type="checkbox" id="gre_check" />
<p class="tool-name">GreyScale</p>
</div>
<input type="range" min="0" max="3" step="0.3" id="greyscale" />
</div>
<div class="tool">
<div class='tool-toggle'><input type="checkbox" id="cont_check" />
<p class="tool-name">Contrast</p>
</div>
<input type="range" min="0" max="500" step="1" id="contrast" />
</div>
<div class="tool">
<div class='tool-toggle'><input type="checkbox" id="invert" />
<p class="tool-name">Invert</p>
</div>
</div>
<div class="tool">
<div class='tool-toggle'><input type="checkbox" id="bwhite" />
<p class="tool-name">Black and White</p>
</div>
</div>
<div class="tool">
<div class='tool-toggle'><input type="checkbox" id="sat_check" />
<p class="tool-name">Saturation</p>
<input type="range" min="0" max="1" step="0.01" id="saturation" />
</div>
</div>
<h4 class="maker">
Made by<a
href="https://www.linkedin.com/in/anshika-singh-589922164/"
target="_blank"
>
© Anshika 🌸</a
>
</h4>
</div>
</div>
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close">×</span>
<h3 id="instructions-heading">How to use :</h3>
<h4 id="instructions">
<ol>
<li>Upload an image of .jpg or .png format</li>
<li>Click on the toggle buttons to apply the features</li>
<li>Drag the slider until you get a statisfying image</li>
<li>Click on Download to export the image</li>
</ol>
</h4>
</div>
<script src="./script.js"></script>
</body>
</html>