-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
247 lines (232 loc) · 12.2 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
<!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="Meme Generator">
<meta name="keywords" content="meme, memes, meme-generator, javascript">
<meta name="author" content="Veronica Capobianco">
<!-- Metadatos para redes sociales -->
<meta property="og:title" content="Meme Generator">
<meta property="og:type" content="website">
<meta property="og:url" content="https://meme-generator-pearl.vercel.app/">
<meta property="og:image" content="https://i.postimg.cc/GpcqL2Pb/meme.png">
<meta property="og:description" content="Make your own MEME and have fun!">
<meta property="og:site_name" content="Meme Generator">
<link rel="shortcut icon" href="./src/favicon.png" type="image/x-icon">
<link rel="stylesheet" href="./src/style.css" crossorigin="anonymous">
<title>Meme Generator</title>
</head>
<body class="dark-theme">
<header>
<!-- NAVIGATION -->
<nav>
<h1 class="app-title">Meme Generator</h1>
<div class="buttons-container panel-buttons">
<button class="button button-text" id="img-panel-button" aria-label="Open image panel button"><i
class="fas fa-file-image button-icon-text"></i>IMAGE</button>
<button class="button button-text" id="text-panel-button" aria-label="Open text panel button"><i
class="fas fa-font button-icon-text"></i>TEXT</button>
<button class="button button-text button-theme button-theme-dark" id="dark-theme-button" aria-label="Select dark theme button">
<i class="fas fa-sharp fa-solid fa-sun button-icon-text" id="dark-theme-icon"></i></button>
<button class="button button-text button-theme button-theme-light hidden" id="light-theme-button" aria-label="Select light theme button">
<i class="fas fa-sharp fa-solid fa-moon button-icon-text hidden" id="light-theme-icon"></i></button>
</div>
</nav>
</header>
<main class="editor-container">
<!-- MEME CONTAINER -->
<div class="meme-container">
<div class="canvas-meme" id="canvas-meme">
<p id="top-text" class="text-meme">TOP TEXT</p>
<div id="image-meme"></div>
<p id="bottom-text" class="text-meme">BOTTOM TEXT</p>
</div>
<button type="button" class="button button-text" id="download-meme-button" aria-label="Download meme button">
<i class="fas fa-download button-icon-text"></i>Download Meme</button>
</div>
<!-- ASIDE PANEL -->
<aside class="panel" id="panel">
<button class="panel-close-button" id="panel-close-button" aria-label="Close panel">
<i class="fas fa-times" aria-hidden="true"></i>
</button>
<!-- IMAGE PANEL -->
<section class="panel-img" id="panel-img">
<h2 class="panel-title">IMAGE</h2>
<div class="panel-control">
<h3 class="panel-control-title">URL</h3>
<input type="text" class="panel-control-input" id="url-img-input" title="Insert image url" aria-label="Image URL">
</div>
<!-- BACKGROUND -->
<div class="panel-control">
<h3 class="panel-control-title">BACKGROUND</h3>
<div class="panel-control-columns">
<div class="panel-control-color panel-control-column">
<input aria-label="Image background color" type="color" id="blend-mode-color-input" value="#FFFFFF">
<span id="blend-mode-color" aria-hidden="true">#FFFFFF</span>
<select aria-label="Image blend mode color" id="blend-mode-select"
class="panel-control-input select">
<option value="unset">UNSET</option>
<option value="lighten">LIGHTEN</option>
<option value="darken">DARKEN</option>
<option value="difference">DIFFERENCE</option>
<option value="luminosity">LUMINOSITY</option>
<option value="multiply">MULTIPLY</option>
</select>
</div>
</div>
</div>
<!-- FILTERS -->
<div class="panel-control">
<h3 class="panel-control-title">FILTERS</h3>
<div class="panel-control-slider">
<label for="brightness-slider">BRIGHTNESS</label>
<input type="range" id="brightness-slider" min="0" max="1" value="1" step="0.1">
</div>
<div class="panel-control-slider">
<label for="opacity-slider">OPACITY</label>
<input type="range" id="opacity-slider" min="0" max="1" value="1" step="0.1">
</div>
<div class="panel-control-slider">
<label for="contrast-slider">CONTRAST</label>
<input type="range" id="contrast-slider" min="100" max="1000" value="100">
</div>
<div class="panel-control-slider">
<label for="blur-slider">BLUR</label>
<input type="range" id="blur-slider" min="0" max="10" value="0" step="0.1">
</div>
<div class="panel-control-slider">
<label for="grayscale-slider">GRAYSCALE</label>
<input type="range" id="grayscale-slider" min="0" max="100" value="0">
</div>
<div class="panel-control-slider">
<label for="sepia-slider">SEPIA</label>
<input type="range" id="sepia-slider" min="0" max="100" value="0">
</div>
<div class="panel-control-slider">
<label for="hue-slider">HUE</label>
<input type="range" id="hue-slider" min="0" max="360" value="0">
</div>
<div class="panel-control-slider">
<label for="saturation-slider">SATURATION</label>
<input type="range" id="saturation-slider" min="100" max="1000" value="100" step="10">
</div>
<div class="panel-control-slider">
<label for="invert-slider">INVERT</label>
<input type="range" id="invert-slider" min="0" max="1" value="0" step="0.1">
</div>
</div>
<button class="button button-default" id="default-filters-button">RESET FILTERS</button>
</section>
<!-- TEXT PANEL -->
<section class="panel-text hidden" id="panel-text">
<h2 class="panel-title">TEXTO</h2>
<!-- TEXT EDITION -->
<div class="panel-control">
<h3 class="panel-control-title">TOP TEXT</h3>
<textarea aria-label="Top text" class="panel-control-input" id="top-text-input">TOP TEXT</textarea>
<div class="flex-container panel-control-checkbox">
<input type="checkbox" id="no-top-text-checkbox"><label for="no-top-text-checkbox">NO UPPER TEXT</label>
</div>
</div>
<div class="panel-control">
<h3 class="panel-control-title">BOTTOM TEXT</h3>
<textarea aria-label="Bottom text" class="panel-control-input"
id="bottom-text-input">BOTTOM TEXT</textarea>
<div class="flex-container panel-control-checkbox">
<input type="checkbox" id="no-bottom-text-checkbox"><label for="no-bottom-text-checkbox">NO LOWER
TEXT</label>
</div>
</div>
<!-- FONT SELECTION -->
<div class="panel-control">
<h3 class="panel-control-title">FONT</h3>
<select name="Font family" id="text-font-select" class="panel-control-input"
aria-label="Font family">
<option value="Arial">Arial</option>
<option value="Nanum Pen Script" selected="">Nanum Pen Script</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="Verdana">Verdana</option>
<option value="Times New Roman">Times New Roman</option>
</select>
<div class="flex-container">
<input type="number" name="Font size" aria-label="Font size" class="panel-control-input"
id="text-size-input" min="12" max="72" value="40">
<div class="buttons-container buttons-alignment">
<button class="button button-default" id="text-left-align-button" aria-label="Align text to the left">
<i class="fas fa-align-left" aria-hidden="true" id="text-left-align-icon"></i>
</button>
<button class="button button-default" id="text-center-align-button" aria-label="Align text to the center">
<i class="fas fa-align-center" aria-hidden="true" id="text-center-align-icon"></i>
</button>
<button class="button button-default" id="text-right-align-button" aria-label="Align text to the right">
<i class="fas fa-align-right" aria-hidden="true" id="text-right-align-icon"></i>
</button>
</div>
</div>
</div>
<div class="panel-control">
<div class="panel-control-columns2">
<div class="panel-control panel-control-column2">
<h3 class="panel-control-title">COLOR</h3>
<div class="panel-control-color">
<input name="Text color" type="color" id="text-color-input" value="#000000"
aria-label="Text color">
<span id="text-color" aria-hidden="true">#000000</span>
</div>
</div>
<div class="panel-control panel-control-column2">
<h3 class="panel-control-title">BACKGROUND</h3>
<div class="panel-control-color">
<input name="Color de fondo de texto" type="color" id="text-background-color-input" value="#FFFFFF"
aria-label="Color de fondo de texto">
<span id="text-background-color" aria-hidden="true">#FFFFFF</span>
</div>
</div>
</div>
<div class="flex-container panel-control-checkbox">
<input type="checkbox" id="text-no-background-checkbox"><label
for="text-no-background-checkbox">TRANSPARENT BACKGROUND</label>
</div>
</div>
<div class="panel-control">
<h3 class="panel-control-title">OUTLINE</h3>
<div class="buttons-container">
<button class="button button-default" id="no-outline-button">NO OUTLINE</button>
<button class="button button-default" id="light-outline-button">LIGHT</button>
<button class="button button-default" id="dark-outline-button">DARK</button>
</div>
</div>
<div class="panel-control">
<h3 class="panel-control-title">PADDING</h3>
<input type="number" id="padding-input" class="panel-control-input" aria-label="Espaciado" min="10" max="50" value="35">
</div>
<div class="panel-control">
<h3 class="panel-control-title">LINE HEIGHT</h3>
<select id="line-height-input" class="panel-control-input" aria-label="Interlineado">
<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>
</section>
</aside>
</main>
<footer>
<p>2024 - Develop by <a href="https://www.linkedin.com/in/vscapobianco/" target="_blank">@veritocapito</a>
</p>
</footer>
<script src="https://kit.fontawesome.com/edd2efc64a.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/html2canvas@1.0.0-rc.1/dist/html2canvas.min.js"></script>
<script src="./src/main.js"></script>
<!-- https://github.com/tsayen/dom-to-image -->
<script src="./src/dom-to-image.js"></script>
</body>
</html>