-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
301 lines (265 loc) · 14.7 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<!DOCTYPE html>
<html>
<head>
<title>Rainbow's BFF</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Do not add `link` tags-->
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<!-- Do not add `script` tags-->
<script src="public/vendor.js" type="text/javascript" charset="utf-8" defer></script>
<script src="public/application.js" type="text/javascript" charset="utf-8" defer></script>
</head>
<body>
<!-- HEADER|ACCOUNT DROPDOWN -->
<header>
<nav class="navbar fixed-top navbar-light">
<div class="navbar-brand" href="./index.html">𝕣𝕒𝕚𝕟𝕓𝕠𝕨'𝕤 𝔹.𝔽.𝔽. ⨳ 𝕔𝕠𝕝𝕠𝕣𝕤</div>
<!-- BEFORE SIGN-IN ELEMENT -->
<div id="authArea" class="btn-group">
<div class="dropdown dropdown-menu-right">
<button id="signInButton" class="btn btn-light dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Login ☰
</button>
<div id="signInDropdown" class="dropdown-menu" aria-labelledby="signInDropdown">
<form id="signInForm" class="px-4 py-3">
<div class="sign-in-failure-message">
<div id="signInFailureMessage">
<span class="badge badge-danger">Sign in unsuccessful.</span>
</div>
</div>
<input type="email" name="credentials[email]" class="form-control" placeholder="Email">
<input type="password" name="credentials[password]" class="form-control" placeholder="Password">
<button type="submit" class="btn btn-primary btn-dark">Login</button>
</form>
</div>
</div>
<button style="margin-left: 2px; border-radius: 5px;" class="btn sign-up-button btn-dark" data-toggle="modal" type="button" data-target="#signUpModal" aria-haspopup="true" aria-expanded="false">
Signup
</button>
</div>
<!-- AFTER SIGN-IN ELEMENTS -->
<div id="accountArea" class="btn-group">
<button type="button" class="btn btn-secondary dropdown-toggle round" data-toggle="dropdown" data-display="static" aria-haspopup="true" aria-expanded="false">
<div class="hamburger">
</div>
</button>
<div class="dropdown-menu dropdown-menu-right">
<button id="changePassword" class="dropdown-item text-black-50" type="button" data-toggle="modal" data-target="#changePwModal">Change Passsord</button>
<button id="signout" class="dropdown-item text-black-50" type="button">Sign Out</button>
</div>
</div>
</nav>
</header>
<div class="options shadow-sm rounded">
<div class="message">
<div id="message" class="" role="alert">
</div>
</div>
<button id="generateButton" class="generate-button btn btn-outline-dark">
Generate
</button>
<button id="infoButton" class="generate-button btn btn-outline-dark">
<img class="info-img" style="" alt="information BUTTON" src='./public/img/information.png'/>
</button>
<button id="safeSave" hidden></button>
<button id="saveButton" class="save-button btn btn-secondary btn-outline-dark" aria-pressed="false" data-toggle="tooltip" data-placement="bottom" title="A palette can be saved only once.">
Save
</button>
<button id="palettesButton" class="palettes-button btn btn-outline-dark">
⊞ Palettes
</button>
</div>
<div id="info-toast" class="toast shadow-lg" role="alert" aria-live="assertive" aria-atomic="true" style="position: absolute; right: 0; z-index: 999">
<div class="toast-header">
<strong class="mr-auto">About this website</strong>
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="toast-body">
<p>
Generate palettes either by pressing <strong>spacebar</strong> or <strong>generate</strong> button on the top right corner of this page.
</p>
<ul>
<li>This application helps you with finding color theme ideas.</li>
<li>Generate random color palettes for your design projects!</li>
<li>Sign Up for saving your own palettes.</li>
</ul>
</div>
</div>
<!-- MAIN-AREA -->
<!-- SIDEBAR -->
<div id="sidebar" class="sidebar">
<a id="palettesClose" class="palettes-close">×</a>
<div id="palettesWrapper" class="palettes-wrapper">
<h3> Saved Palettes </h3>
<div class="divider"></div>
<div id="colorsLogArea" class="colors-Log">
<!-- SAVED COLORS GOES HERE -->
</div>
</div>
</div>
<!-- COLORS -->
<section class="colors">
<div class="colors-wrapper">
<div id="first-color" class="first-color"></div>
<div id="second-color" class="second-color"></div>
<div id="third-color" class="third-color"></div>
<div id="fourth-color" class="fourth-color"></div>
<div id="fifth-color" class="fifth-color"></div>
</div>
</section>
<!-- HEX CODES -->
<div class="color-codes-wrapper">
<div id="colorCodes" class="color-codes">
<input id="hexCode1" class="hex-code" value="#000000" disabled>
</div>
<div id="colorCodes" class="color-codes">
<input id="hexCode2" class="hex-code" value="#000000" disabled>
</div>
<div id="colorCodes" class="color-codes">
<input id="hexCode3" class="hex-code" value="#000000" disabled>
</div>
<div id="colorCodes" class="color-codes">
<input id="hexCode4" class="hex-code" value="#000000" disabled>
</div>
<div id="colorCodes" class="color-codes">
<input id="hexCode5" class="hex-code" value="#000000" disabled>
</div>
</div>
<!-- SIGN-UP MODAL -->
<div class="modal fade" id="signUpModal" tabindex="-1" role="dialog" aria-labelledby="signUpModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-sm" role="document">
<div class="modal-content">
<div class="modal-body">
<!-- FORM -->
<form id="signUpForm">
<div class="form-group">
<button id="signUpModalClose" type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<br/>
<label for="exampleDropdownFormEmail2">Sign Up</label>
<input name="credentials[email]" type="email" class="form-control" placeholder="E-mail Address">
<input name="credentials[password]" type="password" class="form-control" placeholder="Password">
<input name="credentials[password_confirmation]" type="password" class="form-control" placeholder="Confirm Password">
</div>
<button id="signUpButton" type="submit" class="btn btn-primary">Register</button>
<div id="signUpFailure" class="alert alert-danger sign-up-failure" role="alert">
Sign up unsuccessful!
</div>
</form>
</div>
</div>
</div>
</div>
<!-- CHANGE PASSWORD MODAL -->
<div class="modal fade" id="changePwModal" tabindex="-1" role="dialog" aria-labelledby="signUpModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-sm" role="document">
<div class="modal-content">
<div class="modal-body">
<!-- FORM -->
<form id="changePwForm">
<div class="form-group">
<button id="changePwModalClose" type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<br/>
<label for="exampleDropdownFormEmail2">Change Password</label>
<div class="change-pw-failure-message">
<div id="changePwFailureMessage">
<span class="badge badge-danger">Password change is failed.</span>
</div>
</div>
<input name="passwords[old]" type="password" class="form-control" placeholder="Old Password">
<input name="passwords[new]" type="password" class="form-control" placeholder="New Password">
</div>
<button id="changePwButton" type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</div>
</div>
</div>
<!-- DELETE COLOR CONFIRMATION MODAL -->
<div class="modal fade" id="deleteColorConfirm" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Are you sure you wanna <strong>delete</strong><br/>this palette?</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-footer">
<button id="deletePaletteConfirm" type="button" class="btn btn-primary btn-danger btn-block">Yes, delete.</button>
</div>
</div>
</div>
</div>
<!-- EDIT COLOR MODAL -->
<div class="modal fade" id="editColor" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Let's change this palette...</h5>
<button type="button" class="close close-edit-modal" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="messageEdit">
<div id="messageEdit" class="" role="alert">
</div>
</div>
<div id="editModal" class="modal-body edit-modal">
</div>
<div id="editorInputWrap" class="editor-input-wrap">
<hr/>
<h3>Color 1</h3>
<p id="editColor1Code"></p>
<div id="editColor1" class="edit-color">
<span> Red: </span> <input id="red1" type="range" min="0" max="255" value="0"/><br/>
<span> Green: </span> <input id="green1" type="range" min="0" max="255" value="10"/><br/>
<span> Blue: </span> <input id="blue1" type="range" min="0" max="255" value="120"/>
</div>
<hr/>
<h3>Color 2</h3>
<p id="editColor2Code"></p>
<div id="editColor2" class="edit-color">
<span> Red: </span> <input id="red2" type="range" min="0" max="255" value="0"/><br/>
<span> Green: </span> <input id="green2" type="range" min="0" max="255" value="10"/><br/>
<span> Blue: </span> <input id="blue2" type="range" min="0" max="255" value="120"/>
</div>
<hr/>
<h3>Color 3</h3>
<p id="editColor3Code"></p>
<div id="editColor3" class="edit-color">
<span> Red: </span> <input id="red3" type="range" min="0" max="255" value="0"/><br/>
<span> Green: </span> <input id="green3" type="range" min="0" max="255" value="10"/><br/>
<span> Blue: </span> <input id="blue3" type="range" min="0" max="255" value="120"/>
</div>
<hr/>
<h3>Color 4</h3>
<p id="editColor4Code"></p>
<div id="editColor4" class="edit-color">
<span> Red: </span> <input id="red4" type="range" min="0" max="255" value="0"/><br/>
<span> Green: </span> <input id="green4" type="range" min="0" max="255" value="10"/><br/>
<span> Blue: </span> <input id="blue4" type="range" min="0" max="255" value="120"/>
</div>
<hr/>
<h3>Color 5</h3>
<p id="editColor5Code"></p>
<div id="editColor5" class="edit-color">
<span> Red: </span> <input id="red5" type="range" min="0" max="255" value="0"/><br/>
<span> Green: </span> <input id="green5" type="range" min="0" max="255" value="10"/><br/>
<span> Blue: </span> <input id="blue5" type="range" min="0" max="255" value="120"/>
</div>
<hr/>
</div>
<div class="modal-footer">
<button id="updatePalette" type="button" class="btn btn-primary btn-warning btn-block">Update this palette</button>
</div>
</div>
</div>
</div>
</body>
</html>