-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
525 lines (460 loc) · 31.8 KB
/
index.html
File metadata and controls
525 lines (460 loc) · 31.8 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
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
<!DOCTYPE html>
<html lang="en" class="dark" data-theme="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>EmailForge — Signatures That Impress</title>
<meta name="description" content="The most elegant and intelligent HTML email signature builder. Create premium professional signatures in seconds." />
<!-- Tailwind CSS CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Google Fonts: Playfair Display + DM Sans -->
<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=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap" rel="stylesheet" />
<!-- Custom CSS -->
<link rel="stylesheet" href="css/style.css" />
<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="https://blackbirdo.com/images/icon.png" />
<!-- Tailwind config -->
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
fontFamily: {
display: ['Playfair Display', 'serif'],
body: ['DM Sans', 'sans-serif'],
mono: ['DM Mono', 'monospace'],
},
}
}
}
</script>
</head>
<body class="font-body antialiased transition-colors duration-500">
<!-- ─── BACKGROUND ─────────────────────────────────── -->
<div class="ef-bg-canvas" aria-hidden="true">
<div class="ef-bg-orb ef-orb-1"></div>
<div class="ef-bg-orb ef-orb-2"></div>
<div class="ef-bg-orb ef-orb-3"></div>
<div class="ef-noise"></div>
</div>
<!-- ─── HEADER ─────────────────────────────────────── -->
<header class="ef-header" role="banner">
<div class="ef-header-inner">
<!-- Logo -->
<a href="https://icodingstack.github.io/EmailForge/" class="ef-logo" aria-label="EmailForge Home">
<span class="ef-logo-icon" aria-hidden="true">
<svg width="28" height="28" viewBox="0 0 28 28" fill="none">
<rect x="2" y="6" width="24" height="16" rx="3" stroke="currentColor" stroke-width="1.5"/>
<path d="M2 9L14 16L26 9" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/>
<path d="M18 14L26 20" stroke="currentColor" stroke-width="1.2" opacity="0.5"/>
<path d="M10 14L2 20" stroke="currentColor" stroke-width="1.2" opacity="0.5"/>
</svg>
</span>
<span class="ef-logo-text">
<span class="ef-logo-name">EmailForge</span>
<span class="ef-logo-tagline">Signatures That Impress</span>
</span>
</a>
<!-- Right Controls -->
<div class="ef-header-actions">
<!-- Profile selector -->
<div class="ef-profile-selector" id="profileSelector">
<button class="ef-btn-ghost ef-profile-btn" id="profileMenuBtn" aria-haspopup="true" aria-expanded="false" title="Switch Signature Profile">
<svg width="14" height="14" viewBox="0 0 16 16" fill="none"><circle cx="8" cy="5" r="3" stroke="currentColor" stroke-width="1.4"/><path d="M2 14c0-3.314 2.686-5 6-5s6 1.686 6 5" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg>
<span id="activeProfileName">Professional</span>
<svg width="10" height="10" viewBox="0 0 10 10" fill="none"><path d="M2 4l3 3 3-3" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg>
</button>
<div class="ef-dropdown" id="profileDropdown" role="menu" aria-label="Signature Profiles">
<div class="ef-dropdown-header">
<span>My Signatures</span>
<button class="ef-btn-link" id="newProfileBtn" title="Create new profile">+ New</button>
</div>
<div id="profileList" class="ef-profile-list"></div>
</div>
</div>
<!-- GitHub link -->
<a href="https://github.com/ICodingStack/EmailForge" target="_blank" rel="noopener" class="ef-btn-ghost" title="View on GitHub" aria-label="GitHub Repository">
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.477 2 2 6.477 2 12c0 4.42 2.865 8.166 6.839 9.489.5.092.682-.217.682-.482 0-.237-.008-.866-.013-1.7-2.782.604-3.369-1.34-3.369-1.34-.454-1.156-1.11-1.463-1.11-1.463-.908-.62.069-.608.069-.608 1.003.07 1.531 1.03 1.531 1.03.892 1.529 2.341 1.087 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.11-4.555-4.943 0-1.091.39-1.984 1.029-2.683-.103-.253-.446-1.27.098-2.647 0 0 .84-.268 2.75 1.026A9.578 9.578 0 0112 6.836c.85.004 1.705.115 2.504.337 1.909-1.294 2.747-1.026 2.747-1.026.546 1.377.203 2.394.1 2.647.64.699 1.028 1.592 1.028 2.683 0 3.842-2.339 4.687-4.566 4.935.359.309.678.919.678 1.852 0 1.336-.012 2.415-.012 2.741 0 .267.18.578.688.48C19.138 20.163 22 16.418 22 12c0-5.523-4.477-10-10-10z"/></svg>
</a>
<!-- Theme Toggle -->
<button class="ef-btn-ghost ef-theme-toggle" id="themeToggle" title="Toggle light/dark mode" aria-label="Toggle theme">
<span class="ef-sun" aria-hidden="true">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><circle cx="8" cy="8" r="3" stroke="currentColor" stroke-width="1.4"/><path d="M8 1v1.5M8 13.5V15M1 8h1.5M13.5 8H15M3.05 3.05l1.06 1.06M11.89 11.89l1.06 1.06M3.05 12.95l1.06-1.06M11.89 4.11l1.06-1.06" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg>
</span>
<span class="ef-moon" aria-hidden="true">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M13.5 10.5A6 6 0 015.5 2.5a6 6 0 108 8z" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg>
</span>
</button>
</div>
</div>
</header>
<!-- ─── MAIN LAYOUT ────────────────────────────────── -->
<main class="ef-main" role="main">
<div class="ef-layout">
<!-- ── LEFT PANEL: Builder ─────────────────────── -->
<aside class="ef-panel ef-panel-left" aria-label="Signature Builder">
<!-- Panel Tab Bar -->
<div class="ef-tabs" role="tablist" aria-label="Builder sections">
<button class="ef-tab ef-tab-active" role="tab" aria-selected="true" aria-controls="panel-info" data-tab="info">
<svg width="14" height="14" viewBox="0 0 16 16" fill="none"><circle cx="8" cy="5" r="2.5" stroke="currentColor" stroke-width="1.4"/><path d="M3 14c0-2.761 2.239-4 5-4s5 1.239 5 4" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg>
Info
</button>
<button class="ef-tab" role="tab" aria-selected="false" aria-controls="panel-design" data-tab="design">
<svg width="14" height="14" viewBox="0 0 16 16" fill="none"><rect x="2" y="2" width="5" height="5" rx="1" stroke="currentColor" stroke-width="1.4"/><rect x="9" y="2" width="5" height="5" rx="1" stroke="currentColor" stroke-width="1.4"/><rect x="2" y="9" width="5" height="5" rx="1" stroke="currentColor" stroke-width="1.4"/><rect x="9" y="9" width="5" height="5" rx="1" stroke="currentColor" stroke-width="1.4"/></svg>
Design
</button>
<button class="ef-tab" role="tab" aria-selected="false" aria-controls="panel-social" data-tab="social">
<svg width="14" height="14" viewBox="0 0 16 16" fill="none"><circle cx="12" cy="4" r="1.5" stroke="currentColor" stroke-width="1.4"/><circle cx="4" cy="8" r="1.5" stroke="currentColor" stroke-width="1.4"/><circle cx="12" cy="12" r="1.5" stroke="currentColor" stroke-width="1.4"/><path d="M5.5 7.2l5-2.4M5.5 8.8l5 2.4" stroke="currentColor" stroke-width="1.3" stroke-linecap="round"/></svg>
Social
</button>
<button class="ef-tab" role="tab" aria-selected="false" aria-controls="panel-ai" data-tab="ai">
<svg width="14" height="14" viewBox="0 0 16 16" fill="none"><path d="M8 2L9.5 6H14L10.5 8.5L12 13L8 10.5L4 13L5.5 8.5L2 6H6.5L8 2Z" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round"/></svg>
AI Magic
</button>
</div>
<!-- ── Tab: Info ───────────────────────────────── -->
<div class="ef-tab-panel ef-tab-panel-active" id="panel-info" role="tabpanel">
<div class="ef-section-label">Personal Information</div>
<div class="ef-field-group">
<div class="ef-field">
<label class="ef-label" for="firstName">First Name</label>
<input class="ef-input" type="text" id="firstName" placeholder="Alexandra" autocomplete="given-name" />
</div>
<div class="ef-field">
<label class="ef-label" for="lastName">Last Name</label>
<input class="ef-input" type="text" id="lastName" placeholder="Chen" autocomplete="family-name" />
</div>
</div>
<div class="ef-field">
<label class="ef-label" for="jobTitle">Job Title</label>
<input class="ef-input" type="text" id="jobTitle" placeholder="Creative Director" />
</div>
<div class="ef-field">
<label class="ef-label" for="department">Department <span class="ef-label-opt">optional</span></label>
<input class="ef-input" type="text" id="department" placeholder="Brand & Marketing" />
</div>
<div class="ef-divider"></div>
<div class="ef-section-label">Company</div>
<div class="ef-field">
<label class="ef-label" for="company">Company Name</label>
<input class="ef-input" type="text" id="company" placeholder="Meridian Studio" />
</div>
<div class="ef-field">
<label class="ef-label" for="website">Website</label>
<input class="ef-input" type="url" id="website" placeholder="https://meridianstudio.co" />
</div>
<div class="ef-divider"></div>
<div class="ef-section-label">Contact Details</div>
<div class="ef-field">
<label class="ef-label" for="email">Email</label>
<input class="ef-input" type="email" id="email" placeholder="alex@meridianstudio.co" autocomplete="email" />
</div>
<div class="ef-field">
<label class="ef-label" for="phone">Phone</label>
<input class="ef-input" type="tel" id="phone" placeholder="+1 (555) 000-0000" autocomplete="tel" />
</div>
<div class="ef-field">
<label class="ef-label" for="address">Address <span class="ef-label-opt">optional</span></label>
<input class="ef-input" type="text" id="address" placeholder="New York, NY 10001" />
</div>
<div class="ef-divider"></div>
<div class="ef-section-label">Avatar / Logo</div>
<div class="ef-avatar-row">
<div class="ef-avatar-preview" id="avatarPreview" aria-label="Avatar preview">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="8" r="4" stroke="currentColor" stroke-width="1.5"/><path d="M4 20c0-4.418 3.582-7 8-7s8 2.582 8 7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>
</div>
<div class="ef-avatar-controls">
<label class="ef-btn-secondary ef-upload-label" for="avatarUpload" role="button" tabindex="0">
<svg width="13" height="13" viewBox="0 0 16 16" fill="none"><path d="M2 10v2a2 2 0 002 2h8a2 2 0 002-2v-2" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/><path d="M8 2v8M5 5l3-3 3 3" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/></svg>
Upload Photo
</label>
<input type="file" id="avatarUpload" accept="image/*" class="sr-only" aria-label="Upload avatar image" />
<button class="ef-btn-ghost ef-remove-avatar" id="removeAvatar" title="Remove avatar" style="display:none">Remove</button>
</div>
</div>
<div class="ef-field ef-mt">
<label class="ef-label" for="tagline">Personal Tagline <span class="ef-label-opt">optional</span></label>
<input class="ef-input" type="text" id="tagline" placeholder="Building brands that people remember." />
</div>
</div>
<!-- ── Tab: Design ─────────────────────────────── -->
<div class="ef-tab-panel" id="panel-design" role="tabpanel" hidden>
<div class="ef-section-label">Template</div>
<div class="ef-templates-grid" id="templatesGrid" role="listbox" aria-label="Signature templates">
<!-- Injected by JS -->
</div>
<div class="ef-divider"></div>
<div class="ef-section-label">Accent Color</div>
<div class="ef-color-row">
<div class="ef-color-presets" id="colorPresets" role="listbox" aria-label="Color presets"></div>
<div class="ef-color-custom">
<label class="ef-label-small" for="customColor">Custom</label>
<input type="color" id="customColor" class="ef-color-input" value="#6366f1" title="Pick custom accent color" aria-label="Custom accent color" />
</div>
</div>
<div class="ef-divider"></div>
<div class="ef-section-label">Typography</div>
<div class="ef-field">
<label class="ef-label" for="fontFamily">Font Family</label>
<select class="ef-select" id="fontFamily" aria-label="Signature font family">
<option value="Arial, Helvetica, sans-serif">Arial (Universal)</option>
<option value="'Georgia', serif">Georgia (Classic)</option>
<option value="'Trebuchet MS', sans-serif">Trebuchet MS</option>
<option value="'Palatino Linotype', serif">Palatino (Editorial)</option>
<option value="Verdana, sans-serif">Verdana (Readable)</option>
<option value="'Courier New', monospace">Courier New (Technical)</option>
</select>
</div>
<div class="ef-field">
<label class="ef-label" for="fontSize">Base Font Size</label>
<div class="ef-range-row">
<input type="range" id="fontSize" class="ef-range" min="11" max="16" value="13" step="1" aria-valuemin="11" aria-valuemax="16" />
<span class="ef-range-val" id="fontSizeVal">13px</span>
</div>
</div>
<div class="ef-divider"></div>
<div class="ef-section-label">Layout Options</div>
<div class="ef-toggle-row">
<label class="ef-toggle-label" for="showDivider">Show divider line</label>
<label class="ef-toggle" aria-label="Toggle divider line">
<input type="checkbox" id="showDivider" checked role="switch" />
<span class="ef-toggle-track"><span class="ef-toggle-thumb"></span></span>
</label>
</div>
<div class="ef-toggle-row">
<label class="ef-toggle-label" for="showAvatar">Show avatar/photo</label>
<label class="ef-toggle" aria-label="Toggle avatar display">
<input type="checkbox" id="showAvatar" checked role="switch" />
<span class="ef-toggle-track"><span class="ef-toggle-thumb"></span></span>
</label>
</div>
<div class="ef-toggle-row">
<label class="ef-toggle-label" for="showIcons">Show social icons</label>
<label class="ef-toggle" aria-label="Toggle social icons">
<input type="checkbox" id="showIcons" checked role="switch" />
<span class="ef-toggle-track"><span class="ef-toggle-thumb"></span></span>
</label>
</div>
<div class="ef-toggle-row">
<label class="ef-toggle-label" for="showTagline">Show tagline</label>
<label class="ef-toggle" aria-label="Toggle tagline">
<input type="checkbox" id="showTagline" checked role="switch" />
<span class="ef-toggle-track"><span class="ef-toggle-thumb"></span></span>
</label>
</div>
</div>
<!-- ── Tab: Social ─────────────────────────────── -->
<div class="ef-tab-panel" id="panel-social" role="tabpanel" hidden>
<div class="ef-section-label">Social & Professional Links</div>
<div class="ef-field">
<label class="ef-label ef-label-icon" for="linkedin">
<svg width="13" height="13" viewBox="0 0 24 24" fill="currentColor"><path d="M16 8a6 6 0 016 6v7h-4v-7a2 2 0 00-2-2 2 2 0 00-2 2v7h-4v-7a6 6 0 016-6zM2 9h4v12H2z"/><circle cx="4" cy="4" r="2"/></svg>
LinkedIn
</label>
<input class="ef-input" type="url" id="linkedin" placeholder="https://linkedin.com/in/yourprofile" />
</div>
<div class="ef-field">
<label class="ef-label ef-label-icon" for="twitter">
<svg width="13" height="13" viewBox="0 0 24 24" fill="currentColor"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>
X / Twitter
</label>
<input class="ef-input" type="url" id="twitter" placeholder="https://x.com/yourhandle" />
</div>
<div class="ef-field">
<label class="ef-label ef-label-icon" for="instagram">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none"><rect x="2" y="2" width="20" height="20" rx="5" stroke="currentColor" stroke-width="1.7"/><circle cx="12" cy="12" r="4" stroke="currentColor" stroke-width="1.7"/><circle cx="17.5" cy="6.5" r="1" fill="currentColor"/></svg>
Instagram
</label>
<input class="ef-input" type="url" id="instagram" placeholder="https://instagram.com/yourhandle" />
</div>
<div class="ef-field">
<label class="ef-label ef-label-icon" for="github">
<svg width="13" height="13" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.477 2 2 6.477 2 12c0 4.42 2.865 8.166 6.839 9.489.5.092.682-.217.682-.482 0-.237-.008-.866-.013-1.7-2.782.604-3.369-1.34-3.369-1.34-.454-1.156-1.11-1.463-1.11-1.463-.908-.62.069-.608.069-.608 1.003.07 1.531 1.03 1.531 1.03.892 1.529 2.341 1.087 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.11-4.555-4.943 0-1.091.39-1.984 1.029-2.683-.103-.253-.446-1.27.098-2.647 0 0 .84-.268 2.75 1.026A9.578 9.578 0 0112 6.836c.85.004 1.705.115 2.504.337 1.909-1.294 2.747-1.026 2.747-1.026.546 1.377.203 2.394.1 2.647.64.699 1.028 1.592 1.028 2.683 0 3.842-2.339 4.687-4.566 4.935.359.309.678.919.678 1.852 0 1.336-.012 2.415-.012 2.741 0 .267.18.578.688.48C19.138 20.163 22 16.418 22 12c0-5.523-4.477-10-10-10z"/></svg>
GitHub
</label>
<input class="ef-input" type="url" id="github" placeholder="https://github.com/yourusername" />
</div>
<div class="ef-field">
<label class="ef-label ef-label-icon" for="dribbble">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="1.7"/><path d="M8.5 3.5C9.5 7 11 11 14 13.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M3.5 10.5c3 .5 7 .5 10 2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M15.5 3.5c.5 3 0 8-2 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>
Dribbble
</label>
<input class="ef-input" type="url" id="dribbble" placeholder="https://dribbble.com/yourprofile" />
</div>
<div class="ef-field">
<label class="ef-label ef-label-icon" for="youtube">
<svg width="13" height="13" viewBox="0 0 24 24" fill="currentColor"><path d="M22.54 6.42a2.78 2.78 0 00-1.95-1.96C18.88 4 12 4 12 4s-6.88 0-8.59.46a2.78 2.78 0 00-1.95 1.96A29 29 0 001 12a29 29 0 00.46 5.58A2.78 2.78 0 003.41 19.6C5.12 20 12 20 12 20s6.88 0 8.59-.46a2.78 2.78 0 001.95-1.95A29 29 0 0023 12a29 29 0 00-.46-5.58zM9.75 15.02V8.98L15.5 12l-5.75 3.02z"/></svg>
YouTube
</label>
<input class="ef-input" type="url" id="youtube" placeholder="https://youtube.com/@yourchannel" />
</div>
<div class="ef-field">
<label class="ef-label ef-label-icon" for="calendly">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none"><rect x="3" y="4" width="18" height="18" rx="2" stroke="currentColor" stroke-width="1.7"/><path d="M3 9h18M8 2v4M16 2v4" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"/></svg>
Book a Meeting
</label>
<input class="ef-input" type="url" id="calendly" placeholder="https://calendly.com/yourlink" />
</div>
<div class="ef-field">
<label class="ef-label ef-label-icon" for="whatsapp">
<svg width="13" height="13" viewBox="0 0 24 24" fill="currentColor"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347z"/><path d="M12 2C6.477 2 2 6.477 2 12c0 1.89.525 3.66 1.438 5.168L2 22l4.984-1.406A9.962 9.962 0 0012 22c5.523 0 10-4.477 10-10S17.523 2 12 2z"/></svg>
WhatsApp
</label>
<input class="ef-input" type="tel" id="whatsapp" placeholder="+1 555 000 0000" />
</div>
</div>
<!-- ── Tab: AI Magic ────────────────────────────── -->
<div class="ef-tab-panel" id="panel-ai" role="tabpanel" hidden>
<div class="ef-ai-hero">
<div class="ef-ai-icon" aria-hidden="true">
<svg width="32" height="32" viewBox="0 0 32 32" fill="none">
<path d="M16 4L19 12H28L21 17.5L24 26L16 21L8 26L11 17.5L4 12H13L16 4Z" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/>
</svg>
</div>
<h2 class="ef-ai-title">AI Signature Builder</h2>
<p class="ef-ai-desc">Enter just three details. EmailForge's AI will craft a complete, polished professional signature instantly.</p>
</div>
<div class="ef-ai-form">
<div class="ef-field">
<label class="ef-label" for="aiName">Your Full Name <span class="ef-required">*</span></label>
<input class="ef-input" type="text" id="aiName" placeholder="e.g. Marcus Webb" />
</div>
<div class="ef-field">
<label class="ef-label" for="aiTitle">Job Title <span class="ef-required">*</span></label>
<input class="ef-input" type="text" id="aiTitle" placeholder="e.g. Senior Product Designer" />
</div>
<div class="ef-field">
<label class="ef-label" for="aiCompany">Company <span class="ef-required">*</span></label>
<input class="ef-input" type="text" id="aiCompany" placeholder="e.g. Vertex Labs" />
</div>
<div class="ef-field">
<label class="ef-label" for="aiTone">Tone & Style</label>
<select class="ef-select" id="aiTone" aria-label="AI generation tone">
<option value="executive">Executive — authoritative & polished</option>
<option value="creative">Creative — bold & memorable</option>
<option value="minimal">Minimal — clean & refined</option>
<option value="warm">Warm — approachable & friendly</option>
<option value="technical">Technical — precise & professional</option>
</select>
</div>
<button class="ef-btn-ai" id="generateAiBtn" aria-label="Generate AI signature">
<span class="ef-btn-ai-icon" aria-hidden="true">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M8 2L9.5 6H14L10.5 8.5L12 13L8 10.5L4 13L5.5 8.5L2 6H6.5L8 2Z" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round"/></svg>
</span>
<span id="aiBtnText">Generate My Signature</span>
<span class="ef-btn-ai-shine" aria-hidden="true"></span>
</button>
<div class="ef-ai-status" id="aiStatus" aria-live="polite" aria-atomic="true"></div>
</div>
<div class="ef-divider"></div>
<div class="ef-section-label">What AI Fills For You</div>
<ul class="ef-ai-features" aria-label="AI-generated features list">
<li><span class="ef-check" aria-hidden="true">✦</span> Smart email address generation</li>
<li><span class="ef-check" aria-hidden="true">✦</span> Professional website URL</li>
<li><span class="ef-check" aria-hidden="true">✦</span> Phone number placeholder</li>
<li><span class="ef-check" aria-hidden="true">✦</span> Tailored personal tagline</li>
<li><span class="ef-check" aria-hidden="true">✦</span> LinkedIn & Twitter handles</li>
<li><span class="ef-check" aria-hidden="true">✦</span> Best-fit template selection</li>
</ul>
</div>
</aside>
<!-- ── RIGHT PANEL: Preview & Export ──────────────── -->
<section class="ef-panel ef-panel-right" aria-label="Signature Preview & Export">
<!-- Preview Header -->
<div class="ef-preview-header">
<div class="ef-preview-title-row">
<span class="ef-preview-title">Live Preview</span>
<div class="ef-preview-client-tabs" role="tablist" aria-label="Email client preview">
<button class="ef-client-tab ef-client-active" data-client="gmail" role="tab" aria-selected="true">Gmail</button>
<button class="ef-client-tab" data-client="outlook" role="tab" aria-selected="false">Outlook</button>
<button class="ef-client-tab" data-client="apple" role="tab" aria-selected="false">Apple Mail</button>
</div>
</div>
<!-- Mock email chrome -->
<div class="ef-email-chrome" aria-hidden="true">
<div class="ef-email-chrome-dots">
<span></span><span></span><span></span>
</div>
<div class="ef-email-chrome-address" id="clientLabel">Gmail — Compose</div>
</div>
</div>
<!-- Email Mock Body -->
<div class="ef-email-mock" role="region" aria-label="Email preview window">
<div class="ef-email-body">
<div class="ef-email-to">
<span class="ef-email-label">To:</span>
<span class="ef-email-val">sarah.johnson@acmecorp.com</span>
</div>
<div class="ef-email-subject">
<span class="ef-email-label">Subject:</span>
<span class="ef-email-val">Following up on our conversation</span>
</div>
<div class="ef-email-content">
<p>Hi Sarah,</p>
<p>Thanks for taking the time to meet yesterday. I've outlined our proposal below and would love to discuss the next steps at your earliest convenience.</p>
<p>Looking forward to hearing from you.</p>
<p>Best regards,</p>
</div>
<div class="ef-signature-wrapper" id="signatureWrapper">
<!-- Signature injected here by JS -->
</div>
</div>
</div>
<!-- Export Bar -->
<div class="ef-export-bar">
<div class="ef-export-label" aria-label="Export options">Export Signature:</div>
<div class="ef-export-actions">
<button class="ef-btn-export ef-btn-primary-export" id="copyHtmlBtn" title="Copy raw HTML code" aria-label="Copy HTML code">
<svg width="13" height="13" viewBox="0 0 16 16" fill="none"><path d="M10.5 2H13a1 1 0 011 1v10a1 1 0 01-1 1H3a1 1 0 01-1-1V3a1 1 0 011-1h2.5" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/><rect x="5" y="1" width="6" height="3" rx="1" stroke="currentColor" stroke-width="1.4"/></svg>
Copy HTML
</button>
<button class="ef-btn-export" id="copyGmailBtn" title="Copy optimized for Gmail" aria-label="Copy for Gmail">
<svg width="13" height="13" viewBox="0 0 16 16" fill="none"><rect x="2" y="3" width="12" height="10" rx="1.5" stroke="currentColor" stroke-width="1.4"/><path d="M2 5l6 4 6-4" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round"/></svg>
Gmail
</button>
<button class="ef-btn-export" id="copyOutlookBtn" title="Copy optimized for Outlook" aria-label="Copy for Outlook">
<svg width="13" height="13" viewBox="0 0 16 16" fill="none"><rect x="1" y="4" width="9" height="8" rx="1.5" stroke="currentColor" stroke-width="1.4"/><path d="M10 6l5-3v10l-5-3" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round"/></svg>
Outlook
</button>
<button class="ef-btn-export ef-btn-plain" id="copyPlainBtn" title="Copy as plain text" aria-label="Copy plain text">
<svg width="13" height="13" viewBox="0 0 16 16" fill="none"><path d="M3 4h10M3 7h8M3 10h6" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg>
Plain Text
</button>
</div>
</div>
<!-- Toast Notification -->
<div class="ef-toast" id="toastNotif" role="status" aria-live="polite" aria-atomic="true"></div>
<!-- HTML Code Panel -->
<div class="ef-code-panel" id="codePanel">
<div class="ef-code-panel-header">
<span>Generated HTML</span>
<button class="ef-btn-ghost ef-close-code" id="closeCodePanel" aria-label="Close code panel">✕</button>
</div>
<pre class="ef-code-pre" id="codeOutput" tabindex="0" aria-label="Signature HTML code"></pre>
</div>
</section>
</div>
</main>
<!-- ─── PROFILE NAME MODAL ─────────────────────────── -->
<div class="ef-modal-overlay" id="modalOverlay" role="dialog" aria-modal="true" aria-label="Name your signature profile" hidden>
<div class="ef-modal">
<h3 class="ef-modal-title">Name Your Signature</h3>
<p class="ef-modal-desc">Give this profile a name so you can find it easily later.</p>
<input class="ef-input ef-modal-input" type="text" id="profileNameInput" placeholder="e.g. Sales, Support, Personal..." maxlength="40" aria-label="Profile name" />
<div class="ef-modal-actions">
<button class="ef-btn-secondary" id="cancelModal">Cancel</button>
<button class="ef-btn-primary" id="saveModal">Save Profile</button>
</div>
</div>
</div>
<!-- ─── SCRIPTS ─────────────────────────────────────── -->
<script src="js/utils.js"></script>
<script src="js/signature-generator.js"></script>
<script src="js/preview-renderer.js"></script>
<script src="js/copy-utils.js"></script>
<script src="js/ai-signature-builder.js"></script>
<script src="js/main.js"></script>
</body>
</html>