-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
500 lines (462 loc) · 32.9 KB
/
index.html
File metadata and controls
500 lines (462 loc) · 32.9 KB
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
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HeadshotAI 2 - Professional Headshot Generator</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Background decoration -->
<div class="bg-decoration">
<div class="bg-circle bg-circle-1"></div>
<div class="bg-circle bg-circle-2"></div>
</div>
<!-- Main container -->
<div class="container">
<!-- Header -->
<header class="header">
<div class="header-title">
<div class="icon-wrapper icon-gradient">
<svg class="icon-large" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
</svg>
</div>
<h1 class="main-title">HeadshotAI 2</h1>
<button id="darkModeToggle" class="dark-mode-toggle" type="button" title="Toggle dark mode">
<svg id="sunIcon" class="icon-medium" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z" />
</svg>
<svg id="moonIcon" class="icon-medium hidden" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z" />
</svg>
</button>
</div>
<p class="subtitle">
Generate <span class="highlight">professional headshots</span> from any photo, <span class="highlight">fast</span>.<br>
Customize looks with <span class="highlight">10+ presets</span>. Includes <span class="highlight">prompt generation</span>.<br>
</p>
<!-- API Key Input Section -->
<div class="api-key-section">
<div class="api-key-container">
<label for="apiKeyInput" class="api-key-label">
<svg class="icon-small" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z" />
</svg>
Gemini API Key
</label>
<div class="api-key-input-wrapper">
<input
type="password"
id="apiKeyInput"
class="api-key-input"
placeholder="Enter your Gemini API key here..."
autocomplete="off"
>
<button id="toggleApiKeyBtn" class="toggle-visibility-btn" type="button">
<svg id="showIcon" class="icon-tiny" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />
</svg>
<svg id="hideIcon" class="icon-tiny hidden" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21" />
</svg>
</button>
</div>
<small class="api-key-hint">
Don't have an API key?
Get one from <a href="https://aistudio.google.com/apikey" target="_blank" rel="noopener noreferrer">Google AI Studio</a> for free!
</small>
<div class="api-key-test-container">
<button id="testConnectionBtn" class="btn btn-secondary btn-small test-connection-btn" disabled>
<svg class="icon-small btn-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
Test Connection
</button>
</div>
</div>
</div>
<!-- Parameter Selection -->
<div class="parameter-selection-section">
<div class="parameter-selection-container">
<h3 class="parameter-section-title">Customise Your Headshot</h3>
<div class="parameter-grid">
<!-- Type Selection -->
<div class="parameter-group">
<label for="typeSelect" class="parameter-label">
<svg class="icon-small" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zM21 5a2 2 0 00-2-2h-4a2 2 0 00-2 2v12a4 4 0 004 4h4a2 2 0 002-2V5z" />
</svg>
Type
</label>
<select id="typeSelect" class="parameter-select">
<option value="headshot">Professional Headshot</option>
<option value="linkedin">LinkedIn-style Portrait</option>
<option value="passport">Passport Photo</option>
<option value="casual">Casual Portrait</option>
</select>
</div>
<!-- Background Selection -->
<div class="parameter-group">
<label for="backgroundSelect" class="parameter-label">
<svg class="icon-small" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z" />
</svg>
Background
</label>
<select id="backgroundSelect" class="parameter-select">
<optgroup label="Solid Colors">
<option value="plain-white">Plain White</option>
<option value="light-blue">Light Blue</option>
<option value="light-pink">Light Pink</option>
<option value="soft-grey">Soft Grey</option>
<option value="smoke-blue">Smoke Blue</option>
</optgroup>
<optgroup label="Professional Settings">
<option value="modern-office">Modern Office</option>
<option value="studio-backdrop">Studio Backdrop</option>
<option value="study-room">Study Room</option>
<option value="casual">Casual Setting</option>
</optgroup>
</select>
</div>
<!-- Dress Style Selection -->
<div class="parameter-group">
<label for="dressStyleSelect" class="parameter-label">
<svg class="icon-small" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
</svg>
Dress Style
</label>
<select id="dressStyleSelect" class="parameter-select">
<option value="none">Keep as it is</option>
<optgroup label="General Styles">
<option value="grey-sweater">Dark Grey Crew-Neck Sweater</option>
<option value="black-suit">Black Slim-Fit Business Suit</option>
<option value="grey-suit">Grey Elegant Business Suit</option>
<option value="casual">Casual Outfit</option>
</optgroup>
<optgroup label="Male Attire">
<option value="male-0">Navy Blue Three-Piece Suit</option>
<option value="male-1">Classic Navy Suit</option>
<option value="male-2">Grey Trousers & Blue Sweater</option>
<option value="male-3">Charcoal Pinstripe Suit</option>
<option value="male-4">Smart Casual Sport Coat</option>
</optgroup>
<optgroup label="Female Attire">
<option value="female-0">Sleeveless Navy Blue Round Neck Dress</option>
<option value="female-1">Tailored Charcoal Pantsuit</option>
<option value="female-2">Black Sheath Dress</option>
<option value="female-3">Cream Midi Skirt & Navy Top</option>
<option value="female-4">White Shirt & Dark Trousers</option>
<option value="female-5">Navy Pencil Skirt & Blue Shirt</option>
</optgroup>
</select>
</div>
<!-- Hair Style Selection -->
<div class="parameter-group">
<label for="hairStyleSelect" class="parameter-label">
<svg class="icon-small" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z" />
</svg>
Hair Style
</label>
<select id="hairStyleSelect" class="parameter-select">
<option value="none">Keep as it is</option>
<optgroup label="General Styles">
<option value="professional">Professional (Clean, styled)</option>
<option value="casual">Casual (Natural, relaxed)</option>
<option value="formal">Formal (Well-groomed, business-ready)</option>
<option value="modern">Modern (Contemporary styling)</option>
</optgroup>
<optgroup label="Male Styles">
<option value="male-1">Classic Side Part</option>
<option value="male-2">Modern Textured Crop</option>
<option value="male-3">Slicked Back</option>
<option value="male-4">Short Business Cut</option>
<option value="male-5">Subtle Quiff</option>
</optgroup>
<optgroup label="Female Styles">
<option value="female-1">Long, Wavy Hair with Bangs</option>
<option value="female-2">Neat Bun / Chignon</option>
<option value="female-3">Sleek High Ponytail</option>
<option value="female-4">Sophisticated Side Bob</option>
<option value="female-5">Half-Up with Twist / Braid</option>
</optgroup>
</select>
</div>
<!-- Shot Size Selection -->
<div class="parameter-group">
<label for="shotSizeSelect" class="parameter-label">
<svg class="icon-small" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z" />
</svg>
Shot Size
</label>
<select id="shotSizeSelect" class="parameter-select">
<option value="closeup">Close-up (Head & Shoulders)</option>
<option value="medium-closeup">Medium Close-up (Head & Upper Chest)</option>
<option value="medium-shot">Medium Shot (Waist Up)</option>
<option value="cowboy-shot">Cowboy Shot (Mid-thigh Up)</option>
<option value="medium-full-shot">Medium Full Shot (Knees Up)</option>
<option value="full-shot">Full Shot (Head to Toe)</option>
</select>
</div>
<!-- Depth of Field Toggle -->
<div class="parameter-group">
<label for="depthOfFieldSelect" class="parameter-label">
<svg class="icon-small" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />
</svg>
Depth of Field
</label>
<select id="depthOfFieldSelect" class="parameter-select">
<option value="true">Enable (Blur background)</option>
<option value="false">Disable (Keep all in focus)</option>
</select>
</div>
<!-- Head Tilting Toggle -->
<div class="parameter-group">
<label for="headTiltingSelect" class="parameter-label">
<svg class="icon-small" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />
</svg>
Head Tilting
</label>
<select id="headTiltingSelect" class="parameter-select">
<option value="true">Enable</option>
<option value="false">Disable</option>
</select>
</div>
<!-- Retouching Toggle -->
<div class="parameter-group">
<label for="retouchingSelect" class="parameter-label">
<svg class="icon-small" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z" />
</svg>
Retouching
</label>
<select id="retouchingSelect" class="parameter-select">
<option value="true">Enable</option>
<option value="false">Disable</option>
</select>
</div>
</div>
<!-- Advanced Prompt Editor -->
<div class="prompt-editor-section">
<button id="togglePromptEditor" class="prompt-editor-toggle">
<svg class="icon-small" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" />
</svg>
<span>Advanced Prompt Editor</span>
<svg id="promptEditorChevron" class="icon-small chevron" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
</svg>
</button>
<div id="promptEditorContent" class="prompt-editor-content hidden">
<div class="prompt-editor-header">
<label for="promptTextarea" class="prompt-editor-label">
<svg class="icon-small" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" />
</svg>
Custom AI Prompt
</label>
<div class="prompt-editor-actions">
<button id="resetPromptBtn" class="btn btn-secondary btn-small">Reset to Default</button>
</div>
</div>
<textarea
id="promptTextarea"
class="prompt-textarea"
placeholder="Enter your custom AI prompt here..."
rows="8"
></textarea>
<div class="prompt-editor-hint">
<svg class="icon-small" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
<span>Changes to dropdowns above will overwrite this custom prompt. You can edit this prompt to fine-tune the AI's behaviour.</span>
</div>
<div class="prompt-editor-hint">
<svg class="icon-small" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
<span>To ensure correct shot size, specify attire up to the desired body part (e.g., "trousers" for legs, omit for torso-only)</span>
</div>
</div>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="main-content">
<!-- Slidable Container -->
<div class="slidable-container">
<!-- Slide Wrapper -->
<div class="slide-wrapper">
<!-- Slide 1: Upload Your Photo -->
<div class="slide active" data-slide="0">
<div class="card">
<div class="card-header">
<div class="card-icon card-icon-blue">
<svg class="icon-medium" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12" />
</svg>
</div>
<div>
<h2 class="card-title">Upload Your Photo</h2>
<p class="card-subtitle">Step 1 of 2</p>
</div>
</div>
<div class="upload-area" id="uploadArea">
<input type="file" id="fileInput" accept="image/png, image/jpeg, image/webp" hidden>
<div id="uploadPlaceholder" class="upload-placeholder">
<div class="upload-icon">
<svg class="icon-xlarge" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z" />
</svg>
</div>
<p class="upload-title">Drop your photo here</p>
<p class="upload-text">or click to browse your files</p>
<div class="file-types">
<span class="file-type file-type-green">PNG</span>
<span class="file-type file-type-blue">JPG</span>
<span class="file-type file-type-purple">WEBP</span>
</div>
</div>
<div id="imagePreview" class="image-preview hidden">
<img id="previewImage" src="" alt="Preview">
<div class="image-overlay">
<div class="overlay-text">Click to change photo</div>
</div>
</div>
</div>
</div>
</div>
<!-- Slide 2: Your Results -->
<div class="slide" data-slide="1">
<div class="card">
<div class="card-header">
<div class="card-icon card-icon-purple">
<svg class="icon-medium" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z" />
</svg>
</div>
<div>
<h2 class="card-title">Your Results</h2>
<p class="card-subtitle card-subtitle-purple">Step 2 of 2</p>
</div>
</div>
<div class="result-area" id="resultArea">
<!-- Default state -->
<div id="resultPlaceholder" class="result-placeholder">
<div class="result-icon">
<svg class="icon-xlarge" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
</svg>
</div>
<p class="result-title">Your headshot will appear here</p>
<p class="result-text">Upload a photo and select a style to get started</p>
</div>
<!-- Loading state -->
<div id="resultLoading" class="result-loading hidden">
<div class="spinner"></div>
<p class="loading-title">AI is creating your headshot...</p>
<p class="loading-text">Generating professional style</p>
<div class="loading-dots">
<div class="dot dot-1"></div>
<div class="dot dot-2"></div>
<div class="dot dot-3"></div>
</div>
</div>
<!-- Error state -->
<div id="resultError" class="result-error hidden">
<div class="error-icon">
<svg class="icon-large" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
</div>
<p class="error-title">Something went wrong</p>
<p class="error-text" id="errorMessage"></p>
</div>
<!-- Results -->
<div id="resultSuccess" class="result-success hidden">
<div class="result-header">
<div class="result-info">
<div class="success-icon">
<svg class="icon-medium" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
</svg>
</div>
<div>
<span class="result-count" id="resultCount">9 Headshots Ready!</span>
<p class="result-ready">Ready for download</p>
</div>
</div>
<button id="downloadAllBtn" class="btn btn-gradient">Download</button>
</div>
<div class="result-grid" id="resultGrid"></div>
</div>
</div>
</div>
</div>
<!-- Navigation Controls -->
<div class="slide-navigation">
<div class="slide-indicators">
<div class="indicator active" data-slide="0"></div>
<div class="indicator" data-slide="1"></div>
</div>
</div>
</div>
<!-- Action Buttons -->
<div class="action-buttons">
<button id="generateBtn" class="btn btn-primary btn-large" disabled>
<svg class="icon-small btn-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
</svg>
Generate
</button>
<button id="resetBtn" class="btn btn-secondary btn-large hidden">Clear</button>
</div>
<!-- Footer -->
<footer class="footer">
<div class="footer-content">
<p class="footer-text">
© 2025 Dennie Mok
</p>
<p class="footer-author">
Inspired by <a href="https://github.com/anandsuraj/ai-professional-headshot-generator" target="_blank" rel="noopener noreferrer">HeadshotAI</a>.
</p>
</div>
</footer>
</main>
</div>
<!-- Image Cropper Modal -->
<div id="cropperModal" class="modal hidden">
<div class="modal-content">
<h2 class="modal-title">Crop Your Headshot</h2>
<p class="modal-subtitle">Adjust the selection to frame your face perfectly. Drag the corners to resize in any aspect ratio. Hold Shift while dragging to maintain a square crop.</p>
<div class="crop-container">
<canvas id="cropCanvas"></canvas>
<div id="cropBox" class="crop-box">
<div class="crop-handle crop-handle-nw"></div>
<div class="crop-handle crop-handle-ne"></div>
<div class="crop-handle crop-handle-sw"></div>
<div class="crop-handle crop-handle-se"></div>
</div>
</div>
<div class="modal-actions">
<button id="cancelCropBtn" class="btn btn-secondary">Cancel</button>
<button id="confirmCropBtn" class="btn btn-primary">Confirm Crop</button>
</div>
</div>
</div>
<!-- External libraries -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script>
<!-- Main application script -->
<script src="app.js"></script>
</body>
</html>