-
Notifications
You must be signed in to change notification settings - Fork 33
/
index.html
402 lines (388 loc) · 23.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous" />
<!-- Other CSS -->
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.0/css/all.min.css"
integrity="sha512-10/jx2EXwxxWqCLX/hHth/vu2KY3jCF70dCQB8TSgNjbCVAC/8vai53GfMDrO2Emgwccf2pJqxct9ehpzG+MTw=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/Scalesoft/fontawesome-iconpicker@393acfd/dist/css/fontawesome-iconpicker.min.css"
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bs-darkmode.min.css"
integrity="sha256-tf7KtsTioYEaxufEmvJcTs9g0IrGiPH+EFT8DjaZlzo=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bootstrap5-toggle.min.css"
integrity="sha256-t86G9szZguJjgAlbfl35Y4D1pwAyLGsSrD2xmUXgMIQ=" crossorigin="anonymous">
<link
href="https://fonts.googleapis.com/css?family=Montez|Lobster|Josefin+Sans|Shadows+Into+Light|Pacifico|Amatic+SC:700|Orbitron:400,900|Rokkitt|Righteous|Dancing+Script:700|Bangers|Chewy|Sigmar+One|Architects+Daughter|Abril+Fatface|Covered+By+Your+Grace|Kaushan+Script|Gloria+Hallelujah|Satisfy|Lobster+Two:700|Comfortaa:700|Cinzel|Courgette|Annie+Use+Your+Telescope|Baloo|Bowlby+One+SC|Bungee+Inline|Cabin+Sketch|Caveat|Contrail+One|Damion|Economica|Fascinate+Inline|Faster+One|Fredericka+the+Great|Gabriela|Just+Another+Hand|Kodchasan|Love+Ya+Like+A+Sister|Megrim|Monoton|Mouse+Memoirs|Podkova|Pompiere|Quicksand|Reenie+Beanie|Rokkitt|Six+Caps|Source+Sans+Pro|Special+Elite|Spicy+Rice|VT323|Wire+One"
rel="stylesheet" type="text/css" />
<link rel="shortcut icon" type="image/png" href="imgs/favicon.png" />
<title>Simple Logo Generator</title>
<style>
.iconpicker-popover.popover .popover-title{background-color: var(--gray-100);}
.iconpicker .iconpicker-items{background-color: var(--body-bg);}
</style>
</head>
<body>
<div style="width: 800px; margin: 0 auto">
<div class="jumbotron jumbotron-fluid" style="position: relative">
<a href="https://github.com/creecros/simple_logo_gen"><img width="149" height="149"
src="https://github.blog/wp-content/uploads/2008/12/forkme_right_gray_6d6d6d.png?resize=149%2C149"
class="attachment-full size-full" alt="Fork me on GitHub" data-recalc-dims="1"
style="position: absolute; top: 0; right: 0" /></a>
<div class="container">
<i class="fa fa-kiwi-bird" style="font-size: 48px" aria-hidden="true"></i>
<h1 class="display-4">Simple Logo Generator</h1>
<p class="lead">
For those who need a favicon or logo, here is a simple tool for you.
</p>
</div>
</div>
<nav class="navbar navbar-light px-0 pt-0">
<ul class="nav nav-tabs w-100 justify-content-center">
<li class="nav-item">
<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home"
aria-selected="true" title="Simple Icon App"><i class="fas fa-home mr-1" aria-hidden="true"></i>Home</a>
</li>
<li class="nav-item">
<a class="nav-link" id="authors-tab" data-toggle="tab" href="#authors" role="tab" aria-controls="authors"
aria-selected="false" title="Authors and contributors"><i class="fas fa-users mr-1" aria-hidden="true"></i>Authors</a>
</li>
<li class="nav-item">
<a class="nav-link" id="license-tab" data-toggle="tab" href="#license" role="tab" aria-controls="license"
aria-selected="false" title="License"><i class="fas fa-file-alt mr-1" aria-hidden="true"></i>License</a>
</li>
<li class="nav-item">
<a class="nav-link" id="source-tab" href="https://github.com/creecros/simple_logo_gen" role="tab"
aria-selected="false" target="_blank" title="Github Repository"><i class="fab fa-github mr-1" aria-hidden="true"></i>Source</a>
</li>
<li class="nav-item">
<a class="nav-link" id="darkmode-tab" href="#" role="tab"
aria-selected="false" data-plugin="bsdarkmode" title="Color Scheme Toggle" allowsCookie></a>
</li>
</ul>
</nav>
<div class="tab-content shadow-sm p-3 mb-5 rounded">
<main class="tab-pane active" id="home" role="tabpanel" aria-labelledby="home-tab">
<div class="row mb-2">
<div class="col-md-6 mb-2 mb-md-0">
<div class="card border-secondary">
<div class="card-header d-flex align-items-center">
<span class="flex-grow-1 font-weight-bold">Global</span>
<button class="btn btn-light btn-xs" type="button" data-toggle="collapse" data-target="#global-fieldset"
aria-expanded="true" aria-controls="global-fieldset"><i class="fas fa-chevron-up" aria-hidden="true"></i></button>
</div>
<div class="card-body text-secondary collapsible collapse show" id="global-fieldset">
<div class="input-group input-group-sm mb-2">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Layout</span>
</div>
<input type="checkbox" checked data-toggle="toggle" data-on="Horizontal"
data-off="Vertical" data-onstyle="outline-dark" data-offstyle="outline-secondary" data-size="sm"
data-param="layout" data-component="global" id="layout-toggle">
</div>
<div class="input-group input-group-sm mb-2">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Shapes</span>
</div>
<input type="checkbox" checked data-toggle="toggle" data-on="On" data-off="Off"
data-onstyle="outline-dark" data-offstyle="outline-secondary" data-size="sm" data-param="shapes"
data-component="global" id="shapes-toggle">
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Offset</span>
</div>
<input type="color" id="offset-clr" value="#f2f2f2" class="form-control" aria-label="color"
aria-describedby="basic-addon1" data-param="offsetColor" data-component="global"/>
<input type="range" class="form-control custom-range w-25" data-param="offsetSize"
data-component="global" value="0" min="0" max="10" step=".5" id="offset_size-rng" />
<div class="input-group-append" data-display="value">
<span class="input-group-text" id="offset_size-value">0</span>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card border-secondary">
<div class="card-header d-flex align-items-center">
<span class="flex-grow-1 font-weight-bold">Icon</span>
<button class="btn btn-light btn-xs" type="button" data-toggle="collapse" data-target="#icon-fieldset"
aria-expanded="true" aria-controls="icon-fieldset"><i class="fas fa-chevron-up" aria-hidden="true"></i></button>
</div>
<div class="card-body text-secondary collapsible collapse show" id="icon-fieldset">
<div class="input-group input-group-sm mb-2">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Icon</span>
</div>
<div class="input-group-apppend ml-1">
<div class="btn-group d-flex btn-group-sm">
<button id="icp-component" type="button"
class="btn btn-outline-secondary iconpicker-component w-100">
<i class="fa fa-fw fa-heart" aria-hidden="true"></i>
</button>
<button id="icp" type="button" class="btn btn-secondary dropdown-toggle" data-selected="fa-car"
data-toggle="dropdown">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu"></div>
</div>
</div>
</div>
<div class="input-group input-group-sm mb-2">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Size</span>
</div>
<input type="range" class="form-control custom-range" value="48" min="25" max="100" step="1"
id="icon-sz" data-param="fontSize" data-component="icon" />
<div class="input-group-append" data-display="value">
<span class="input-group-text" id="icon_size-value">48</span>
</div>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Color</span>
</div>
<input type="color" id="icon-clr" class="form-control" aria-label="color"
aria-describedby="basic-addon1" data-param="color" data-component="icon" />
</div>
</div>
</div>
</div>
</div>
<div class="card border-secondary mb-2">
<div class="card-header d-flex align-items-center">
<span class="flex-grow-1 font-weight-bold">Main</span>
<button class="btn btn-light btn-xs" type="button" data-toggle="collapse" data-target="#main-fieldset"
aria-expanded="true" aria-controls="main-fieldset"><i class="fas fa-chevron-up" aria-hidden="true"></i></button>
</div>
<div class="card-body text-secondary collapsible collapse show" id="main-fieldset">
<div class="input-group input-group-sm mb-2">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Text</span>
</div>
<input type="text" id="main-input" class="form-control" aria-label="outblock"
aria-describedby="basic-addon1" data-param="text" data-component="main" />
</div>
<div class="input-group input-group-sm mb-2">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Font</span>
</div>
<input type="color" id="main-clr" class="form-control" aria-label="color" aria-describedby="basic-addon1"
data-param="color" data-component="main" />
<select id="main_font-select" class="form-control w-50" aria-label="font" aria-describedby="basic-addon1"
data-param="fontFamily" data-component="main"></select>
<input type="checkbox" checked data-toggle="toggle" data-on="Bold" data-off="Normal"
data-onstyle="outline-dark" data-offstyle="outline-secondary" data-size="sm" data-param="font_weight"
data-component="main" id="main_weight-toggle">
</div>
<div class="row mb-2">
<div class="input-group input-group-sm mb-2 mb-md-0 col-md-6">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Size</span>
</div>
<input type="range" class="form-control custom-range" value="48" min="10" max="100" step="1"
id="main-sz" data-param="fontSize" data-component="main" />
<div class="input-group-append" data-display="value">
<span class="input-group-text" id="main_size-value">48</span>
</div>
</div>
<div class="input-group input-group-sm col-md-6">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Letter spacing</span>
</div>
<input type="range" class="form-control custom-range" data-param="letter_space" data-component="main"
value="0" min="0" max="20" step="1" id="main_letter_space-rng" />
<div class="input-group-append" data-display="value">
<span class="input-group-text" id="main_letter_space-value">0</span>
</div>
</div>
</div>
</div>
</div>
<div class="card border-secondary mb-2">
<div class="card-header d-flex align-items-center">
<span class="flex-grow-1 font-weight-bold">Accent</span>
<button class="btn btn-light btn-xs" type="button" data-toggle="collapse" data-target="#accent-fieldset"
aria-expanded="true" aria-controls="accent-fieldset"><i class="fas fa-chevron-up" aria-hidden="true"></i></button>
</div>
<div class="card-body text-secondary collapsible collapse show" id="accent-fieldset">
<div class="input-group input-group-sm mb-2">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Text</span>
</div>
<input type="text" id="accent-input" class="form-control" aria-label="inblock"
aria-describedby="basic-addon1" data-param="text" data-component="accent" />
</div>
<div class="input-group input-group-sm mb-2">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Font</span>
</div>
<input type="color" value="#cccccc" id="accent-clr" class="form-control" aria-label="color2"
aria-describedby="basic-addon1" data-param="color" data-component="accent" />
<select id="accent_font-select" class="form-control w-50" aria-label="font"
aria-describedby="basic-addon1" data-param="fontFamily" data-component="accent"></select>
<input type="checkbox" checked data-toggle="toggle" data-on="Bold" data-off="Normal"
data-onstyle="outline-dark" data-offstyle="outline-secondary" data-size="sm" data-param="font_weight"
data-component="accent" id="accent_weight-toggle">
</div>
<div class="row mb-2">
<div class="input-group input-group-sm mb-2 mb-md-0 col-md-6">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Size</span>
</div>
<input type="range" class="form-control custom-range" value="48" min="10" max="100" step="1"
id="accent-sz" data-param="fontSize" data-component="accent" />
<div class="input-group-append" data-display="value">
<span class="input-group-text" id="accent_size-value">48</span>
</div>
</div>
<div class="input-group input-group-sm col-md-6">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Letter spacing</span>
</div>
<input type="range" class="form-control custom-range" data-param="letter_space" data-component="accent"
value="0" min="0" max="20" step="1" id="accent_letter_space-rng" />
<div class="input-group-append" data-display="value">
<span class="input-group-text" id="accent_letter_space-value">0</span>
</div>
</div>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Effects</span>
</div>
<div class="btn-group ml-1" role="group" aria-label="Basic example">
<a class="btn btn-outline-secondary btn-sm" id="compliment_color-btn">Compliment Color</a>
</div>
</div>
</div>
</div>
<section class="container row">
<div id="fav-container" class="col-md-6 text-center">
<p class="font-weight-bold">Favicon</p>
<canvas id="fav-canvas" style="border: none solid #d3d3d3" class="mt-1"></canvas>
</div>
<div id="logo-container" class="col-md-6 text-center">
<p class="font-weight-bold">Logo</p>
<canvas id="logo-canvas" style="border: none solid #d3d3d3" class="mt-1"></canvas>
</div>
</section>
<div class="btn-toolbar mb-2" role="toolbar" aria-label="Toolbar with button groups">
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<div class="input-group-text">Format</div>
</div>
<select id="export_format-select" class="form-control text-uppercase" aria-label="format"
aria-describedby="basic-addon1">
<option value="image/png">png</option>
<option value="image/jpeg">jpg</option>
<option value="image/webp">webp</option>
<option value="image/svg+xml">svg</option>
</select>
</div>
<div class="btn-group btn-group-sm ml-1" role="group" aria-label="First group">
<a href="#" class="btn btn-outline-secondary" id="fav_download-btn" download="favicon.png">Download
favicon</a>
<a href="#" class="btn btn btn-outline-secondary" id="logo_download-btn" download="logo.png">Download
logo</a>
</div>
</div>
<div class="card-deck mb-2">
<div class="card border-secondary">
<div class="card-header d-flex align-items-center">
<span class="flex-grow-1 font-weight-bold">Export Configuration</span>
<button class="btn btn-light btn-xs" type="button" data-toggle="collapse" data-target=".imp_exp_conf"
aria-expanded="false" aria-controls="exp_conf-fieldset imp_conf-fieldset"><i
class="fas fa-chevron-up" aria-hidden="true"></i></button>
</div>
<div class="card-body text-secondary collapsible collapse imp_exp_conf" id="exp_conf-fieldset">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">Export</div>
</div>
<div class="input-group-append">
<a href="#" class="btn btn-outline-secondary" id="conf_download-btn"
download="simplegen.json">Download
Configuration</a>
</div>
</div>
</div>
</div>
<div class="card border-secondary">
<div class="card-header d-flex align-items-center">
<span class="flex-grow-1 font-weight-bold">Import Configuration</span>
<button class="btn btn-light btn-xs" type="button" data-toggle="collapse" data-target=".imp_exp_conf"
aria-expanded="false" aria-controls="exp_conf-fieldset imp_conf-fieldset"><i
class="fas fa-chevron-up" aria-hidden="true"></i></button>
</div>
<div class="card-body text-secondary collapsible collapse imp_exp_conf" id="imp_conf-fieldset">
<div class="custom-file">
<input type="file" class="custom-file-input" id="conf_upload-fs" accept=".json">
<label class="custom-file-label" for="conf_upload-fs">Choose file</label>
</div>
</div>
</div>
</div>
<div class="alert alert-dark mt-5" role="alert">
If things aren't working, sorry, use Chrome or Firefox...
</div>
</main>
<section class="tab-pane" id="authors" role="tabpanel" aria-labelledby="authors-tab">
<h3>Contributors</h3>
<ul class="list-style-none pl-0">
<li class="mb-2 d-flex">
<a href="https://github.com/creecros" class="mr-2" target="_blank"><img
src="https://avatars.githubusercontent.com/u/26339368" alt="@creecros" sizes="32" width="32" height="32"
class="avatar rounded-circle"></a>
<a href="https://github.com/creecros" class="text-decoration-none flex-self-center"><span
class="text-body font-weight-bold mr-2">creecros</span><span class="text-muted">Craig Crosby</span></a>
</li>
<li class="mb-2 d-flex">
<a href="https://github.com/palcarazm" class="mr-2" target="_blank"><img
src="https://avatars.githubusercontent.com/u/79061172" alt="@palcarazm" sizes="32" width="32"
height="32" class="avatar rounded-circle"></a>
<a href="https://github.com/palcarazm" class="text-decoration-none flex-self-center"><span
class="text-body font-weight-bold mr-2">palcarazm</span><span class="text-muted">Pablo Alcaraz
Martínez</span></a>
</li>
</ul>
<h3>Acknowledgement</h3>
<div class="widget text-justify" role="md2html" data-widget="ACKNOWLEDGE"></div>
</section>
<section class="tab-pane" id="license" role="tabpanel" aria-labelledby="license-tab">
<div class="widget text-justify" role="md2html" data-widget="LICENSE"></div>
</section>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/gh/Scalesoft/fontawesome-iconpicker@393acfd/dist/js/fontawesome-iconpicker.min.js"
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/js/bs-darkmodejquery.min.js"
integrity="sha256-F2n4uDLTOf7uGUhhaW0zzfed4SPHEToImxLu3FHaga8=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/js/bootstrap5-toggle.min.js"
integrity="sha256-ctgYdt/F2ief8nbGZXReoYssWvM5rSwz6sS0CFcyy2c=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/bs-custom-file-input.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/canvas2svg.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/2.1.0/showdown.min.js"
integrity="sha512-LhccdVNGe2QMEfI3x4DVV3ckMRe36TfydKss6mJpdHjNFiV07dFpS2xzeZedptKZrwxfICJpez09iNioiSZ3hA=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="js/simplegen.js"></script>
</body>
</html>