-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
439 lines (369 loc) · 15.4 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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
<!doctype html>
<head>
<title>Illustatus</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="./js/iro.min.js"></script>
<link rel="icon" type="image/png" href="./img/favicon.ico">
<link href="./css/style.css" rel="stylesheet">
</head>
<body>
<div class="nav">
<img class="logo" src="img/logo.svg" alt="IlluStatus"/>
<!-- <span class="title mobile">IlluStatus</span> -->
<div style="position:absolute; right:6%; top:-10px;">
<!-- Place this tag in your head or just before your close body tag. -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
<!-- Place this tag where you want the button to render. -->
<a class="github-button" href="https://github.com/blairlee227/IlluStatus" data-size="large" data-show-count="true" aria-label="Star teyushen/star-go on GitHub">Star</a>
</div>
</div>
<script>
// ColorPicker
var ColorPicker = new iro.ColorPicker("#color-picker-container", {
width: "200",
// origin color
color: "#4f86ed",
});
</script>
<div class="container grid-container">
<div class="grid-item ui-block">
<div id="svgForyou" class="center">
<svg id="mainImage_create" data-name="mainImage" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 171.2 81.5">
<style id="svgStyle">
@import url('https://fonts.googleapis.com/css?family=Merriweather');
.changeColor {
fill: #4f86ed;
}
#title {
font-size: 50%;
font-family: 'Merriweather', serif;
}
.cls-1 {
opacity: 0.3;
}
.cls-7 {
opacity: 0.8;
}
.cls-2 {
fill: #fff;
}
.cls-10,
.cls-11,
.cls-12,
.cls-14,
.cls-16,
.cls-3 {
fill: none;
}
.cls-3 {
stroke: #5c7690;
}
.cls-10,
.cls-11,
.cls-12,
.cls-3 {
stroke-miterlimit: 10;
}
.cls-14,
.cls-15,
.cls-16,
.cls-3 {
stroke-width: 0.5px;
}
.cls-4 {
fill: #ffe1d9;
}
.cls-5 {
fill: #ffcfbf;
}
.cls-6 {
fill: #fecbb6;
}
.cls-9 {
fill: #fecb02;
}
.cls-10,
.cls-12 {
stroke: #d26f51;
}
.cls-10,
.cls-11 {
stroke-width: 0.38px;
}
.cls-11 {
stroke: #000;
}
.cls-12 {
stroke-width: 0.19px;
}
.cls-13 {
opacity: 0.45;
}
.cls-14,
.cls-15,
.cls-16 {
stroke: #b0bec5;
stroke-linejoin: round;
}
.cls-15 {
fill: #edf0f2;
}
.cls-16 {
stroke-linecap: round;
}
.cls-17 {
font-family: 'PT Sans', sans-serif;
font-size: 49.87px;
font-weight: 700;
}
.cls-18 {
fill: #fffdbb;
opacity: 0.5;
}
/*---------------------------
SVG Animate
---------------------------*/
.earMove {
transition: all ease-in-out 2s;
transform-origin: 50% 50%;
animation: earmove 1.5s linear infinite alternate;
}
.faceMove {
transition: all ease-in-out 2s;
transform-origin: 50% 50%;
animation: move 1.5s linear infinite alternate;
}
.neckMove {
transition: all ease-in-out 2s;
transform-origin: 50% 50%;
animation: neck 1.5s linear infinite alternate;
}
@keyframes earmove {
0% {
transform: translateX(-0.3px) translateY(0.6px);
}
30% {
transform: translateX(-0.3px) translateY(0.6px);
}
60% {
transform: translateX(-0.7px) translateY(0px);
}
70% {
transform: translateX(-0.7px) translateY(-0.3px);
}
100% {
transform: translateX(-0.7px) translateY(-0.3px);
}
}
@keyframes move {
0% {
transform: translateX(-0.3px) translateY(0.6px);
}
30% {
transform: translateX(-0.3px) translateY(0.6px);
}
60% {
transform: translateX(2px) translateY(0px);
}
70% {
transform: translateX(2px) translateY(-0.3px);
}
100% {
transform: translateX(2px) translateY(-0.3px);
}
}
@keyframes neck {
0% {
transform: translateY(0.7px);
}
50% {
transform: translateY(0.7px);
}
100% {
transform: translateY(0px);
}
}
</style>
<path id="c-1" class="changeColor cls-1" d="M46.62,52.5c5.78,4.9,21.14,8.4,39.19,8.4s33.41-3.5,39.19-8.4c-5.78-4.9-21.14-8.4-39.19-8.4S52.41,47.6,46.62,52.5Z"
/>
<path class="cls-2" d="M99.73,47.71H68.65a7.13,7.13,0,0,0-7.13,7.13V60a152.58,152.58,0,0,0,24.3,1.83,157.87,157.87,0,0,0,21.05-1.35V54.84A7.13,7.13,0,0,0,99.73,47.71Z"
/>
<path class="cls-3" d="M123.56,55.81C115,58.94,101.27,61,85.81,61c-26,0-47-5.71-47-12.76,0-3.45,5.05-6.58,13.25-8.88" />
<path class="cls-3" d="M55.37,38.47a140,140,0,0,1,30.44-3c26,0,47,5.71,47,12.76,0,2.4-2.44,4.65-6.69,6.57" />
<path class="cls-3" d="M53.41,38.95l.94-.24" />
<path class="cls-4" d="M91.68,47.71l-.75-11.2L79.15,43.84l-1.69,3.87H75.79c0,3.36,3.76,6.08,8.4,6.08s8.4-2.72,8.4-6.08Z"
/>
<path class="cls-5 neckMove" d="M78,46.53a27.19,27.19,0,0,0,6.41.82c3.1,0,7.11-2.19,7.11-2.19l-.42-6.2L79.15,43.84Z" />
<polygon class="earMove" points="92.59 32.22 92.59 28.5 76.77 27.71 76.77 32.22 92.59 32.22" />
<circle class="cls-6 earMove" cx="78.06" cy="34.04" r="2.47" />
<path class="cls-4" d="M81.74,57.06,60.63,49.72h0A6.72,6.72,0,1,0,57.7,62.49H93.25C93.25,56.78,81.74,57.06,81.74,57.06Z"
/>
<path class="cls-4" d="M77.46,25H90.92a0,0,0,0,1,0,0V39.38a6.73,6.73,0,0,1-6.73,6.73h0a6.73,6.73,0,0,1-6.73-6.73V25A0,0,0,0,1,77.46,25Z"
/>
<rect id="c-2" class="changeColor cls-7" x="74.82" y="26.48" width="19.14" height="2.45" transform="translate(1.29 -3.65) rotate(2.49)"
/>
<path id="c-3" class="changeColor cls-7" d="M84.36,18.69h.5a7.8,7.8,0,0,1,7.8,7.8v0a0,0,0,0,1,0,0H76.56a0,0,0,0,1,0,0v0A7.8,7.8,0,0,1,84.36,18.69Z"
transform="translate(1.06 -3.66) rotate(2.49)" />
<polygon id="c-4" class="changeColor cls-8" points="82.44 23.89 92.18 24.32 92.59 24.34 92.48 26.84 80.96 26.33 82.44 23.89"
/>
<circle class="cls-9 faceMove" cx="78.72" cy="23.73" r="3.73" transform="translate(51.58 101.34) rotate(-87.51)" />
<circle class="cls-2 faceMove" cx="78.72" cy="23.73" r="2.36" transform="translate(51.58 101.34) rotate(-87.51)" />
<circle class="cls-4 earMove" cx="90.92" cy="34.04" r="2.47" />
<path class="cls-4" d="M112.2,53l-9.87-21.92-3-5.48-11.86-.22,7.42,3.35H91.55l5.82,4.58,2,22.26h0A6.72,6.72,0,1,0,112.2,53Z"
/>
<ellipse class="faceMove" cx="80.09" cy="33.12" rx="0.53" ry="0.59" />
<ellipse class="faceMove" cx="86.34" cy="33.12" rx="0.53" ry="0.59" />
<polyline class="cls-10 faceMove" points="84.19 31.08 81.74 37.01 84.39 37.01" />
<path class="cls-10 faceMove" d="M83.06,40.36a4,4,0,0,1,2.75-1" />
<line class="cls-11 faceMove" x1="81.07" y1="30.33" x2="78.47" y2="30.58" />
<line class="cls-11 faceMove" x1="86.34" y1="30.45" x2="88.15" y2="31.08" />
<line class="cls-12" x1="106.86" y1="47.82" x2="110.99" y2="46.11" />
<line class="cls-12" x1="107.43" y1="49.9" x2="111.55" y2="48.19" />
<line class="cls-12" x1="107.99" y1="51.98" x2="112.11" y2="50.27" />
<g class="cls-13">
<rect class="cls-14" x="85.81" y="2.46" width="10.77" height="3.5" />
<rect class="cls-15" x="96.58" y="2.46" width="10.77" height="3.5" />
<rect class="cls-14" x="92.19" y="5.95" width="10.77" height="3.5" />
<line class="cls-16" x1="107.36" y1="5.95" x2="109.63" y2="5.95" />
<line class="cls-16" x1="110.68" y1="5.95" x2="111.57" y2="5.95" />
</g>
<g class="cls-13">
<rect class="cls-16" x="125" y="23.12" width="10.77" height="3.5" />
<rect class="cls-15" x="130.39" y="26.62" width="10.77" height="3.5" />
<rect class="cls-16" x="119.62" y="26.62" width="10.77" height="3.5" />
<line class="cls-16" x1="141.16" y1="26.62" x2="145.73" y2="26.62" />
<line class="cls-16" x1="125" y1="23.12" x2="115.4" y2="23.12" />
<line class="cls-16" x1="117.95" y1="26.62" x2="115.4" y2="26.62" />
</g>
<g class="cls-13">
<rect class="cls-16" x="39.34" y="16.12" width="10.77" height="3.5" />
<rect class="cls-16" x="39.34" y="23.11" width="10.77" height="3.5" />
<rect class="cls-16" x="50.11" y="23.11" width="10.77" height="3.5" />
<rect class="cls-16" x="50.11" y="16.12" width="10.77" height="3.5" />
<rect class="cls-15" x="44" y="19.61" width="10.77" height="3.5" />
<rect class="cls-16" x="33.23" y="19.61" width="10.77" height="3.5" />
<line class="cls-16" x1="60.89" y1="19.61" x2="65.51" y2="19.61" />
<line class="cls-16" x1="39.34" y1="16.12" x2="35.46" y2="16.12" />
<line class="cls-16" x1="36.45" y1="26.61" x2="33.23" y2="26.61" />
<line class="cls-16" x1="63.2" y1="23.11" x2="65.51" y2="23.11" />
</g>
<polyline class="cls-3" points="115.4 58.12 115.4 38.27 120.2 37.01" />
<polyline class="cls-3" points="129.01 53.21 129.01 43.14 131.74 42.13" />
<path class="cls-3" d="M115.4,42.13a53.27,53.27,0,0,1,8,2A42,42,0,0,1,129,47" />
<path class="cls-3" d="M115.4,47.34a53.27,53.27,0,0,1,8,2A42,42,0,0,1,129,52.22" />
<path class="cls-3" d="M115.4,52.56a53.27,53.27,0,0,1,8,2l1,.42" />
<path class="cls-18 faceMove" d="M78.84,26.09l0-4.71L68.05,18.32a.91.91,0,0,0-.45-.13c-1.17,0-2.11,2.46-2.11,5.5s.95,5.5,2.11,5.5a.9.9,0,0,0,.44-.12Z"
/>
<path class="cls-5" d="M57.7,62.49H93.25A3.67,3.67,0,0,0,92.92,61H53.43A6.69,6.69,0,0,0,57.7,62.49Z" />
<path class="cls-12" d="M88.15,60.27s1.7.95,1.7,2.22" />
<path class="cls-5" d="M101.81,61a6.68,6.68,0,0,0,8.51,0Z" />
<polygon class="cls-5" points="90.92 30.25 77.46 29.69 77.46 28.64 90.92 29.22 90.92 30.25" />
<text id="title" transform="matrix(1 0 0 1 44.7249 78)">404 Page not found</text>
</svg>
<!-- <h1 id="title">404 Page not found</h1> -->
<!-- <button id="newBtn" class="btn" disabled>→ Back to Home</button> -->
</div>
</div>
<div class="grid-item ui-block">
<div class="left">
<div class="color-block">
<label>Color </label>
<div class="color-picker">
<div id="color-picker-container" style="height:250px; "></div>
</div>
<!-- <div class="color-select">
<botton class="btn-color btn-red" fill="#ea574c"></botton>
<botton class="btn-color btn-pink" fill="#f56aa0"></botton>
<botton class="btn-color btn-orange"></botton>
<botton class="btn-color btn-yellow"></botton>
<botton class="btn-color btn-green"></botton>
</div>
<div class="color-select">
<botton class="btn-color btn-blue" fill="blue"></botton>
<botton class="btn-color btn-darkblue"></botton>
<botton class="btn-color btn-purple"></botton>
<botton class="btn-color btn-black"></botton>
<botton class="btn-color btn-grey" fill="#828282"></botton>
</div> -->
</div>
<div>
<label>title </label>
<input type="text" id="inputChangetitle" class="input" value="404 Page not found" />
<br/>
<br/>
<br/>
</div>
<div class="center">
<button id="submitBtn" class="btn btn-download">Generate</button>
</div>
</div>
</div>
</div>
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close">×</span>
Paste to your file<br/><br/>
<textarea rows='10' cols='80' id='svgTextArea'></textarea>
<br/>
<p>or</p>
<br/>
<a href="#" onclick="svgDownload(this, 'illustatus.svg');" class="down-a btn btn-download">Download svg</a>
</div>
</div>
<script>
// Get the modal
var modal = document.getElementById('myModal');
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
// When the user clicks on <span> (x), close the modal
span.onclick = function () {
modal.style.display = "none";
}
// When the user clicks anywhere outside of the modal, close it
window.onclick = function (event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
</script>
</div>
<div class="footer center">
<img class="githubIcon" src="img/github.svg" alt="github"/>
<span>If you like it , please give me a Star on
<a class="githubLink" href="https://github.com/blairlee227/IlluStatus">Github</a>.</span>
</div>
<script>
// change title
$("#inputChangetitle")
.keyup(function () {
var value = $(this).val();
$("#title").text(value);
})
.keyup();
// change colors
ColorPicker.on("color:change", function (color, changes) {
// console.log(color.hexString);
document.getElementById("c-1").style.fill = color.hexString;
document.getElementById("c-2").style.fill = color.hexString;
document.getElementById("c-3").style.fill = color.hexString;
document.getElementById("c-4").style.fill = color.hexString;
});
$("#submitBtn").click(function () {
modal.style.display = "block";
document.getElementById("svgTextArea").value = document.getElementById("svgForyou").innerHTML;
});
function svgDownload(a, filename, content) {
contentType = 'data:image/svg+xml,';
uriContent = contentType + encodeURIComponent(document.getElementById("svgTextArea").value);
a.setAttribute('href', uriContent);
a.setAttribute('download', filename);
}
$("#submitBtn").click(function () {
$('#dialog').dialog();
});
</script>
</body>