-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
157 lines (144 loc) · 5.12 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google Tag Manager -->
<script>
;(function (w, d, s, l, i) {
w[l] = w[l] || []
w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" })
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != "dataLayer" ? "&l=" + l : ""
j.async = true
j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl
f.parentNode.insertBefore(j, f)
})(window, document, "script", "dataLayer", "GTM-WHS297N")
</script>
<!-- End Google Tag Manager -->
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="content-description" content="QR Code Generator" />
<meta
name="keywords"
content="qr code generator,qr,qr code,qrcode,generator"
/>
<meta name="author" content="Davina Leong" />
<title>QR Code Generator</title>
<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=DM+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap"
rel="stylesheet"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon-32x32.png"
/>
<link rel="stylesheet" href="./styles/reset.css" />
<link rel="stylesheet" href="./styles/main.css" />
<script
defer
src="https://kit.fontawesome.com/6c0a4e7a8f.js"
crossorigin="anonymous"
></script>
<script defer src="./scripts/qrcode.min.js"></script>
<script defer src="./scripts/main.js"></script>
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript
><iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-WHS297N"
height="0"
width="0"
style="display: none; visibility: hidden"
></iframe
></noscript>
<!-- End Google Tag Manager (noscript) -->
<header class="primary-header | bg-primary-400 py-400">
<div class="container header-grid">
<a href="./" class="text-primary-100 fw-bold fs-500">
<i class="fa fa-qrcode text-accent-400 mr-100"></i> QR Code Generator
</a>
<a href="#output" class="text-primary-100">Go to Output</a>
</div>
</header>
<main class="bg-grey-100 text-grey-900">
<div class="container | py-500">
<div class="content-grid | text-center text-md-left mb-500">
<h1 class="content-header | fw-bold fs-800 lh-300">
QR Code Generator
</h1>
<div
class="content-description | flow fs-500"
style="--flow-spacer: 0.5em"
>
<p>
QR Codes allow moblie users to access your website simply and
quickly.
</p>
<p>
Enter the URL and size below to generate a QR Code and download
the image.
</p>
<p>
Additional options are available for you to change the colour of
the QR Code.
</p>
</div>
<form
method="post"
class="content-form form-grid text-left"
data-form
>
<div class="form-group">
<label for="url" class="form-label">URL</label>
<input type="text" name="url" id="url" class="form-input" />
</div>
<div class="form-group">
<label for="size" class="form-label">Size in Pixels</label>
<select name="size" id="size" class="form-input">
<option value="">Size in px</option>
<option value="150" selected>150x150</option>
<option value="300">300x300</option>
<option value="600">600x600</option>
<option value="1000">1000x1000</option>
</select>
</div>
<div class="form-group">
<label for="fg-color" class="form-label">Foreground Color</label>
<input
type="color"
name="fg-colour"
id="fg-color"
value="#000000"
class="form-input"
/>
</div>
<div class="form-group">
<label for="bg-color" class="form-label">Background Color</label>
<input
type="color"
name="bg-color"
id="bg-color"
value="#ffffff"
placeholder="Background Colour"
class="form-input"
/>
</div>
<button id="formButton" class="btn btn-form" type="submit">
Submit
</button>
</form>
<img src="./images/qr-code.svg" alt="QR Icon" class="content-image" />
</div>
<div class="divider | mb-500"></div>
<h2 class="fw-bold fs-500">Output</h2>
<div id="output" class="mt-300 mb-500 text-center" data-output></div>
</div>
</main>
</body>
</html>