-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
182 lines (154 loc) · 6.76 KB
/
index.html
File metadata and controls
182 lines (154 loc) · 6.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>QR Studio – Free</title>
<link rel="shortcut icon" href="logo.ico" type="image/x-icon">
<link rel="stylesheet" href="style.css" />
<script src="https://cdn.jsdelivr.net/npm/qr-code-styling@1.5.0/lib/qr-code-styling.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded" rel="stylesheet" />
</head>
<body>
<header class="topbar">
<h1>QR Studio</h1>
<span class="badge free">FREE</span>
</header>
<div class="app">
<aside class="controls">
<section>
<label for="data">QR Content</label>
<div class="input-wrap">
<input id="data" type="text" placeholder="https://example.com or any text" autocomplete="off">
<button id="clearInput" type="button">
<span class="material-symbols-rounded">Clear</span>
</button>
</div>
</section>
<!-- STYLE PRESETS -->
<section>
<button class="collapse-toggle" id="styleToggle">
Style Presets <span id="styleArrow">▼</span>
</button>
<div class="preset-grid hidden" id="stylePresets">
<button data-style="soft">Soft</button>
<button data-style="modern">Modern</button>
<button data-style="classy">Classy</button>
<button data-style="premium">Premium</button>
</div>
</section>
<!-- GRADIENT PRESETS -->
<section>
<button class="collapse-toggle" id="gradientToggle">
Gradient Presets <span id="gradArrow">▼</span>
</button>
<div class="preset-grid hidden" id="gradientPresets">
<button data-grad="#000000,#000000">Black & White</button>
<button data-grad="#00f5ff,#6366f1">Neon</button>
<button data-grad="#38bdf8,#6366f1">Digital Sky</button>
<button data-grad="#ec4899,#8b5cf6">Synth Dusk</button>
<button data-grad="#22c55e,#15803d">Emerald</button>
<button data-grad="#FF0F7B,#F89B29">Sunset Candy</button>
<button data-grad="#EB5757,#000000">Coal</button>
<button data-grad="#40C9FF,#E81CFF">Cosmic Pop</button>
<button id="customGradientBtn">Custom</button>
<div id="customGradientPanel" class="custom-gradient hidden">
<div class="color-row">
<label>From</label>
<input type="color" id="gradColorA" value="#000000">
<input type="text" id="gradHexA" value="#000000">
</div>
<div class="color-row">
<label>To</label>
<input type="color" id="gradColorB" value="#000000">
<input type="text" id="gradHexB" value="#000000">
</div>
</div>
</div>
</section>
<!-- ADVANCED CONTROLS -->
<section>
<label>Dot Shape</label>
<select id="dotStyle">
<option value="square">Square</option>
<option value="rounded">Rounded</option>
<option value="extra-rounded">Extra Rounded</option>
<option value="classy">Classy</option>
<option value="classy-rounded">Classy Rounded</option>
</select>
</section>
<section>
<label>Corner Box Style</label>
<select id="cornerSquare">
<option value="square">Square</option>
<option value="extra-rounded">Rounded</option>
</select>
</section>
<section>
<label>Corner Dot Style</label>
<select id="cornerDot">
<option value="square">Square</option>
<option value="dot">Dot</option>
</select>
</section>
<section>
<label>Logo</label>
<div class="logo-box" id="logoBox">
<span class="logo-placeholder">Click to upload logo</span>
<img id="logoPreview" hidden>
</div>
<input id="logo" type="file" accept="image/*">
<input id="margin" type="range" min="4" max="20" value="8">
</section>
<section>
<label>Error Correction</label>
<select id="errorCorrection">
<option value="L">Low</option>
<option value="M">Medium</option>
<option value="Q">Quartile</option>
<option value="H" selected>High (recommended)</option>
</select>
</section>
<section class="brand-check" id="brandCheck"></section>
<section>
<label>Download Size</label>
<select id="downloadSize">
<option value="256">256 × 256</option>
<option value="512" selected>512 × 512</option>
<option value="1024">1024 × 1024</option>
</select>
</section>
<section class="actions">
<button id="png">Download PNG</button>
<button id="jpg" class="secondary">Download JPG</button>
</section>
</aside>
<main class="preview">
<div class="qr-card">
<div id="qr"></div>
</div>
<p>Live preview • Default scan-safe QR</p>
</main>
</div>
<!-- MOBILE CONTROL DOCK -->
<div class="mobile-dock">
<button data-panel="input">
<span class="material-symbols-rounded">link</span>
</button>
<button data-panel="preset">
<span class="material-symbols-rounded">palette</span>
</button>
<button data-panel="custom">
<span class="material-symbols-rounded">tune</span>
</button>
<button data-panel="download">
<span class="material-symbols-rounded">download</span>
</button>
</div>
<!-- MOBILE DRAWER -->
<div class="mobile-drawer hidden" id="mobileDrawer">
<div class="drawer-content" id="drawerContent"></div>
</div>
<script src="script.js"></script>
</body>
</html>