-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
116 lines (109 loc) · 4.88 KB
/
index.html
File metadata and controls
116 lines (109 loc) · 4.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QR Code Generator</title>
<!-- <meta http-equiv="refresh" content="10"> -->
<link rel="icon" href="unnamed.png"/>
<link rel="stylesheet" href="https://unpkg.com/sanitize.css">
<link rel="stylesheet" href="style.css">
<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=Kanit:wght@700&family=Work+Sans:wght@200;400;500&display=swap"
rel="stylesheet">
</head>
<body>
<h1>QR code</h1>
<main>
<section id="qr-code-settings" class="container container-front">
<header>
<h2>Generate your QR code</h2>
<h3>Adjust the settings below to make your QR code look as you want</h3>
</header>
<div>
<div class="setting">
<label for="data">Text / URL</label>
<span class="sub-label">Include text or a URL you want the QR code to lead to</span>
<input type="text" name="data" id="data" min="1" max="900" required />
</div>
<div class="colors">
<div class="setting">
<label for="color">Main Color</label>
<input id="color" type="color" value="#000000" />
<span class="sub-label" id="color-value">#000000</span>
</div>
<div class="setting">
<label for="bg-color">Background Color</label>
<input id="bg-color" type="color" value="#c7c7c7" />
<span class="sub-label" id="bg-color-value">#c7c7c7</span>
</div>
</div>
<div class="setting">
<label for="size">Size</label>
<span id="size-value" class="sub-label">200 x 200</span>
<div class="slider">
<input name="size" id="size" type="range" value="200" min="100" max="1000" step="100">
</div>
</div>
<div class="setting">
<label for="margin">Margin</label>
<span id="margin-value" class="sub-label">1 px</span>
<div class="slider">
<input type="range" name="margin" id="margin" min="0" max="50" value="1" />
</div>
</div>
<div class="setting">
<fieldset>
<legend>Image Format</legend>
<div>
<input type="radio" id="png" name="format" value="png" id="format" checked />
<label for="png">PNG</label>
</div>
<div>
<input type="radio" id="gif" name="format" value="gif" id="format" />
<label for="gif">GIF</label>
</div>
<div>
<input type="radio" id="jpeg" name="format" value="jpeg" id="format" />
<label for="jpeg">JPEG</label>
</div>
<div>
<input type="radio" id="jpg" name="format" value="jpg" id="format" />
<label for="jpg">JPG</label>
</div>
<div>
<input type="radio" id="svg" name="format" value="svg" id="format" />
<label for="svg">SVG</label>
</div>
</fieldset>
</div>
</div>
<div class="cta">
<button id="cta" type="submit" disabled>Generate QR code</button>
</div>
</section>
<section id="qr-code-result" class="container container-back">
<header>
<h2>Your QR code is ready!</h2>
<h3>Scan this image to see it in action
</h3>
</header>
<div class="setting">
<img src="" alt="qr-code" id="qr-code-image" name="qr-code">
</div>
<div class="info">
<p>Right click on the image and select <b>"Save Image As"</b> to download the file
</p>
<p>Or need to make some changes?</p>
<div class="cta">
<button id="edit" type="submit">
Go back</button>
</div>
</div>
</section>
</main>
</body>
</html>
<script src="script.js"></script>