-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
93 lines (93 loc) · 4.49 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Meme Creator</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<div class="left-panel">
<h2>Meme Creator</h2>
<div class="section">
<label for="imageInput">Select Image:</label>
<input type="file" id="imageInput" accept="image/*" aria-label="Select Image">
<div id="dropArea" class="drop-area">
<p>Drag & Drop Image Here</p>
</div>
</div>
<div class="section">
<label for="textInput">Enter Text:</label>
<textarea id="textInput" rows="4" placeholder="Enter your text here..." aria-label="Enter Text"></textarea>
</div>
<div class="section">
<label>Text Position:</label>
<div class="radio-group">
<label><input type="radio" name="textPosition" value="above" checked> Above</label>
<label><input type="radio" name="textPosition" value="below"> Below</label>
</div>
</div>
<div class="section">
<label>Select Resolution:</label>
<div class="radio-group">
<label><input type="radio" name="resolution" value="1920x1080"> 1920x1080</label>
<label><input type="radio" name="resolution" value="1080x1920" checked> 1080x1920</label>
<label><input type="radio" name="resolution" value="1280x720"> 1280x720</label>
<label><input type="radio" name="resolution" value="custom"> Custom</label>
</div>
<div id="customResolutionContainer" class="hidden">
<input type="text" id="customResolution" placeholder="e.g., 1600x900" aria-label="Custom Resolution">
</div>
</div>
<div class="section">
<label for="fontSelect">Select Font:</label>
<select id="fontSelect" aria-label="Select Font">
<option value="Arial">Arial</option>
<option value="Helvetica">Helvetica</option>
<option value="Times New Roman">Times New Roman</option>
<option value="Courier New">Courier New</option>
</select>
</div>
<div class="section">
<label for="fontSize">Font Size:</label>
<input type="range" id="fontSize" min="10" max="100" value="50" aria-label="Font Size">
<span id="fontSizeDisplay">30px</span>
</div>
<div class="section color-section">
<label>Customize Colors:</label>
<div class="color-picker-group">
<div class="color-picker">
<label for="textColor">
<span class="icon">🖍️</span> Text Color:
</label>
<input type="color" id="textColor" value="#000000" aria-label="Text Color">
<input type="text" id="textColorHex" placeholder="hex code e.g #25235">
</div>
<div class="color-picker">
<label for="backgroundColor">
<span class="icon">🎨</span> Background Color:
</label>
<input type="color" id="backgroundColor" value="#FFFFFF" aria-label="Text Background Color">
<input type="text" id="backgroundColorHex" placeholder="hex code e.g #25235">
</div>
</div>
</div>
<div class="section buttons">
<button id="copyButton">Copy to Clipboard</button>
<button id="downloadButton">Download Image</button>
</div>
<div id="result" class="result"></div>
<div id="loading" class="hidden">
<p>Processing...</p>
</div>
</div>
<div class="right-panel">
<h3>Preview:</h3>
<canvas id="previewCanvas">Preview will appear here.</canvas>
</div>
</div>
<script src="script.js"></script>
</body>
</html>