-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (58 loc) · 2.61 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="/favicon.svg" type="image/svg+xml" />
<!-- Fallback to PNGs if no SVG support -->
<link rel="shortcut icon" href="/favicon.png" type="image/png" />
<!-- Open Graph meta tags -->
<meta property="og:title" content="Quick QR Code generator" />
<meta property="og:description" content="Quick, fast, easy to use QR Code generator" />
<meta property="og:image" content="/favicon.png" />
<meta property="og:url" content="https://qr.tobycm.dev/" />
<meta property="og:site_name" content="Quick QR Code generator" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" id="theme" href="/themes/light.css" />
<link rel="preload" href="/themes/dark.css" as="style" />
<script type="module" async src="/src/theme.ts"></script>
<title>Quick QR Code generator</title>
</head>
<body>
<div id="app">
<img src="/favicon.svg" alt="QR Code Generator" style="height: 10vh" />
<h1 style="margin-bottom: 2.5rem">Quick QR Code generator</h1>
<label for="data-input">Enter your QR code data:</label>
<br />
<textarea id="data-input"></textarea>
<details id="options">
<summary>⚙️ Options</summary>
<div>
<button id="themeButton">🔆</button>
</div>
<label for="size-input">Border size: </label>
<input id="size-input" type="number" value="4" />
<br />
<label for="color-input">Squares color: </label>
<input id="color-input" type="color" value="#000000" />
<br />
<label for="background-color-input">Background color: </label>
<input id="background-color-input" type="color" value="#ffffff" />
<br />
<label for="ecl-input">Error correction level: </label>
<select id="ecl-input">
<option value="LOW">Low - 7%</option>
<option value="MEDIUM" selected="selected">Medium - 15%</option>
<option value="QUARTILE">Quartile - 25%</option>
<option value="HIGH">High - 30%</option>
</select>
</details>
<button id="generate-qr-code-button">+ Generate QR Code</button>
<div id="result" hidden style="margin-top: 2rem">
<img id="qr-code" />
<button id="download-qr-code-button" disabled style="margin-top: 2rem">🖫 Download QR Code as PNG</button>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>