-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditor.html
More file actions
481 lines (450 loc) · 28.1 KB
/
editor.html
File metadata and controls
481 lines (450 loc) · 28.1 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
s<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>QRForge — Builder</title>
<meta name="description" content="Premium QR Code Builder. Design, customize, and download beautiful QR codes." />
<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=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/builder.css" />
</head>
<body>
<!-- Nav -->
<header class="nav">
<a href="index.html" class="nav-logo">
<div class="nav-logo-mark">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 256 256" width="256" height="256">
<defs><clipPath id="bgc"><rect width="256" height="256" rx="51.2"/></clipPath></defs>
<rect width="256" height="256" rx="51.2" fill="#1e3a8a"/>
<g opacity="1" transform="translate(128,128) rotate(0)" color="#ffffff"><svg x="-99.84" y="-99.84" width="199.68" height="199.68" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M4 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" /> <path d="M7 17l0 .01" /> <path d="M14 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" /> <path d="M7 7l0 .01" /> <path d="M4 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" /> <path d="M17 7l0 .01" /> <path d="M14 14l3 0" /> <path d="M20 14l0 .01" /> <path d="M14 14l0 3" /> <path d="M14 20l3 0" /> <path d="M17 17l3 0" /> <path d="M20 17l0 3" /> </svg></g>
</svg>
</div>
<span class="nav-logo-text">QRForge</span>
</a>
<a href="index.html" class="nav-back"></a>
</header>
<!-- Stepper -->
<div class="stepper-wrap">
<div class="stepper">
<div class="step-node active" id="sn-1">
<div class="step-node-dot"><span>1</span></div>
<span class="step-node-label">Type</span>
</div>
<div class="step-connector" id="sc-1"></div>
<div class="step-node" id="sn-2">
<div class="step-node-dot"><span>2</span></div>
<span class="step-node-label">Content</span>
</div>
<div class="step-connector" id="sc-2"></div>
<div class="step-node" id="sn-3">
<div class="step-node-dot"><span>3</span></div>
<span class="step-node-label">Design</span>
</div>
<div class="step-connector" id="sc-3"></div>
<div class="step-node" id="sn-4">
<div class="step-node-dot"><span>4</span></div>
<span class="step-node-label">Download</span>
</div>
</div>
</div>
<!-- Builder -->
<main class="builder-layout">
<!-- ══ LEFT PANEL ══ -->
<div class="panel-col" id="panelCol">
<!-- STEP 1 -->
<section class="step-pane active" id="pane-1">
<div class="pane-head">
<h2 class="pane-title">Select QR Type</h2>
<p class="pane-sub">Choose what happens when someone scans your code.</p>
</div>
<div class="type-grid">
<button class="type-card active" data-type="website">
<div class="tc-icon"><svg viewBox="0 0 22 22" fill="none"><circle cx="11" cy="11" r="9" stroke="currentColor" stroke-width="1.5"/><path d="M11 2c-2.5 2.5-4 5.5-4 9s1.5 6.5 4 9M11 2c2.5 2.5 4 5.5 4 9s-1.5 6.5-4 9M2 11h18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg></div>
<span class="tc-name">Website</span><span class="tc-sub">URL / Link</span>
</button>
<button class="type-card" data-type="wifi">
<div class="tc-icon"><svg viewBox="0 0 22 22" fill="none"><path d="M2 7.5C5.6 4.2 9 3 11 3s5.4 1.2 9 4.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M5 11c1.7-1.7 3.7-2.5 6-2.5s4.3.8 6 2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M8 14.5c.8-.8 1.8-1.3 3-1.3s2.2.5 3 1.3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><circle cx="11" cy="18" r="1.2" fill="currentColor"/></svg></div>
<span class="tc-name">WiFi</span><span class="tc-sub">Network access</span>
</button>
<button class="type-card" data-type="email">
<div class="tc-icon"><svg viewBox="0 0 22 22" fill="none"><rect x="2" y="5" width="18" height="13" rx="2" stroke="currentColor" stroke-width="1.5"/><path d="M2 8l9 5.5L20 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg></div>
<span class="tc-name">Email</span><span class="tc-sub">Pre-filled email</span>
</button>
<button class="type-card" data-type="phone">
<div class="tc-icon"><svg viewBox="0 0 22 22" fill="none"><path d="M5 2h12a1 1 0 011 1v16a1 1 0 01-1 1H5a1 1 0 01-1-1V3a1 1 0 011-1z" stroke="currentColor" stroke-width="1.5"/><circle cx="11" cy="17" r="1" fill="currentColor"/></svg></div>
<span class="tc-name">Phone</span><span class="tc-sub">Dial a number</span>
</button>
<button class="type-card" data-type="sms">
<div class="tc-icon"><svg viewBox="0 0 22 22" fill="none"><path d="M3 5a2 2 0 012-2h12a2 2 0 012 2v9a2 2 0 01-2 2H7l-4 3V5z" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/><path d="M7 9h8M7 12h5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg></div>
<span class="tc-name">SMS</span><span class="tc-sub">Send a message</span>
</button>
<button class="type-card" data-type="vcard">
<div class="tc-icon"><svg viewBox="0 0 22 22" fill="none"><rect x="2" y="4" width="18" height="14" rx="2" stroke="currentColor" stroke-width="1.5"/><circle cx="8" cy="11" r="2.5" stroke="currentColor" stroke-width="1.5"/><path d="M13 9h4M13 13h3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg></div>
<span class="tc-name">vCard</span><span class="tc-sub">Contact card</span>
</button>
<button class="type-card" data-type="text">
<div class="tc-icon"><svg viewBox="0 0 22 22" fill="none"><path d="M4 6h14M4 10h14M4 14h8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg></div>
<span class="tc-name">Text</span><span class="tc-sub">Plain text</span>
</button>
<button class="type-card" data-type="social">
<div class="tc-icon"><svg viewBox="0 0 22 22" fill="none"><circle cx="17" cy="5" r="2.5" stroke="currentColor" stroke-width="1.5"/><circle cx="5" cy="11" r="2.5" stroke="currentColor" stroke-width="1.5"/><circle cx="17" cy="17" r="2.5" stroke="currentColor" stroke-width="1.5"/><path d="M7.4 9.8l7.2-3.6M7.4 12.2l7.2 3.6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg></div>
<span class="tc-name">Social</span><span class="tc-sub">Profile link</span>
</button>
<button class="type-card" data-type="pdf">
<div class="tc-icon"><svg viewBox="0 0 22 22" fill="none"><path d="M13 2H6a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 002-2V7l-5-5z" stroke="currentColor" stroke-width="1.5"/><path d="M13 2v5h5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg></div>
<span class="tc-name">PDF</span><span class="tc-sub">Document URL</span>
</button>
<button class="type-card" data-type="video">
<div class="tc-icon"><svg viewBox="0 0 22 22" fill="none"><rect x="2" y="5" width="14" height="12" rx="2" stroke="currentColor" stroke-width="1.5"/><path d="M16 9l4-2v8l-4-2V9z" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/></svg></div>
<span class="tc-name">Video</span><span class="tc-sub">Video URL</span>
</button>
</div>
<div class="pane-actions">
<button class="btn-continue" id="s1Next">
Continue
<svg width="13" height="13" viewBox="0 0 13 13" fill="none"><path d="M3 6.5h7M7 3l3 3.5-3 3.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button>
</div>
</section>
<!-- STEP 2 -->
<section class="step-pane" id="pane-2">
<div class="pane-head">
<h2 class="pane-title">Add Content</h2>
<p class="pane-sub" id="contentPaneSub">Fill in the URL for your QR code.</p>
</div>
<div class="content-form" id="contentForm"></div>
<div class="pane-actions two">
<button class="btn-back" id="s2Back">
<svg width="13" height="13" viewBox="0 0 13 13" fill="none"><path d="M10 6.5H3M6 3L3 6.5 6 10" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>
Back
</button>
<button class="btn-continue" id="s2Next">
Design It
<svg width="13" height="13" viewBox="0 0 13 13" fill="none"><path d="M3 6.5h7M7 3l3 3.5-3 3.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button>
</div>
</section>
<!-- STEP 3 -->
<section class="step-pane" id="pane-3">
<div class="pane-head">
<h2 class="pane-title">Design Your QR</h2>
<p class="pane-sub">Customize every detail. Preview updates live.</p>
</div>
<div class="design-accordion">
<!-- Dot Style -->
<div class="da-block">
<div class="da-title">Dot Style</div>
<div class="dot-opts" id="dotOpts">
<button class="dot-o active" data-value="square">
<svg viewBox="0 0 36 36" fill="none"><rect x="4" y="4" width="9" height="9" fill="currentColor"/><rect x="15" y="4" width="6" height="6" fill="currentColor" opacity="0.6"/><rect x="23" y="4" width="9" height="9" fill="currentColor"/><rect x="4" y="15" width="6" height="6" fill="currentColor" opacity="0.6"/><rect x="15" y="15" width="6" height="6" fill="currentColor" opacity="0.5"/><rect x="4" y="23" width="9" height="9" fill="currentColor"/></svg>
<span>Square</span>
</button>
<button class="dot-o" data-value="circle">
<svg viewBox="0 0 36 36" fill="none"><circle cx="8.5" cy="8.5" r="4.5" fill="currentColor"/><circle cx="18" cy="7" r="3" fill="currentColor" opacity="0.6"/><circle cx="27.5" cy="8.5" r="4.5" fill="currentColor"/><circle cx="7" cy="18" r="3" fill="currentColor" opacity="0.6"/><circle cx="18" cy="18" r="3" fill="currentColor" opacity="0.5"/><circle cx="8.5" cy="27.5" r="4.5" fill="currentColor"/></svg>
<span>Dots</span>
</button>
<button class="dot-o" data-value="rounded">
<svg viewBox="0 0 36 36" fill="none"><rect x="4" y="4" width="9" height="9" rx="3" fill="currentColor"/><rect x="15" y="4" width="6" height="6" rx="2" fill="currentColor" opacity="0.6"/><rect x="23" y="4" width="9" height="9" rx="3" fill="currentColor"/><rect x="4" y="15" width="6" height="6" rx="2" fill="currentColor" opacity="0.6"/><rect x="15" y="15" width="6" height="6" rx="2" fill="currentColor" opacity="0.5"/><rect x="4" y="23" width="9" height="9" rx="3" fill="currentColor"/></svg>
<span>Rounded</span>
</button>
<button class="dot-o" data-value="classy">
<svg viewBox="0 0 36 36" fill="none"><polygon points="8.5,4 13,8.5 8.5,13 4,8.5" fill="currentColor"/><polygon points="18,4 21,7 18,10 15,7" fill="currentColor" opacity="0.6"/><polygon points="27.5,4 32,8.5 27.5,13 23,8.5" fill="currentColor"/><polygon points="18,15 21,18 18,21 15,18" fill="currentColor" opacity="0.5"/><polygon points="8.5,23 13,27.5 8.5,32 4,27.5" fill="currentColor"/></svg>
<span>Classy</span>
</button>
</div>
</div>
<!-- Eye Style -->
<div class="da-block">
<div class="da-title">Corner Eyes</div>
<div class="eye-opts" id="eyeOpts">
<button class="eye-o active" data-value="square">
<svg viewBox="0 0 28 28" fill="none"><rect x="1.5" y="1.5" width="25" height="25" rx="1.5" stroke="currentColor" stroke-width="2"/><rect x="7" y="7" width="14" height="14" rx="1" stroke="currentColor" stroke-width="1.4"/><rect x="11" y="11" width="6" height="6" fill="currentColor"/></svg>
<span>Square</span>
</button>
<button class="eye-o" data-value="rounded">
<svg viewBox="0 0 28 28" fill="none"><rect x="1.5" y="1.5" width="25" height="25" rx="7" stroke="currentColor" stroke-width="2"/><rect x="7" y="7" width="14" height="14" rx="4" stroke="currentColor" stroke-width="1.4"/><rect x="11" y="11" width="6" height="6" rx="1.5" fill="currentColor"/></svg>
<span>Rounded</span>
</button>
<button class="eye-o" data-value="circle">
<svg viewBox="0 0 28 28" fill="none"><circle cx="14" cy="14" r="12" stroke="currentColor" stroke-width="2"/><circle cx="14" cy="14" r="6.5" stroke="currentColor" stroke-width="1.4"/><circle cx="14" cy="14" r="3.5" fill="currentColor"/></svg>
<span>Circle</span>
</button>
<button class="eye-o" data-value="leaf">
<svg viewBox="0 0 28 28" fill="none"><rect x="1.5" y="1.5" width="25" height="25" rx="10" stroke="currentColor" stroke-width="2"/><rect x="7" y="7" width="14" height="14" rx="5" stroke="currentColor" stroke-width="1.4"/><rect x="11" y="11" width="6" height="6" rx="2.5" fill="currentColor"/></svg>
<span>Leaf</span>
</button>
</div>
</div>
<!-- Colors -->
<div class="da-block">
<div class="da-title">Colors</div>
<div class="toggle-row">
<span class="toggle-lbl">Gradient fill</span>
<label class="toggle-sw">
<input type="checkbox" id="useGradient" />
<span class="sw-track"><span class="sw-knob"></span></span>
</label>
</div>
<!-- Solid colors — color pickers ONLY, no hex text inputs -->
<div id="solidBlock">
<div class="two-color-row">
<div class="cf">
<span class="cf-label">Dot color</span>
<div class="cf-color-row">
<input type="color" class="c-swatch" id="dotColor" value="#1a3f75" />
<span class="color-val-label" id="dotColorLabel">#1a3f75</span>
</div>
</div>
<div class="cf">
<span class="cf-label">Background</span>
<div class="cf-color-row">
<input type="color" class="c-swatch" id="bgColor" value="#ffffff" />
<span class="color-val-label" id="bgColorLabel">#ffffff</span>
</div>
</div>
</div>
</div>
<!-- Gradient colors -->
<div id="gradBlock" style="display:none;">
<div class="two-color-row">
<div class="cf">
<span class="cf-label">Color A</span>
<div class="cf-color-row">
<input type="color" class="c-swatch" id="grad1" value="#1a3f75" />
<span class="color-val-label" id="grad1Label">#1a3f75</span>
</div>
</div>
<div class="cf">
<span class="cf-label">Color B</span>
<div class="cf-color-row">
<input type="color" class="c-swatch" id="grad2" value="#2563b0" />
<span class="color-val-label" id="grad2Label">#2563b0</span>
</div>
</div>
</div>
<div class="grad-preview-bar" id="gradPreviewBar" style="margin-top:8px"></div>
<div class="two-color-row" style="margin-top:10px">
<div class="cf">
<span class="cf-label">Background</span>
<div class="cf-color-row">
<input type="color" class="c-swatch" id="bgGrad" value="#ffffff" />
<span class="color-val-label" id="bgGradLabel">#ffffff</span>
</div>
</div>
<div class="cf">
<span class="cf-label">Direction</span>
<select class="cf-select" id="gradDir">
<option value="diagonal">Diagonal</option>
<option value="horizontal">Horizontal</option>
<option value="vertical">Vertical</option>
</select>
</div>
</div>
</div>
<div class="toggle-row" style="margin-top:8px">
<span class="toggle-lbl">Transparent background</span>
<label class="toggle-sw">
<input type="checkbox" id="transBg" />
<span class="sw-track"><span class="sw-knob"></span></span>
</label>
</div>
</div>
<!-- Text Labels -->
<div class="da-block">
<div class="da-title">Text Labels <span class="da-opt-tag">optional</span></div>
<div class="text-label-fields">
<div class="cf-group">
<label class="cf-lbl" for="topText">Top text</label>
<input type="text" class="cf-input" id="topText" placeholder='e.g. "Scan Me"' maxlength="40" />
</div>
<div class="cf-group">
<label class="cf-lbl" for="bottomText">Bottom text</label>
<input type="text" class="cf-input" id="bottomText" placeholder='e.g. "Visit our website"' maxlength="40" />
</div>
<div class="cf-row-2">
<div class="cf-group">
<label class="cf-lbl">Font size</label>
<div class="sg-field" style="margin-top:2px">
<div class="sg-top"><span>Size</span><span class="sg-val" id="labelFontSizeDisplay">14px</span></div>
<input type="range" class="ds-range" id="labelFontSize" min="10" max="28" value="14" />
</div>
</div>
<div class="cf-group">
<label class="cf-lbl">Text color</label>
<div class="cf-color-row" style="margin-top:8px">
<input type="color" class="c-swatch" id="labelColor" value="#1d1d1f" />
<span class="color-val-label" id="labelColorLabel">#1d1d1f</span>
</div>
</div>
</div>
</div>
</div>
<!-- Frame -->
<div class="da-block">
<div class="da-title">Frame Style <span class="da-opt-tag">optional</span></div>
<div class="frame-opts" id="frameOpts">
<button class="frame-o active" data-value="none" title="None">
<svg viewBox="0 0 28 28" fill="none"><rect x="6" y="6" width="16" height="16" rx="1" stroke="currentColor" stroke-width="1.5" stroke-dasharray="3 2"/></svg>
<span>None</span>
</button>
<button class="frame-o" data-value="plain" title="Plain">
<svg viewBox="0 0 28 28" fill="none"><rect x="2" y="2" width="24" height="24" rx="2" stroke="currentColor" stroke-width="2"/><rect x="6" y="6" width="16" height="16" fill="currentColor" opacity="0.12"/></svg>
<span>Plain</span>
</button>
<button class="frame-o" data-value="rounded" title="Rounded">
<svg viewBox="0 0 28 28" fill="none"><rect x="2" y="2" width="24" height="24" rx="8" stroke="currentColor" stroke-width="2"/><rect x="6" y="6" width="16" height="16" rx="3" fill="currentColor" opacity="0.12"/></svg>
<span>Rounded</span>
</button>
<button class="frame-o" data-value="shadow" title="Shadow">
<svg viewBox="0 0 28 28" fill="none"><rect x="4" y="4" width="20" height="20" rx="3" fill="currentColor" opacity="0.15"/><rect x="2" y="2" width="20" height="20" rx="3" stroke="currentColor" stroke-width="1.5" fill="white"/></svg>
<span>Shadow</span>
</button>
</div>
<div id="framePaddingRow" class="sg-field" style="margin-top:4px;display:none">
<div class="sg-top"><span>Frame padding</span><span class="sg-val" id="framePadDisplay">16px</span></div>
<input type="range" class="ds-range" id="framePad" min="8" max="48" value="16" />
</div>
</div>
<!-- Size & Spacing -->
<div class="da-block">
<div class="da-title">Size & Spacing</div>
<div class="slider-grid">
<div class="sg-field">
<div class="sg-top"><span>Canvas size</span><span class="sg-val" id="sizeDisplay">300</span></div>
<input type="range" class="ds-range" id="sizeRange" min="200" max="600" value="300" step="10" />
</div>
<div class="sg-field">
<div class="sg-top"><span>Margin</span><span class="sg-val" id="marginDisplay">12</span></div>
<input type="range" class="ds-range" id="marginRange" min="0" max="48" value="12" step="2" />
</div>
</div>
</div>
<!-- Error Correction -->
<div class="da-block">
<div class="da-title">Error Correction</div>
<div class="ec-row" id="ecRow">
<button class="ec-btn" data-val="L">L<span>Low</span></button>
<button class="ec-btn" data-val="M">M<span>Med</span></button>
<button class="ec-btn active" data-val="Q">Q<span>Qual</span></button>
<button class="ec-btn" data-val="H">H<span>High</span></button>
</div>
<p class="da-hint">Use Q or H when adding a center logo.</p>
</div>
<!-- Logo -->
<div class="da-block">
<div class="da-title">Center Logo <span class="da-opt-tag">optional</span></div>
<div class="logo-drop" id="logoDrop">
<input type="file" id="logoFileInput" accept="image/*" hidden />
<div class="logo-drop-idle" id="logoDropIdle">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M10 13V4M6 8l4-4 4 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 16h14" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>
<span>Click or drag image</span>
<span class="logo-drop-hint">PNG · SVG · JPG</span>
</div>
<div class="logo-drop-loaded" id="logoDropLoaded" style="display:none;">
<img id="logoThumb" src="" alt="logo" />
<div class="logo-info">
<span id="logoInfoName">logo.png</span>
<button class="logo-rm" id="logoRemoveBtn">Remove</button>
</div>
</div>
</div>
<div id="logoSizeRow" style="display:none;" class="sg-field">
<div class="sg-top" style="margin-top:10px"><span>Logo size</span><span class="sg-val" id="logoSizeDisplay">22%</span></div>
<input type="range" class="ds-range" id="logoSizeRange" min="8" max="36" value="22" />
</div>
</div>
</div><!-- /design-accordion -->
<div class="pane-actions two">
<button class="btn-back" id="s3Back">
<svg width="13" height="13" viewBox="0 0 13 13" fill="none"><path d="M10 6.5H3M6 3L3 6.5 6 10" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>
Back
</button>
<button class="btn-continue" id="s3Next">
Download
<svg width="13" height="13" viewBox="0 0 13 13" fill="none"><path d="M3 6.5h7M7 3l3 3.5-3 3.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button>
</div>
</section>
<!-- STEP 4 -->
<section class="step-pane" id="pane-4">
<div class="pane-head">
<h2 class="pane-title">Download</h2>
<p class="pane-sub">Export your finished QR code in any format.</p>
</div>
<div class="dl-panel">
<div class="da-block">
<div class="da-title">Resolution</div>
<div class="scale-row" id="scaleRow">
<button class="sc-btn" data-val="1">1×</button>
<button class="sc-btn active" data-val="2">2×</button>
<button class="sc-btn" data-val="3">3×</button>
<button class="sc-btn" data-val="4">4× Print</button>
</div>
</div>
<div class="da-block">
<div class="da-title">Filename</div>
<input type="text" class="dl-name-input" id="dlName" value="qrforge-code" placeholder="filename" />
</div>
<div class="da-block">
<div class="da-title">Summary</div>
<div class="dl-summary" id="dlSummary"></div>
</div>
<div class="dl-buttons">
<button class="dl-btn-png" id="dlPng">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M8 2v8M4 7l4 4 4-4M2 14h12" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>
Download PNG
</button>
<button class="dl-btn-svg" id="dlSvg">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M8 2v8M4 7l4 4 4-4M2 14h12" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>
Download SVG
</button>
<button class="dl-btn-copy" id="dlCopy">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="4" y="4" width="9" height="9" rx="1.5" stroke="currentColor" stroke-width="1.5"/><path d="M2 12V2h10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
Copy SVG
</button>
</div>
<div class="dl-toast" id="dlToast">
<svg width="13" height="13" viewBox="0 0 13 13" fill="none"><path d="M2 6.5l3.5 3.5 5.5-5.5" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>
<span id="dlToastMsg">Downloaded!</span>
</div>
</div>
<div class="pane-actions two">
<button class="btn-back" id="s4Back">
<svg width="13" height="13" viewBox="0 0 13 13" fill="none"><path d="M10 6.5H3M6 3L3 6.5 6 10" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>
Back
</button>
<button class="btn-ghost-sm" id="startOver">Start Over</button>
</div>
</section>
</div><!-- /panel-col -->
<!-- ══ RIGHT PREVIEW ══ -->
<aside class="preview-col" id="previewCol" data-step="1">
<!-- Context Preview (visible on steps 1 & 2) -->
<div class="ctx-preview" id="ctxPreview"></div>
<!-- QR Code Panel (prominent on steps 3 & 4, dimmed on 1 & 2) -->
<div class="qr-panel">
<div class="qr-panel-top">
<span class="qr-panel-label">QR Code</span>
<span class="qr-type-chip" id="previewTypeChip">Website</span>
</div>
<div class="qr-canvas-wrap" id="qrCanvasWrap">
<canvas id="qrCanvas" width="260" height="260"></canvas>
<div class="preview-shimmer" id="shimmer"></div>
</div>
<div class="qr-meta">
<span id="previewDimsTxt">260 × 260</span>
<span class="qr-meta-dot">·</span>
<span id="previewEcTxt">EC: Q</span>
<span class="qr-meta-dot">·</span>
<span id="previewTypeTxt">Website</span>
</div>
</div>
</aside>
</main>
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"></script>
<script src="js/builder.js"></script>
</body>
</html>