-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
628 lines (568 loc) · 42.8 KB
/
index.html
File metadata and controls
628 lines (568 loc) · 42.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
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SwiftQR 3D Studio — Advanced QR Design Station</title>
<meta name="description" content="Generate and style professional 3D Glassmorphism QR codes with custom eyes, logo masking, and vCard social profile embedding.">
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
glass: 'rgba(255, 255, 255, 0.03)',
'glass-border': 'rgba(255, 255, 255, 0.08)'
},
borderRadius: {
'4xl': '2rem',
'5xl': '2.5rem'
}
}
}
}
</script>
<!-- Custom Style -->
<link rel="stylesheet" href="style.css">
<!-- PWA Manifest -->
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#312e81">
<!-- Fonts -->
<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=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap" rel="stylesheet">
<style>
body { font-family: 'Plus Jakarta Sans', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
</style>
</head>
<body class="overflow-x-hidden selection:bg-indigo-500/30">
<!-- ─── Background Layer ─── -->
<div class="mesh-container">
<div class="mesh-blob blob-1"></div>
<div class="mesh-blob blob-2"></div>
<div class="mesh-blob blob-3"></div>
<div class="mesh-blob blob-4"></div>
</div>
<!-- ─── Main Interface ─── -->
<div class="relative z-10 min-h-screen flex flex-col pt-6 lg:pt-0">
<!-- Header -->
<header class="px-6 lg:px-12 flex items-center justify-between h-20 shrink-0">
<div class="flex items-center gap-3">
<div class="w-10 h-10 bg-white/5 rounded-xl flex items-center justify-center border border-white/10 glass">
<img src="icon.svg" class="w-6 h-6" alt="Logo">
</div>
<h1 class="text-lg font-extrabold tracking-tighter text-white uppercase italic">
Swift<span class="text-indigo-400">QR</span> <span class="text-[10px] font-black text-white/20 tracking-widest pl-2">3D_STUDIO</span>
</h1>
</div>
<div class="flex items-center gap-6">
<!-- Theme Toggle -->
<div id="theme-toggle" class="theme-switch">
<div class="theme-dot">🌙</div>
</div>
<button class="hidden md:flex items-center gap-2 px-5 py-2.5 rounded-full bg-white/5 border border-white/10 glass hover:bg-white/10 transition-all">
<span class="w-2 h-2 rounded-full bg-green-400 animate-pulse"></span>
<span class="text-[10px] font-bold text-white/60 tracking-widest uppercase">Live_Station</span>
</button>
</div>
</header>
<main class="flex-1 flex flex-col lg:flex-row gap-6 p-6 lg:p-12 lg:pt-2 max-w-[1920px] mx-auto w-full">
<!-- ─── Left Panel: Navigation & Controls ─── -->
<aside class="lg:w-24 flex lg:flex-col gap-4 order-2 lg:order-1">
<nav class="glass-sidebar flex-1 flex lg:flex-col p-3 rounded-3xl lg:rounded-5xl items-center justify-between lg:justify-start gap-4">
<button class="tab-btn active w-14 h-14 rounded-2xl transition-all" data-tab="url">
<i data-lucide="link-2" class="w-6 h-6"></i>
</button>
<button class="tab-btn w-14 h-14 rounded-2xl transition-all" data-tab="wifi">
<i data-lucide="wifi" class="w-6 h-6"></i>
</button>
<button class="tab-btn w-14 h-14 rounded-2xl transition-all" data-tab="vcard">
<i data-lucide="contact" class="w-6 h-6"></i>
</button>
<button class="tab-btn w-14 h-14 rounded-2xl transition-all" data-tab="whatsapp">
<i data-lucide="message-circle" class="w-6 h-6"></i>
</button>
<div class="lg:mt-auto hidden lg:block">
<div class="w-14 h-14 rounded-2xl flex items-center justify-center text-white/5 opacity-50">
<i data-lucide="fingerprint" class="w-6 h-6"></i>
</div>
</div>
</nav>
</aside>
<!-- ─── Center Panel: Form Fields ─── -->
<section class="flex-1 min-w-0 order-3 lg:order-2">
<div class="glass-card rounded-5xl p-8 lg:p-12 h-fit mb-6">
<!-- URL Content -->
<div id="url-content" class="tab-content transition-all duration-500">
<div class="flex items-center gap-4 mb-8">
<div class="p-3 bg-indigo-500/10 rounded-xl text-indigo-400">
<i data-lucide="globe" class="w-5 h-5"></i>
</div>
<div>
<h2 class="text-sm font-bold text-white tracking-widest uppercase mb-0.5">Dynamic URL</h2>
<p class="text-[10px] text-white/40 tracking-wider">Encode links, deep-links or social pages</p>
</div>
</div>
<input type="url" id="input-url" placeholder="https://your-amazing-link.com"
class="glass-input w-full p-6 h-20 rounded-3xl text-lg font-medium">
</div>
<!-- WiFi Content -->
<div id="wifi-content" class="tab-content hidden transition-all duration-500">
<div class="flex items-center gap-4 mb-8">
<div class="p-3 bg-indigo-500/10 rounded-xl text-indigo-400">
<i data-lucide="wifi" class="w-5 h-5"></i>
</div>
<div>
<h2 class="text-sm font-bold text-white tracking-widest uppercase mb-0.5">WiFi Network</h2>
<p class="text-[10px] text-white/40 tracking-wider">Fast scan-to-connect credentials</p>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div class="space-y-3">
<label class="text-[9px] font-black text-white/30 tracking-[0.2em] uppercase pl-4">Network SSID</label>
<input type="text" id="wifi-ssid" placeholder="Home_Base_2.4G" class="glass-input w-full p-5 rounded-2xl">
</div>
<div class="space-y-3">
<label class="text-[9px] font-black text-white/30 tracking-[0.2em] uppercase pl-4">Security</label>
<select id="wifi-enc" class="glass-input w-full p-5 rounded-2xl h-[62px]">
<option value="WPA">WPA/WPA2</option>
<option value="WEP">WEP</option>
<option value="nopass">None</option>
</select>
</div>
<div class="md:col-span-2 space-y-3">
<label class="text-[9px] font-black text-white/30 tracking-[0.2em] uppercase pl-4">Password</label>
<input type="password" id="wifi-pass" placeholder="••••••••••••" class="glass-input w-full p-5 rounded-2xl">
</div>
</div>
</div>
<!-- vCard Content -->
<div id="vcard-content" class="tab-content hidden transition-all duration-500">
<div class="flex items-center justify-between mb-8">
<div class="flex items-center gap-4">
<div class="p-3 bg-indigo-500/10 rounded-xl text-indigo-400">
<i data-lucide="user" class="w-5 h-5"></i>
</div>
<div>
<h2 class="text-sm font-bold text-white tracking-widest uppercase mb-0.5">Advanced vCard</h2>
<p class="text-[10px] text-white/40 tracking-wider italic">Social Link Bundle Supported</p>
</div>
</div>
<!-- Counter Badge -->
<div id="vcard-badge" class="hidden flex items-center gap-3 glass bg-white/5 border border-white/10 px-4 py-2 rounded-2xl animate-pulse">
<div class="w-2 h-2 rounded-full bg-indigo-400"></div>
<span id="vcard-counter" class="text-[10px] font-mono text-white/60 tracking-tighter">0_CHAR</span>
</div>
</div>
<!-- Density Warning -->
<div id="high-density-alert" class="hidden density-alert mb-8">
<i data-lucide="zap" class="w-4 h-4 text-amber-400"></i>
<div class="alert-text">High-Density Mode: Image included. ERROR_CORRECTION set to 'HIGH' automatically.</div>
</div>
<div class="space-y-10">
<!-- Photo + Primary Info -->
<div class="flex flex-col md:flex-row gap-8 items-start">
<div class="relative group">
<div id="profile-avatar-wrap" class="profile-avatar-wrap outline outline-offset-4 outline-white/5 transition-all group-hover:outline-indigo-500/30">
<div id="profile-avatar-placeholder" class="text-white/20">
<i data-lucide="camera" class="w-8 h-8"></i>
</div>
<img id="profile-avatar-img" src="" class="hidden">
</div>
<input type="file" id="profile-photo-upload" class="hidden" accept="image/*">
<button onclick="document.getElementById('profile-photo-upload').click()"
class="absolute -bottom-2 -right-2 w-8 h-8 rounded-full bg-indigo-500 flex items-center justify-center text-white shadow-xl hover:scale-110 active:scale-95 transition-all">
<i data-lucide="plus" class="w-4 h-4"></i>
</button>
<button id="clear-profile-photo" class="hidden absolute -top-2 -right-2 w-7 h-7 rounded-full bg-red-500/80 backdrop-blur-md flex items-center justify-center text-white hover:bg-red-600 transition-all">
<i data-lucide="x" class="w-3 h-3"></i>
</button>
</div>
<div class="flex-1 grid grid-cols-1 md:grid-cols-2 gap-4 w-full">
<input type="text" id="vcard-fn" placeholder="First Name" class="glass-input w-full p-4 rounded-xl text-sm">
<input type="text" id="vcard-ln" placeholder="Last Name" class="glass-input w-full p-4 rounded-xl text-sm">
<input type="text" id="vcard-job" placeholder="Role / Title" class="glass-input w-full p-4 rounded-xl text-sm md:col-span-2">
</div>
</div>
<!-- Detailed Info -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<input type="tel" id="vcard-phone" placeholder="Mobile Number" class="glass-input w-full p-4 rounded-xl text-sm">
<input type="email" id="vcard-email" placeholder="Email Address" class="glass-input w-full p-4 rounded-xl text-sm">
<input type="text" id="vcard-company" placeholder="Organization" class="glass-input w-full p-4 rounded-xl text-sm">
<input type="url" id="vcard-website" placeholder="Website" class="glass-input w-full p-4 rounded-xl text-sm">
</div>
<!-- Social Bundle -->
<div class="space-y-4">
<h3 class="text-[9px] font-black text-white/20 tracking-[0.3em] uppercase pl-1">Social_Link_Bundle</h3>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div class="social-row">
<div class="social-icon-wrap text-blue-400"><i data-lucide="linkedin" class="w-5 h-5"></i></div>
<input type="url" id="vcard-linkedin" placeholder="LinkedIn Profile Link" class="glass-input flex-1 p-3.5 rounded-xl text-xs">
</div>
<div class="social-row">
<div class="social-icon-wrap text-pink-400"><i data-lucide="instagram" class="w-5 h-5"></i></div>
<input type="url" id="vcard-instagram" placeholder="@instagram_handle" class="glass-input flex-1 p-3.5 rounded-xl text-xs">
</div>
<div class="social-row md:col-span-2">
<div class="social-icon-wrap text-green-400"><i data-lucide="phone" class="w-5 h-5"></i></div>
<input type="tel" id="vcard-wa-social" placeholder="WhatsApp (Intl. Format)" class="glass-input flex-1 p-3.5 rounded-xl text-xs">
</div>
</div>
</div>
<button id="contact-preview-btn" class="contact-preview-cta">
<i data-lucide="eye" class="w-4 h-4"></i>
Open Contact Card Preview
</button>
</div>
<!-- Warning Msg -->
<div id="vcard-density-warning" class="hidden mt-6 p-4 rounded-2xl bg-amber-500/5 border border-amber-500/10 flex items-center gap-4">
<i data-lucide="alert-triangle" class="w-5 h-5 text-amber-500"></i>
<p class="text-[10px] text-amber-500/80 leading-relaxed font-bold tracking-tight">Large payload detected. Ensuring 'QUARTILE' scan recovery. Use high-res exports for print.</p>
</div>
</div>
<!-- WhatsApp Content -->
<div id="whatsapp-content" class="tab-content hidden transition-all duration-500">
<div class="flex items-center gap-4 mb-8">
<div class="p-3 bg-indigo-500/10 rounded-xl text-indigo-400">
<i data-lucide="message-square" class="w-5 h-5"></i>
</div>
<div>
<h2 class="text-sm font-bold text-white tracking-widest uppercase mb-0.5">Quick Comms</h2>
<p class="text-[10px] text-white/40 tracking-wider">Direct WhatsApp deep linking</p>
</div>
</div>
<div class="space-y-6">
<div class="space-y-3">
<label class="text-[9px] font-black text-white/30 tracking-[0.2em] uppercase pl-4">Phone Number</label>
<input type="tel" id="wa-phone" placeholder="+123 456 7890" class="glass-input w-full p-5 rounded-2xl">
</div>
<div class="space-y-3">
<label class="text-[9px] font-black text-white/30 tracking-[0.2em] uppercase pl-4">Pre-filled Message</label>
<textarea id="wa-msg" rows="3" placeholder="Hello! I found your contact on SwiftQR..." class="glass-input w-full p-5 rounded-2xl resize-none"></textarea>
</div>
</div>
</div>
</div>
<!-- ─── Styling Accordion ─── -->
<div class="glass-card rounded-4xl overflow-hidden mb-6">
<button id="accordion-toggle" class="w-full flex items-center justify-between p-7 hover:bg-white/5 transition-colors">
<div class="flex items-center gap-4">
<div class="p-2 bg-white/5 rounded-lg border border-white/10 glass">
<i data-lucide="swatchbook" class="w-4 h-4 text-white/60"></i>
</div>
<span class="text-xs font-black tracking-[0.3em] text-white uppercase italic">Advanced_Styling</span>
</div>
<i data-lucide="chevron-down" class="w-5 h-5 text-white/20 accordion-icon transition-transform"></i>
</button>
<div id="accordion-content" class="overflow-hidden transition-all duration-500 max-h-0">
<div class="p-8 pt-0 space-y-10">
<!-- Dot & Corner Patterns -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="space-y-3">
<label class="text-[10px] font-black text-white/20 tracking-[0.2em] uppercase block">Scanner Dots</label>
<select id="dot-style" class="glass-input w-full p-4 rounded-xl text-xs font-bold">
<option value="square">Square</option>
<option value="dots">Dots</option>
<option value="rounded">Rounded</option>
<option value="extra-rounded">Classic Smooth</option>
<option value="classy">Organic Flux</option>
</select>
</div>
<div class="space-y-3">
<label class="text-[10px] font-black text-white/20 tracking-[0.2em] uppercase block">Corner Frame</label>
<select id="corner-square-type" class="glass-input w-full p-4 rounded-xl text-xs font-bold">
<option value="square">Square</option>
<option value="dot">Circular</option>
<option value="extra-rounded">Extra Rounded</option>
</select>
</div>
<div class="space-y-3">
<label class="text-[10px] font-black text-white/20 tracking-[0.2em] uppercase block">Corner Dot</label>
<select id="corner-dot-type" class="glass-input w-full p-4 rounded-xl text-xs font-bold">
<option value="square">Square</option>
<option value="dot">Circular</option>
</select>
</div>
</div>
<!-- Custom Colors -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-10">
<div class="space-y-6">
<div class="flex items-center justify-between mb-2">
<label class="text-[10px] font-black text-white/20 tracking-[0.2em] uppercase block">QR Pattern Engine</label>
<div class="flex bg-white/5 p-1 rounded-xl glass border border-white/10">
<button class="color-mode-btn active-glass px-4 py-1.5 rounded-lg text-[9px] font-black tracking-widest uppercase transition-all" data-target="qr" data-type="solid">Solid</button>
<button class="color-mode-btn text-white/40 px-4 py-1.5 rounded-lg text-[9px] font-black tracking-widest uppercase transition-all hover:bg-white/5" data-target="qr" data-type="gradient">Gradient</button>
</div>
</div>
<div class="flex items-center gap-4">
<div class="flex-1 p-5 bg-white/5 border border-white/10 rounded-2xl flex items-center justify-between">
<div class="flex items-center gap-4">
<input type="color" id="qr-color-1" value="#0f172a" class="w-8 h-8 rounded-lg bg-transparent cursor-pointer border-none p-0 outline-none">
<span class="text-[10px] font-mono text-white/40 tracking-wider">PRIMARY_HEX</span>
</div>
<div id="qr-gradient-controls" class="hidden flex items-center gap-4">
<input type="color" id="qr-color-2" value="#312e81" class="w-8 h-8 rounded-lg bg-transparent cursor-pointer border-none p-0 outline-none">
<select id="gradient-type" class="glass-input bg-transparent border-none p-1 text-[10px] font-bold text-white/60">
<option value="linear">Linear</option>
<option value="radial">Radial</option>
</select>
</div>
</div>
</div>
<div id="qr-rotation-control" class="hidden space-y-4">
<div class="flex justify-between items-center text-[9px] font-black text-white/10 tracking-[0.2em] uppercase">
<span>Gradient Rotation</span>
<span id="qr-rotation-val" class="font-mono text-white/30">0°</span>
</div>
<input type="range" id="qr-rotation" min="0" max="360" value="0" class="glass-range w-full">
</div>
</div>
<div class="space-y-6">
<label class="text-[10px] font-black text-white/20 tracking-[0.2em] uppercase block mb-6">Corner Eyes Branding</label>
<div class="grid grid-cols-2 gap-4">
<div class="p-4 bg-white/5 border border-white/10 rounded-xl flex items-center gap-3">
<input type="color" id="eye-frame-color" value="#0f172a" class="w-7 h-7 rounded-lg bg-transparent cursor-pointer border-none p-0">
<span class="text-[9px] font-bold text-white/40">FRAME</span>
</div>
<div class="p-4 bg-white/5 border border-white/10 rounded-xl flex items-center gap-3">
<input type="color" id="eye-dot-color" value="#0f172a" class="w-7 h-7 rounded-lg bg-transparent cursor-pointer border-none p-0">
<span class="text-[9px] font-bold text-white/40">INNER</span>
</div>
</div>
</div>
</div>
<!-- Logo Station -->
<div class="border-t border-white/5 pt-10 grid grid-cols-1 md:grid-cols-2 gap-12">
<div class="space-y-6">
<div class="flex items-center justify-between">
<label class="text-[10px] font-black text-white/20 tracking-[0.2em] uppercase pl-1">Logo Center Station</label>
<button id="magic-wand-btn" class="hidden magic-wand-btn" title="Extract Palette from Logo">
<i data-lucide="wand-2" class="w-5 h-5"></i>
</button>
</div>
<div class="flex items-center gap-4">
<div class="flex-1 relative group">
<div class="w-full h-16 rounded-2xl glass border border-white/10 bg-white/5 flex items-center justify-center gap-3 cursor-pointer group-hover:border-indigo-500/30 transition-all overflow-hidden" onclick="document.getElementById('logo-upload').click()">
<i data-lucide="upload" class="w-4 h-4 text-white/30"></i>
<span class="text-[10px] font-bold text-white/20 tracking-widest uppercase">Upload_Logo</span>
</div>
<input type="file" id="logo-upload" class="hidden" accept="image/*">
<button id="clear-logo" class="hidden absolute top-0 right-0 p-2 text-white/30 hover:text-red-400 transition-colors">
<i data-lucide="trash-2" class="w-3 h-3"></i>
</button>
</div>
</div>
<!-- Logo Masking Pill -->
<div class="space-y-3">
<span class="text-[9px] font-black text-white/10 tracking-[0.25em] uppercase block pl-1">Logo Integration Mask</span>
<div class="mask-pill">
<button class="mask-btn active-mask" data-mask="overlay">None</button>
<button class="mask-btn" data-mask="square">Square Cut</button>
<button class="mask-btn" data-mask="circle">Circle Cut</button>
</div>
</div>
</div>
<div class="space-y-6">
<div class="flex justify-between items-center text-[9px] font-black text-white/20 tracking-[0.2em] uppercase pl-1">
<span>Logo White Clearance</span>
<div id="logo-bg-toggle" class="toggle-wrap">
<div class="toggle-dot"></div>
</div>
</div>
<div class="space-y-4">
<div class="flex justify-between items-center text-[9px] font-black text-white/10 tracking-[0.2em] uppercase">
<span>Safety Margin</span>
<span id="logo-margin-val" class="font-mono text-white/30">10px</span>
</div>
<input type="range" id="logo-margin" min="0" max="40" value="10" class="glass-range w-full">
</div>
</div>
</div>
</div>
</div>
</div>
<!-- History Feed -->
<div class="glass-card rounded-4xl p-8 pb-4">
<div class="flex items-center justify-between mb-8">
<div class="flex items-center gap-4">
<i data-lucide="clock" class="w-4 h-4 text-white/20"></i>
<span class="text-xs font-black tracking-[0.3em] text-white uppercase italic">Design_History</span>
</div>
<button id="clear-history" class="text-[10px] font-black text-white/10 tracking-widest uppercase hover:text-red-400 transition-colors">Wipe_Log</button>
</div>
<div id="history-container" class="grid grid-cols-1 md:grid-cols-2 gap-4 max-h-[400px] overflow-y-auto pr-2 custom-scrollbar">
<!-- History Items Empty State -->
<div id="no-history" class="md:col-span-2 py-12 flex flex-col items-center justify-center text-center opacity-30">
<i data-lucide="archive" class="w-10 h-10 mb-4 opacity-50"></i>
<span class="text-[10px] font-black tracking-[0.4em] uppercase">Void_Index_Null</span>
</div>
</div>
</div>
</section>
<!-- ─── Right Panel: Export & Preview ─── -->
<aside class="lg:w-[460px] flex flex-col gap-6 order-1 lg:order-3">
<div class="glass-card rounded-[3rem] p-4 pt-10 sticky top-12 flex flex-col">
<!-- Preview Toggle Station -->
<div class="flex justify-center mb-8">
<div class="inline-flex glass bg-white/5 border border-white/10 p-1 rounded-2xl">
<button id="toggle-mockup" class="group relative px-6 py-3 rounded-xl transition-all duration-500 hover:bg-white/5">
<div class="flex items-center gap-3">
<div class="w-2 h-2 rounded-full bg-white/20 transition-all group-[.active]:bg-indigo-400 group-[.active]:shadow-[0_0_10px_rgba(99,102,241,0.5)]"></div>
<span class="text-[10px] font-black tracking-[0.3em] text-white/40 group-[.active]:text-white uppercase transition-colors italic">Studio_Mockup</span>
</div>
</button>
</div>
</div>
<!-- Display Canvas -->
<div class="relative px-6">
<!-- Standard Preview -->
<div id="standard-view" class="aspect-square bg-white rounded-[2rem] overflow-hidden shadow-2xl relative group transition-all duration-700">
<div class="absolute inset-0 z-10 flex items-center justify-center p-8">
<div id="qr-preview" class="w-full h-full flex items-center justify-center"></div>
</div>
<div class="absolute bottom-6 left-1/2 -translate-x-1/2 z-20 flex items-center gap-2 px-4 py-2 bg-indigo-950/80 backdrop-blur-md rounded-full border border-white/10 opacity-0 group-hover:opacity-100 transition-all scale-95 group-hover:scale-100">
<span class="w-1.5 h-1.5 rounded-full bg-indigo-400"></span>
<span id="ecc-display" class="text-[9px] font-black text-white tracking-[0.2em] font-mono">MEDIUM</span>
</div>
<div class="absolute inset-0 bg-gradient-to-tr from-indigo-500/5 to-transparent pointer-events-none"></div>
</div>
<!-- 3D Mockup View -->
<div id="mockup-view" class="hidden aspect-square perspective-deep group">
<div class="w-full h-full transform-style-3d hover-rotate transition-all duration-700 ease-out flex items-center justify-center">
<div class="glass-mockup-card w-full h-full rounded-[2.5rem] relative transform translate-z-10 group-hover:shadow-[0_80px_160px_rgba(0,0,0,0.4)] overflow-hidden transition-all duration-700 flex items-center justify-center p-12">
<div class="absolute inset-0 glass-shimmer mix-blend-overlay pointer-events-none opacity-40"></div>
<img id="mockup-qr-img" src="" alt="3D View" class="w-full aspect-square object-contain drop-shadow-[0_20px_40px_rgba(0,0,0,0.25)]">
<div class="absolute bottom-10 flex flex-col items-center gap-2 opacity-30 group-hover:opacity-60 transition-all">
<i data-lucide="box" class="w-4 h-4 text-white"></i>
<span class="text-[8px] font-black tracking-[0.4em] uppercase text-white">X_RAY_ENGINE_V3</span>
</div>
</div>
</div>
</div>
</div>
<!-- Export Kit -->
<div class="p-8 space-y-6">
<div class="space-y-4">
<div class="flex justify-between items-center text-[9px] font-black text-white/30 tracking-[0.2em] uppercase">
<span>Output Definition</span>
<span id="quality-val" class="font-mono text-white/40">1024</span>
</div>
<input type="range" id="export-quality" min="512" max="4096" step="128" value="1024" class="glass-range w-full">
</div>
<div class="grid grid-cols-2 gap-4">
<button id="download-png" class="glass-btn primary h-16 rounded-3xl flex items-center justify-center gap-2 font-black text-[10px] tracking-widest uppercase italic">
<i data-lucide="download" class="w-4 h-4"></i> Get_PNG
</button>
<button id="download-svg" class="glass-btn secondary h-16 rounded-3xl flex items-center justify-center gap-2 font-black text-[10px] tracking-widest uppercase italic">
<i data-lucide="file-code" class="w-4 h-4"></i> Get_SVG
</button>
<button id="download-vcf" class="glass-btn secondary h-16 rounded-3xl flex items-center justify-center gap-2 font-black text-[10px] tracking-widest uppercase italic md:col-span-2">
<i data-lucide="file-user" class="w-4 h-4"></i> Secure_VCard_Export
</button>
</div>
<div class="flex gap-4">
<button id="copy-clipboard" class="flex-1 h-14 rounded-2xl bg-white/5 border border-white/10 glass flex items-center justify-center gap-3 hover:bg-white/10 transition-all group overflow-hidden relative" title="Copy to Clipboard">
<i data-lucide="copy" class="w-4 h-4 text-white/40 group-hover:scale-110 transition-all"></i>
<span class="text-[9px] font-bold text-white/40 uppercase tracking-[0.2em]">Live_Copy</span>
</button>
<button id="reset-btn" class="w-14 h-14 rounded-2xl bg-red-500/5 border border-red-500/10 flex items-center justify-center text-red-500/40 hover:bg-red-500/10 hover:text-red-500 transition-all" title="Reset All Settings">
<i data-lucide="rotate-ccw" class="w-5 h-5"></i>
</button>
</div>
</div>
</div>
</aside>
</main>
<!-- Footer -->
<footer class="glass-footer py-12 px-6 lg:px-12 border-t border-white/5 relative z-10 mt-auto">
<div class="max-w-[1920px] mx-auto flex flex-col md:flex-row items-center justify-between gap-8 opacity-60 transition-opacity hover:opacity-100">
<div class="flex flex-col gap-1">
<div class="text-[10px] font-black tracking-[0.5em] text-white uppercase italic">Swift_QR_Experimental_v3</div>
<div class="text-[9px] font-bold text-white/40 tracking-wider">Engineered by <a href="https://rizvee.github.io" class="text-indigo-400 hover:text-white transition-colors">Hasan Rizvee</a></div>
</div>
<div class="flex items-center gap-10">
<a href="https://github.com/rizvee" class="flex items-center gap-2 text-[10px] font-bold text-white tracking-widest uppercase hover:text-indigo-400 transition-all">
<i data-lucide="github" class="w-3.5 h-3.5"></i> GitHub
</a>
<a href="https://rizvee.github.io" class="flex items-center gap-2 text-[10px] font-bold text-white tracking-widest uppercase hover:text-indigo-400 transition-all">
<i data-lucide="layout" class="w-3.5 h-3.5"></i> Portfolio
</a>
<a href="#" class="hidden md:block text-[10px] font-bold text-white tracking-widest uppercase hover:text-indigo-400 transition-all">Manifesto</a>
</div>
<div class="text-[9px] font-mono text-white/20 whitespace-nowrap">© 2026 — SWIFT_STUDIO_PROTOCOL</div>
</div>
</footer>
</div>
<!-- ─── Contact Preview Modal (iPhone 15 Pro Mirror) ─── -->
<div id="contact-preview-modal" class="hidden preview-modal-overlay">
<button id="close-preview-modal" class="modal-close-btn">
<i data-lucide="x" class="w-6 h-6"></i>
</button>
<div class="iphone-shell scale-[0.85] md:scale-100">
<div class="dynamic-island"></div>
<div class="iphone-screen">
<div class="ios-status-bar">
<div id="ios-time" class="font-bold">9:41</div>
<div class="ios-signal gap-1">
<span class="h-[8px]"></span><span class="h-[10px]"></span><span class="h-[12px]"></span><span class="h-[14px]"></span>
<div class="ml-1 text-[10px]">5G</div>
<div class="ml-2 w-6 h-3 rounded-[3px] border border-black/40 flex items-center p-[1px] relative">
<div class="h-full bg-black rounded-[1px] w-[80%]"></div>
<div class="absolute -right-[3px] w-[2px] h-[4px] bg-black/40 rounded-full"></div>
</div>
</div>
</div>
<div class="ios-nav-bar mt-2">
<div class="ios-back"><i data-lucide="chevron-left" class="w-5 h-5 -ml-1"></i>Contacts</div>
<div class="ios-edit-btn font-semibold">Edit</div>
</div>
<div class="contact-scroll-area">
<div class="ios-contact-header">
<div id="preview-avatar-wrap" class="ios-avatar">
<span id="preview-initials">JD</span>
</div>
<h2 id="preview-name" class="ios-contact-name">John Doe</h2>
<p id="preview-job-info" class="ios-contact-sub">Lead Designer · Swift Studio</p>
</div>
<div class="ios-actions">
<div class="ios-act opacity-50"><i data-lucide="message-circle" class="w-4 h-4 text-blue-500"></i><span class="ios-act-label">message</span></div>
<div class="ios-act"><i data-lucide="phone" class="w-4 h-4 text-blue-500"></i><span class="ios-act-label">call</span></div>
<div class="ios-act opacity-50"><i data-lucide="video" class="w-4 h-4 text-blue-500"></i><span class="ios-act-label">video</span></div>
<div class="ios-act opacity-50"><i data-lucide="mail" class="w-4 h-4 text-blue-500"></i><span class="ios-act-label">mail</span></div>
</div>
<div id="preview-info-section" class="ios-info-section space-y-4">
<!-- Dynamic Info Cards -->
</div>
<div id="preview-social-section" class="ios-info-section space-y-3">
<h3 class="text-[10px] font-bold text-black/40 uppercase pl-1 mb-2">Social Profiles</h3>
<div id="preview-social-card" class="ios-info-card">
<!-- Dynamic Social Rows -->
</div>
</div>
</div>
<div class="ios-home-bar"></div>
</div>
</div>
</div>
<!-- ─── Core Scripts ─── -->
<!-- Dependencies -->
<script src="https://unpkg.com/lucide@latest"></script>
<script src="https://cdn.jsdelivr.net/npm/qr-code-styling@1.5.0/lib/qr-code-styling.js"></script>
<!-- App Logic -->
<script src="app.js"></script>
<script>
// Update time in iPhone preview
setInterval(() => {
const now = new Date();
const time = now.getHours() + ':' + now.getMinutes().toString().padStart(2, '0');
const el = document.getElementById('ios-time');
if (el) el.textContent = time;
}, 1000);
</script>
</body>
</html>