-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
119 lines (109 loc) · 4.9 KB
/
Copy pathindex.html
File metadata and controls
119 lines (109 loc) · 4.9 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
<!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">
<link rel="icon" href="favicon.ico">
<title>Qr Code Generator API Challenge</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css">
<!-- To unify the styles with all the browsers -->
<link rel="stylesheet" href="https://unpkg.com/sanitize.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">
<!-- <link rel="stylesheet" href="sassstyle.css"> -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>QR code</h1>
<main>
<section id="qrCodeSettings"class="container containerFront">
<header>
<h2>Generate your QR Code</h2>
<h3>Adjust the settings below to make your QR code looks as you want</h3>
</header>
<div class="inputFields">
<div class="setting">
<label for="data">Text/URL</label>
<span class="subLabel">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 type="color" id="color" value="#000000">
<span id="colorValue" class="subLabel">#000</span>
</div>
<div class="setting">
<label for="bgColor">Background Color</label>
<input type="color" id="bgColor" value="#c7c7c7">
<span id="bgColorValue" class="subLabel">#c7c7c7</span>
</div>
</div>
<div class="setting">
<label for="size">Size</label>
<span id='sizeValue' class="subLabel">200 x 200</span>
<div class="slider">
<input type="range" name="size" id="size" min="100" max="1000" value="200" step="100">
</div>
</div>
<div class="setting">
<label for="margin">Margin</label>
<span id='marginValue' class="subLabel">1 px</span>
<div class="slider">
<input type="range" name="margin" id="margin" min="0" max="100" value="1" step="1">
</div>
</div>
<div class="setting">
<fieldset>
<legend>Image Format</legend>
<div>
<input type="radio" name="format" id="png" value="png" checked>
<label for="png">PNG</label>
</div>
<div>
<input type="radio" name="format" id="gif" value="gif">
<label for="gif">GIF</label>
</div>
<div>
<input type="radio" name="format" id="jpeg" value="jpeg">
<label for="jpeg">JPEG</label>
</div>
<div>
<input type="radio" name="format" id="svg" value="svg">
<label for="svg">SVG</label>
</div>
</fieldset>
</div>
<div class="ctaButton">
<button type="submit" id="ctaButton" disabled>Generate QR code</button>
</div>
</div>
</section>
<section id="qrCodeResult" class="container containerBack">
<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="qrCodeImage" name="qrCode">
</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="ctaButton">
<button id="editButton" type="submit">
Go back
</button>
</div>
</div>
</section>
</main>
<script src="script.js"></script>
</body>
</html>