-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
79 lines (71 loc) · 3.29 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="icon" type="image/png" href="/img/icon.png">
<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=Montserrat:ital,wght@0,600;1,600&display=swap" rel="stylesheet">
<title>QR Code Generator</title>
<script defer src="https://cdn.jsdelivr.net/npm/qrcode/build/qrcode.min.js"></script>
</head>
<body>
<header class="header">
<div class="header-container">
<img src="/img/icon.png" alt="Logo" class="logo">
<h1>QR Code Generator</h1>
</div>
</header>
<div class="container">
<form id="qr-form" aria-labelledby="form-label">
<label for="qr-type" id="form-label">Select the QR Code Type:</label>
<select id="qr-type" name="qr-type" required aria-required="true" aria-describedby="error-message">
<option value="text">Text</option>
<option value="url">Website URL</option>
<option value="wlan">WLAN</option>
<option value="vcard">vCard</option>
</select>
<div id="input-fields">
<label for="text">Enter the text or URL you want to convert into a QR code:</label>
<input type="text" id="text" name="text" placeholder="Enter text or URL" required aria-required="true" aria-describedby="error-message">
</div>
<div class="input-row">
<!-- Settings -->
</div>
<div id="settings" class="settings">
<div id="settings-toggle" class="settings-toggle">
<span>Settings</span>
<span class="triangle"></span>
</div>
<div id="settings-panel" class="settings-panel">
<div class="input-group">
<label for="color">Color:</label>
<input type="color" id="color" name="color" value="#000000">
</div>
<div class="input-group">
<label for="background-color">Background Color:</label>
<input type="color" id="background-color" name="background-color" value="#ffffff">
</div>
<div class="input-group">
<label for="size">Size:</label>
<input type="number" id="size" name="size" value="200" min="10" max="1000">
</div>
</div>
</div>
<input type="submit" value="Generate QR Code" class="button">
<div id="error-message" class="error" role="alert" style="display: none;">The text is too large.</div>
</form>
<div id="qr-code" aria-live="polite"></div>
<button id="export" style="display: none;" class="button">Export</button>
</div>
<footer class="footer">
<div class="footer-container">
<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" alt="GitHub Logo" class="github-logo">
<p><a href="https://github.com/MrSchneemann/qr-code" target="_blank" rel="noopener noreferrer">Open-source project by Leopold Loges</a></p>
</div>
</footer>
<script src="index.js"></script>
</body>
</html>