-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
150 lines (147 loc) · 6.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
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
149
150
<!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>Color Splash</title>
<script src="./scripts/app.js" defer></script>
<script src="./scripts/save-library.js" defer></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/chroma-js/2.1.0/chroma.min.js"
integrity="sha256-gX8uuyxN8stSMHWO9arnnKyenTOALaVAcVB3b6P87e4="
crossorigin="anonymous" defer></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="./styles/style.css">
<link rel="shortcut icon" href="./assets/favicon.ico" type="image/x-icon">
</head>
<body>
<!-- color palette -->
<div class="color-palette">
<div class="color">
<h2>hex</h2>
<div class="controls">
<button class="copy"><i class="fas fa-copy"></i></button>
<button class="adjust"><i class="fas fa-sliders-h"></i></button>
<button class="lock"><i class="fa fa-lock-open"></i></button>
</div>
<div class="sliders">
<button class="close-adjustments">X</button>
<span>Hue</span>
<input type="range" name="hue" class="hue-input" min="0" max="360" step="1" data-hue="0">
<span>Saturation</span>
<input type="range" name="saturation" class="saturation-input" min="0" max="1" step="0.01" data-sat="0">
<span>Lightness</span>
<input type="range" name="lightness" class="lightness-input" min="0" max="1" step="0.01" data-light="0">
</div>
</div>
<div class="color">
<h2>hex</h2>
<div class="controls">
<button class="copy"><i class="fas fa-copy"></i></button>
<button class="adjust"><i class="fas fa-sliders-h"></i></button>
<button class="lock"><i class="fas fa-lock-open"></i></button>
</div>
<div class="sliders">
<button class="close-adjustments">X</button>
<span>Hue</span>
<input type="range" name="hue" class="hue-input" min="0" max="360" step="1" data-hue="1">
<span>Saturation</span>
<input type="range" name="saturation" class="saturation-input" min="0" max="1" step="0.01" data-sat="1">
<span>Lightness</span>
<input type="range" name="lightness" class="lightness-input" min="0" max="1" step="0.01" data-light="1">
</div>
</div>
<div class="color">
<h2>hex</h2>
<div class="controls">
<button class="copy"><i class="fas fa-copy"></i></button>
<button class="adjust"><i class="fas fa-sliders-h"></i></button>
<button class="lock"><i class="fas fa-lock-open"></i></button>
</div>
<div class="sliders">
<button class="close-adjustments">X</button>
<span>Hue</span>
<input type="range" name="hue" class="hue-input" min="0" max="360" step="1" data-hue="2">
<span>Saturation</span>
<input type="range" name="saturation" class="saturation-input" min="0" max="1" step="0.01" data-sat="2">
<span>Lightness</span>
<input type="range" name="lightness" class="lightness-input" min="0" max="1" step="0.01" data-light="2">
</div>
</div>
<div class="color">
<h2>hex</h2>
<div class="controls">
<button class="copy"><i class="fas fa-copy"></i></button>
<button class="adjust"><i class="fas fa-sliders-h"></i></button>
<button class="lock"><i class="fas fa-lock-open"></i></button>
</div>
<div class="sliders">
<button class="close-adjustments">X</button>
<span>Hue</span>
<input type="range" name="hue" class="hue-input" min="0" max="360" step="1" data-hue="3">
<span>Saturation</span>
<input type="range" name="saturation" class="saturation-input" min="0" max="1" step="0.01" data-sat="3">
<span>Lightness</span>
<input type="range" name="lightness" class="lightness-input" min="0" max="1" step="0.01" data-light="3">
</div>
</div>
<div class="color">
<h2>hex</h2>
<div class="controls">
<button class="copy"><i class="fas fa-copy"></i></button>
<button class="adjust"><i class="fas fa-sliders-h"></i></button>
<button class="lock"><i class="fas fa-lock-open"></i></button>
</div>
<div class="sliders">
<button class="close-adjustments">X</button>
<span>Hue</span>
<input type="range" name="hue" class="hue-input" min="0" max="360" step="1" data-hue="4">
<span>Saturation</span>
<input type="range" name="saturation" class="saturation-input" min="0" max="1" step="0.01" data-sat="4">
<span>Lightness</span>
<input type="range" name="lightness" class="lightness-input" min="0" max="1" step="0.01" data-light="4">
</div>
</div>
</div>
<!-- control panel -->
<div class="panel">
<div class="library-panel">
<button class="library"><i class="fas fa-book-open"></i></button>
<p>Library</p>
</div>
<div class="generate-panel">
<button class="generate"><i class="fas fa-sync"></i></button>
<p>Generate</p>
</div>
<div class="save-panel">
<button class="save"><i class="fas fa-save"></i></button>
<p>Save</p>
</div>
</div>
<!-- pop ups -->
<div class="copy-container">
<div class="copy-popup">
<h3>Copied to clipboard!</h3>
<h4>👍</h4>
</div>
</div>
<div class="save-container">
<div class="save-popup">
<button class="save-close">X</button>
<h3>Give a name to your palette</h3>
<input type="text" class="save-name" maxlength="20">
<button type="submit" class="save-submit">Save</button>
</div>
</div>
<div class="library-container">
<div class="library-popup">
<button class="library-close">X</button>
<h3>Choose your Palette</h3>
<button class="delete-btn">Delete All</button>
</div>
</div>
</body>
</html>