-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
375 lines (337 loc) · 24.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="This is a web app that allows you to make your own memes by adding images and text, and freely edit them.">
<meta name="keywords" content="Meme creator, image editor, text editor.">
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/jpg" href="img/favicon.ico">
<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=Advent+Pro:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Rubik+Doodle+Shadow&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/9096056511.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.0/FileSaver.min.js" integrity="sha512-csNcFYJniKjJxRWRV1R7fvnXrycHP6qDR21mgz1ZP55xY5d+aHLfo9/FcGDQLfn2IfngbAHd8LdfsagcCqgTcQ==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dom-to-image/2.6.0/dom-to-image.min.js" integrity="sha512-01CJ9/g7e8cUmY0DFTMcUw/ikS799FHiOA0eyHsUWfOetgbx/t6oV4otQ5zXKQyIrQGTHSmRVPIgrgLcZi/WMA==" crossorigin="anonymous"></script>
<title>Generador de Memes</title>
</head>
<body>
<!--TITLE AND NAV BUTTONS-->
<header>
<h1>Generador de Memes</h1>
<nav>
<button id="btn-img-menu" class="custom-btn" type="button" tabindex="1">
<i class="fa-regular fa-image title-icon"></i>
Imagen
</button>
<button id="btn-text-menu" class="custom-btn" type="button" tabindex="2">
<i class="fa-solid fa-font title-icon"></i>
Texto
</button>
<button id="btn-darkmode" class="custom-btn" type="button" tabindex="3">
<i class="fa-regular fa-moon btn-icon"></i>
Modo Oscuro
</button>
</nav>
</header>
<!--CANVAS: IMAGE CONTAINER-->
<main>
<div id="download-img">
<div id="canvas">
<p id="top-txt" class="meme-txt">TEXTO-SUPERIOR</p>
<img src="img/cheems-placeholder.jpeg" alt="" aria-label="Imagen de meme" id="img-container">
<p id="bottom-txt" class="meme-txt">TEXTO-INFERIOR</p>
</div>
</div>
<div class="btn-container">
<button id="btn-download" type="button" tabindex="4">
<i class="fa-solid fa-download title-icon"></i>
Descargar Meme
</button>
</div>
</main>
<!--IMAGE EDITOR MENU-->
<aside id="img-editor-menu">
<div class="title-section">
<h2>
<i class="fa-regular fa-image title-icon"></i>
Imagen
</h2>
<button type="button" id="close-img-menu" class="custom-btn close-window" tabindex="22"><i class="fa-solid fa-xmark title-icon"></i></button>
</div>
<div class="wrapper-menu">
<form id="img-menu" method="post" enctype="multipart/form-data">
<!--IMAGE UPLOAD SECTION-->
<div class="section-menu">
<div class="alert-text">
<p>AÑADE TU IMAGEN PARA COMENZAR</p>
</div>
<div class="two-inputs">
<div class="col-1">
<input type="text" id="url-img-input" class="input-text" aria-label="URL de imagen" placeholder="Ingresa una URL." value="" tabindex="8">
</div>
<div class="col-2">
<label for="upload-meme-img" id="btn-img-upload" tabindex="9"><i class="fa-solid fa-upload"></i></label>
<input type="file" id="upload-meme-img" name="img_upload" aria-label="Subir una imagen" accept=".jpg, .jpeg, .png">
</div>
</div>
</div>
<!--IMAGE BACKGROUND EDITOR-->
<div class="section-menu">
<h3>Fondo</h3>
<div class="two-inputs">
<div class="col-2">
<label for="blend-mode-bgc" id="blend-mode-bgc-label" class="color-select" tabindex="10">
<input type="color" id="blend-mode-bgc" class="circle-selector" name="color" value="#FFFFFF" aria-label="Color de fondo de imagen.">
<span id="blend-mode-color-value" aria-hidden="true">#FFFFFF</span>
</label>
</div>
<div class="col-1">
<select aria-label="Modo de mezcla de fondo de imagen" id="blend-mode-select" class="panel-control-select" tabindex="11">
<option value="unset">Ninguno</option>
<option value="lighten">Aclarar</option>
<option value="plus-lighter">Más Claro</option>
<option value="hard-light">Luz Dura</option>
<option value="soft-light">Luz Suave</option>
<option value="darken">Oscurecer</option>
<option value="difference">Diferencia</option>
<option value="luminosity">Luminosidad</option>
<option value="multiply">Multiplicar</option>
<option value="overlay">Superponer</option>
<option value="color-dodge">Color Esquivado</option>
<option value="color-burn">Color quemado</option>
<option value="exclusion">Exclusión</option>
<option value="saturation">Saturación</option>
<option value="hue">Matiz</option>
</select>
</div>
</div>
</div>
<!--IMAGE FILTERS EDITOR-->
<div class="section-menu">
<h3>Filtros</h3>
<div class="one-input">
<label for="brightness-slider" class="input-range">BRILLO</label>
<input type="range" id="brightness-slider" min="0" max="1" value="1" step="0.1" tabindex="12">
</div>
<div class="one-input">
<label for="opacity-slider" class="input-range">OPACIDAD</label>
<input type="range" id="opacity-slider" min="0" max="1" value="1" step="0.1" tabindex="13">
</div>
<div class="one-input">
<label for="contrast-slider" class="input-range">CONTRASTE</label>
<input type="range" id="contrast-slider" min="100" max="1000" value="100" step="1" tabindex="14">
</div>
<div class="one-input">
<label for="blur-slider" class="input-range">DESENFOQUE</label>
<input type="range" id="blur-slider" min="0" max="10" value="0" step="0.1" tabindex="15">
</div>
<div class="one-input">
<label for="grayscale-slider" class="input-range">ESCALA DE GRISES</label>
<input type="range" id="grayscale-slider" min="0" max="100" value="0" step="1" tabindex="16">
</div>
<div class="one-input">
<label for="sepia-slider" class="input-range">SEPIA</label>
<input type="range" id="sepia-slider" min="0" max="100" value="0" step="1" tabindex="17">
</div>
<div class="one-input">
<label for="hue-slider" class="input-range">HUE</label>
<input type="range" id="hue-slider" min="0" max="359" value="0" step="1" tabindex="18">
</div>
<div class="one-input">
<label for="saturate-slider" class="input-range">SATURADO</label>
<input type="range" id="saturate-slider" min="100" max="1000" value="100" step="10" tabindex="19">
</div>
<div class="one-input">
<label for="invert-slider" class="input-range">NEGATIVO</label>
<input type="range" id="invert-slider" min="0" max="1" value="0" step="0.1" tabindex="20">
</div>
<div class="btn-container">
<button id="btn-default-filters" type="button" tabindex="21">Reestablecer filtros</button>
</div>
</div>
</form>
</div>
</aside>
<!--TEXT EDITOR MENU-->
<aside id="text-editor-menu">
<div class="title-section">
<h2>
<i class="fa-solid fa-font title-icon"></i>
Texto
</h2>
<button type="button" id="close-text-menu" class="custom-btn close-window" tabindex="40"><i class="fa-solid fa-xmark title-icon"></i></button>
</div>
<div class="wrapper-menu">
<form id="txt-menu" method="post" enctype="multipart/form-data">
<!--TEXT WRITER SECTION-->
<div class="section-menu">
<div>
<label for="top-text-input" class="text-label">
Superior
</label>
<div class="one-input">
<textarea aria-label="Texto superior" class="input-text text-container" id="top-text-input" placeholder="Ingresa tu texto aquí." tabindex="23"></textarea>
</div>
<div class="two-inputs remove-option">
<div class="col-1 checkbox-container">
<input type="checkbox" id="remove-top-text" tabindex="24">
<label for="remove-top-text">
Quitar texto
</label>
</div>
</div>
</div>
<div>
<label for="bottom-text-input" class="text-label">
Inferior
</label>
<div class="one-input">
<textarea aria-label="Texto inferior" class="input-text text-container" id="bottom-text-input" placeholder="Ingresa tu texto aquí." tabindex="25"></textarea>
</div>
<div class="two-inputs">
<div class="col-1 checkbox-container">
<input type="checkbox" id="remove-bottom-text" tabindex="26">
<label for="remove-bottom-text">
Quitar texto
</label>
</div>
</div>
</div>
</div>
<!--FONTS SECTION-->
<div class="section-menu">
<label for="select-text-font-family" class="text-label">
Fuente
</label>
<div class="one-input">
<select name="Font-family" id="select-text-font-family" class="panel-control-select" aria-label="Fuente del texto" tabindex="27">
<option value="Advent Pro">Advent Pro</option>
<option value="Arial">Arial</option>
<option value="Arial Black">Arial Black</option>
<option value="American Typewriter">American Typewriter</option>
<option value="Andale Mono">Andale Mono</option>
<option value="Comic Sans MS">Comic Sans MS</option>
<option value="Helvetica">Helvetica</option>
<option value="Impact">Impact</option>
<option value="Rubik Doodle Shadow">Rubik Doodle Shadow</option>
<option value="Times New Roman">Times New Roman</option>
<option value="Verdana">Verdana</option>
</select>
</div>
</div>
<!--FONT SIZE-->
<div class="section-menu">
<div class="grid-cols-a">
<div class="col-grid-1">
<label for="text-size-input" class="text-label">
Tamaño
</label>
<input type="number" name="font-size" aria-label="Tamaño de fuente" id="text-size-input" min="9" max="60" value="30" tabindex="28">
</div>
<!--TEXT ALIGN-->
<div class="col-grid-2">
<h3>Alineación</h3>
<div class="align-container">
<button type="button" class="custom-btn txt-align" id="left-align-btn" aria-label="Alinear texto a la izquierda." tabindex="29">
<i class="fas fa-align-left" aria-hidden="true"></i>
</button>
<button type="button" class="custom-btn txt-align" id="center-align-btn" aria-label="Centrar texto." tabindex="30">
<i class="fas fa-align-center" aria-hidden="true"></i>
</button>
<button type="button" class="custom-btn txt-align" id="right-align-btn" aria-label="Alinear texto a la derecha." tabindex="31">
<i class="fas fa-align-right" aria-hidden="true"></i>
</button>
</div>
</div>
</div>
</div>
<!--COLOR SECTION-->
<div class="section-menu">
<div class="grid-cols-b">
<!--TEXT COLOR-->
<div class="col-grid-1">
<h3>Color</h3>
<div>
<label for="text-color-input" id="text-color-label" class="color-select" tabindex="32">
<input name="Color de texto" type="color" id="text-color-input" class="circle-selector" value="#000000" aria-label="Color de texto">
<span id="text-color-value" aria-hidden="true">#000000</span>
</label>
</div>
</div>
<!--TEXT BACKGROUND COLOR-->
<div class="col-grid-2">
<h3>Fondo</h3>
<label for="text-bcg-color" id="text-bgc-color-label" class="color-select" tabindex="33">
<input name="Text-background-color" type="color" id="text-bcg-color" class="circle-selector" value="#FFFFFF" aria-label="Color de fondo del texto">
<span id="text-background-color-value" aria-hidden="true">#FFFFFF</span>
</label>
<div class="one-input checkbox-container">
<input type="checkbox" name="Transparent-background" id="remove-txt-bcg-color" aria-label="Quitar el fondo" tabindex="34">
<label for="remove-txt-bcg-color">
Fondo transparente
</label>
</div>
</div>
</div>
</div>
<!--OUTLINE SECTION-->
<div class="section-menu">
<h3>Contorno</h3>
<div class="one-input">
<button type="button" class="custom-btn" id="no-outline-btn" aria-label="Quitar contorno" tabindex="35">Ninguno</button>
<button type="button" class="custom-btn" id="light-outline-btn" aria-label="Contorno claro" tabindex="36">Claro</button>
<button type="button" class="custom-btn" id="dark-outline-btn" aria-label="Contorno oscuro" tabindex="37">Oscuro</button>
</div>
</div>
<!--PADDING SECTION-->
<div class="section-menu">
<div class="grid-cols-b">
<div class="col-grid-1">
<label for="padding-input" class="text-label">
Espaciado
</label>
<input type="number" id="padding-input" class="panel-control-input" aria-label="Espaciado" min="10" max="50"
value="35" tabindex="38">
</div>
<!--LINE HEIGHT SECTION-->
<div class="col-grid-2">
<label for="line-height-select" class="text-label">
Interlineado
</label>
<select id="line-height-select" class="panel-control-select" aria-label="Interlineado" tabindex="39">
<option value="0.8">0.8</option>
<option value="1">1</option>
<option value="1.2" selected>1.2</option>
<option value="1.5">1.5</option>
<option value="2">2</option>
<option value="2.5">2.5</option>
</select>
</div>
</div>
</div>
</form>
</div>
</aside>
<footer>
<div class="social-networks">
<ul class="align-container">
<li>
<a href="https://github.com/romicons" target="_blank" aria-label="Link a Github" class="footer-icon" tabindex="5"><i class="fab fa-github-alt"></i></a>
</li>
<li>
<a href="https://www.linkedin.com/in/romina-evelin-constantinoff/" class="footer-icon" target="_blank" aria-label="Link a LinkedIn" tabindex="6"><i class="fab fa-linkedin-in"></i></a>
</li>
<li>
<a href="mailto:romina.constantinoff@gmail.com" aria-label="Link a Email" target="_blank" class="footer-icon" tabindex="7"><i class="fas fa-envelope"></i></a>
</li>
</ul>
</div>
<div>
<p class="design-by">© 2024 Romina Constantinoff. Todos los derechos reservados.</p>
</div>
</footer>
<script src="functions.js"></script>
<script src="main.js"></script>
</body>
</html>